From 39b45b8a67106310dba219c7eae9523aa2028408 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Wed, 9 Feb 2022 21:32:09 +0100 Subject: [PATCH] vala: Clear SemanticAnalyzer.current_{symbol,source_file} when not needed anymore --- vala/valasemanticanalyzer.vala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala index 7f2e56c03..20a694519 100644 --- a/vala/valasemanticanalyzer.vala +++ b/vala/valasemanticanalyzer.vala @@ -254,6 +254,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor { context.root.check (context); context.accept (this); + current_symbol = null; this.context = null; } @@ -261,6 +262,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 -- 2.47.2