public void Visit(IdentityVariable identity, CommonTree tree) { Parent(tree).Children.Add(identity); SetLine(identity, tree); identity.Id = tree.Text; }
public void Visit(IdentityVariable identity) { var scope = Scope.FindScope(identity.Id); _codeStack.Peek().Scope = scope.GetScope(identity.Id); _codeStack.Peek().CodeExpression = scope.CreateExpression("g_identity"); }