diff options
author | Jürg Billeter <j@bitron.ch> | 2010-10-28 13:58:01 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2010-10-28 16:20:17 +0200 |
commit | fb3a31632feda7c36473037dd2e513850e7210de (patch) | |
tree | 9e6fc77765ce66b8cd58522233ae02cd51b67b71 /vala/valalockstatement.vala | |
parent | 2cd44b166403f4cd29de30aaa328637d7d207591 (diff) | |
download | vala-fb3a31632feda7c36473037dd2e513850e7210de.tar.gz |
Replace SemanticAnalyzer with CodeContext in CodeNode.check parameter
Diffstat (limited to 'vala/valalockstatement.vala')
-rw-r--r-- | vala/valalockstatement.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valalockstatement.vala b/vala/valalockstatement.vala index 39ad4e049..e0d4216f9 100644 --- a/vala/valalockstatement.vala +++ b/vala/valalockstatement.vala @@ -57,7 +57,7 @@ public class Vala.LockStatement : CodeNode, Statement { visitor.visit_lock_statement (this); } - public override bool check (SemanticAnalyzer analyzer) { + public override bool check (CodeContext context) { if (body != null) { // if the statement isn't empty, it is converted into a try statement @@ -71,7 +71,7 @@ public class Vala.LockStatement : CodeNode, Statement { var parent_block = (Block) parent_node; parent_block.replace_statement (this, block); - return block.check (analyzer); + return block.check (context); } if (checked) { @@ -80,7 +80,7 @@ public class Vala.LockStatement : CodeNode, Statement { checked = true; - resource.check (analyzer); + resource.check (context); /* resource must be a member access and denote a Lockable */ if (!(resource is MemberAccess && resource.symbol_reference is Lockable)) { @@ -91,7 +91,7 @@ public class Vala.LockStatement : CodeNode, Statement { } /* parent symbol must be the current class */ - if (resource.symbol_reference.parent_symbol != analyzer.current_class) { + if (resource.symbol_reference.parent_symbol != context.analyzer.current_class) { error = true; resource.error = true; Report.error (resource.source_reference, "Only members of the current class are lockable"); |