checked = true;
- this_parameter = new Parameter ("this", new ObjectType (context.analyzer.current_class));
+ this_parameter = new Parameter ("this", new ObjectType ((ObjectTypeSymbol) parent_symbol));
scope.add (this_parameter.name, this_parameter);
- owner = context.analyzer.current_symbol.scope;
context.analyzer.current_symbol = this;
if (body != null) {
}
}
- context.analyzer.current_symbol = context.analyzer.current_symbol.parent_symbol;
+ context.analyzer.current_symbol = parent_symbol;
return !error;
}
checked = true;
- owner = context.analyzer.current_symbol.scope;
context.analyzer.current_symbol = this;
if (body != null) {
body.check (context);
}
- context.analyzer.current_symbol = context.analyzer.current_symbol.parent_symbol;
+ context.analyzer.current_symbol = parent_symbol;
return !error;
}