예제 #1
0
        public virtual object VisitExternAliasDirectiveNode(ExternAliasDirectiveNode externAliasDirectiveNode, object data)
        {
            stackMap.Push(externAliasDirectiveNode);
            externAliasDirectiveNode.Attributes.AcceptVisitor(this, data);
            externAliasDirectiveNode.ExternAliasName.AcceptVisitor(this, data);

            stackMap.Pop();
            return(null);
        }
예제 #2
0
        private void ParseExternAlias()
        {
            Advance();	// over extern
            if (curtok.ID != TokenID.Ident || strings[curtok.Data] != "alias")
                ReportError("Expected 'alias', but found: " + curtok.ID, curtok);
            Advance();	// over alias

            ExternAliasDirectiveNode node = new ExternAliasDirectiveNode(curtok);
            node.ExternAliasName = ParseIdentifierOrKeyword(false, false, false, false, false);

            namespaceStack.Peek().ExternAliases.Add(node);
        }
예제 #3
0
        private void ParseExternAlias()
        {
            AssertAndAdvance(TokenID.Extern);
            AssertAndAdvance(TokenID.Alias);

            ExternAliasDirectiveNode node = new ExternAliasDirectiveNode(curtok);
            node.ExternAliasName = ParseIdentifierOrKeyword(false, false, false, false);

            namespaceStack.Peek().ExternAliases.Add(node);
        }
예제 #4
0
        public virtual object VisitExternAliasDirectiveNode(ExternAliasDirectiveNode externAliasDirectiveNode, object data)
        {
            stackMap.Push(externAliasDirectiveNode);
            externAliasDirectiveNode.Attributes.AcceptVisitor(this, data);
            externAliasDirectiveNode.ExternAliasName.AcceptVisitor(this, data);

            stackMap.Pop();
            return null;

        }