public override void ResolveNames(LexicalScope scope) { scope.Add(methodName, this); foreach (var child in formalParameterList) { child.ResolveNames(scope); } methodBody.ResolveNames(scope); }
public override void ResolveNames(LexicalScope scope) { if (classname != null) { scope.Add(classname, this); } foreach (var decl in declarations) { decl.ResolveNames(scope); } }
public override void ResolveNames(LexicalScope scope) { LocalVariableDeclarationStatement.LastLocal = 0; if (methodname != null) { scope.Add(methodname, this); } if (parameters != null) { foreach (var parameter in parameters) { parameter.ResolveNames(scope); } } if (statements != null) { foreach (var statement in statements) { statement.ResolveNames(scope); } } }
public override void ResolveNames(LexicalScope scope) { scope.Add(identifier, this); type.ResolveNames(scope); }
public override void ResolveNames(LexicalScope scope) { scope.Add(variableName, this); initializer.ResolveNames(scope); }
public override void ResolveNames(LexicalScope scope) { this.num = LastLocal++; // Find a way to declare extern int variable scope.Add(varName, this); }
public override void ResolveNames(LexicalScope scope) { scope.Add(IDENT, this); }