summaryrefslogtreecommitdiff
path: root/vala/valasemanticanalyzer.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/valasemanticanalyzer.vala')
-rw-r--r--vala/valasemanticanalyzer.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 32709cc4c..7891bc568 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -232,14 +232,14 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
}
current_symbol = root_symbol;
- context.root.check (this);
+ context.root.check (context);
context.accept (this);
}
public override void visit_source_file (SourceFile file) {
current_source_file = file;
- file.check (this);
+ file.check (context);
}
// check whether type is at least as accessible as the specified symbol
@@ -387,7 +387,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
bool ellipsis = false;
int i = 0;
foreach (Parameter param in params) {
- if (!param.check (this)) {
+ if (!param.check (context)) {
return false;
}
@@ -799,7 +799,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
init.initializer.formal_target_type = member_type;
init.initializer.target_type = init.initializer.formal_target_type.get_actual_type (type, null, init);;
- init.check (this);
+ init.check (context);
if (init.initializer.value_type == null || !init.initializer.value_type.compatible (init.initializer.target_type)) {
init.error = true;