summaryrefslogtreecommitdiff
path: root/vala/valasliceexpression.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-10-28 13:58:01 +0200
committerJürg Billeter <j@bitron.ch>2010-10-28 16:20:17 +0200
commitfb3a31632feda7c36473037dd2e513850e7210de (patch)
tree9e6fc77765ce66b8cd58522233ae02cd51b67b71 /vala/valasliceexpression.vala
parent2cd44b166403f4cd29de30aaa328637d7d207591 (diff)
downloadvala-fb3a31632feda7c36473037dd2e513850e7210de.tar.gz
Replace SemanticAnalyzer with CodeContext in CodeNode.check parameter
Diffstat (limited to 'vala/valasliceexpression.vala')
-rw-r--r--vala/valasliceexpression.vala10
1 files changed, 5 insertions, 5 deletions
diff --git a/vala/valasliceexpression.vala b/vala/valasliceexpression.vala
index 77c574397..4680a1bff 100644
--- a/vala/valasliceexpression.vala
+++ b/vala/valasliceexpression.vala
@@ -98,24 +98,24 @@ public class Vala.SliceExpression : Expression {
return false;
}
- public override bool check (SemanticAnalyzer analyzer) {
+ public override bool check (CodeContext context) {
if (checked) {
return !error;
}
checked = true;
- if (!container.check (analyzer)) {
+ if (!container.check (context)) {
error = true;
return false;
}
- if (!start.check (analyzer)) {
+ if (!start.check (context)) {
error = true;
return false;
}
- if (!stop.check (analyzer)) {
+ if (!stop.check (context)) {
error = true;
return false;
}
@@ -153,7 +153,7 @@ public class Vala.SliceExpression : Expression {
slice_call.add_argument (stop);
slice_call.target_type = this.target_type;
parent_node.replace_expression (this, slice_call);
- return slice_call.check (analyzer);
+ return slice_call.check (context);
}
error = true;