Ejemplo n.º 1
0
        public virtual object VisitUsingStatement(UsingStatement usingDeclaration, object data)
        {
            stackMap.Push(usingDeclaration);
            usingDeclaration.Resource.AcceptVisitor(this, data);

            usingDeclaration.Statements.AcceptVisitor(this, data);

            stackMap.Pop();
            return(null);
        }
Ejemplo n.º 2
0
        private UsingStatement ParseUsing()
        {
            UsingStatement node = new UsingStatement(curtok);
            Advance(); // advance over Using

            AssertAndAdvance(TokenID.LParen);
            node.Resource = ParseLocalDeclarationOrExpression();
            AssertAndAdvance(TokenID.RParen);
            ParseBlock(node.Statements);

            return node;
        }
Ejemplo n.º 3
0
		private UsingStatement ParseUsing()									
		{
            UsingStatement node = new UsingStatement(curtok);
			Advance(); // advance over Using

			AssertAndAdvance(TokenID.LParen);
			node.Resource = ParseExpression();
			AssertAndAdvance(TokenID.RParen);
			ParseBlock(node.Statements);

			if (curtok.ID == TokenID.Semi)
				Advance();
			return node;
		}
Ejemplo n.º 4
0
        public virtual object VisitUsingStatement(UsingStatement usingDeclaration, object data)
        {
            stackMap.Push(usingDeclaration);
            usingDeclaration.Resource.AcceptVisitor(this, data);

             usingDeclaration.Statements.AcceptVisitor(this, data);

             stackMap.Pop();
             return null;

        }