상속: VariableReferance
        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");
        }
예제 #2
0
        public void Visit(IdentityVariable identity, CommonTree tree)
        {
            Parent(tree).Children.Add(identity);
            SetLine(identity, tree);

            identity.Id = tree.Text;
        }