From: Rico Tzschichholz Date: Wed, 9 Feb 2022 20:32:09 +0000 (+0100) Subject: vala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed anymore X-Git-Tag: 0.52.11~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cdafc03f3f51e2aef8bc2dde8ba6a133ee027ed;p=thirdparty%2Fvala.git vala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed anymore --- diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala index 550942269..bf84ee890 100644 --- a/vala/valasemanticanalyzer.vala +++ b/vala/valasemanticanalyzer.vala @@ -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