]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed anymore
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 9 Feb 2022 20:32:09 +0000 (21:32 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 16 Feb 2022 17:52:18 +0000 (18:52 +0100)
vala/valasemanticanalyzer.vala

index abc0a4b5604411692a761d6137f3d56b97b6f4b7..8b701da7fcebd13fc773a4475560c338a7409204 100644 (file)
@@ -252,6 +252,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                context.root.check (context);
                context.accept (this);
 
+               current_symbol = null;
                this.context = null;
        }
 
@@ -259,6 +260,8 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                current_source_file = file;
 
                file.check (context);
+
+               current_source_file = null;
        }
 
        // check whether type is at least as accessible as the specified symbol