[vala/staging] vala: Clear SemanticAnalyzer.current_{symbol, source_file} when not needed anymore
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Clear SemanticAnalyzer.current_{symbol, source_file} when not needed anymore
- Date: Wed, 9 Feb 2022 20:35:54 +0000 (UTC)
commit 8ea51c74f0e1f09b290e248998eaf337d053ee0c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Feb 9 21:32:09 2022 +0100
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 80e54d9c1..b1378b557 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -256,6 +256,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
context.root.check (context);
context.accept (this);
+ current_symbol = null;
this.context = null;
}
@@ -263,6 +264,8 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
current_source_file = file;
file.check (context);
+
+ current_source_file = null;
}
public DataType? get_value_type_for_symbol (Symbol sym, bool lvalue) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]