]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
SwitchSection: avoid static access to Report
authorDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 01:54:01 +0000 (19:54 -0600)
committerDaniel Espinosa <esodan@gmail.com>
Mon, 3 Jan 2022 23:51:34 +0000 (17:51 -0600)
vala/valaswitchsection.vala

index a44256b85c658062f69ee0f2d8a6f6e5fb793dd8..06b0706121a1050442025cd6af48903817102ceb 100644 (file)
@@ -89,7 +89,7 @@ public class Vala.SwitchSection : Block {
                }
 
                if (!(parent_node is SwitchStatement)) {
-                       Report.error (source_reference, "no enclosing switch statement found");
+                       context.report.log_error (source_reference, "no enclosing switch statement found");
                        error = true;
                        return false;
                }