Exemplo n.º 1
0
        protected override void NewChild(SyntaxNode node)
        {
            switch (node.SyntaxType)
            {
            case SyntaxType.DefinePreprocessorKeyword:
                this.DefineKeyword = node as SyntaxToken;
                break;

            case SyntaxType.IdentifierToken:
                this.Identifier = node as IdentifierSyntax;
                break;

            case SyntaxType.LeftParenToken:
                this.LeftParentheses = node as SyntaxToken;
                break;

            case SyntaxType.MacroArguments:
                this.Arguments = node as MacroArgumentsSyntax;
                break;

            case SyntaxType.RightParenToken:
                this.RightParentheses = node as SyntaxToken;
                break;

            case SyntaxType.TokenString:
                this.TokenString = node as TokenStringSyntax;
                break;
            }
        }
Exemplo n.º 2
0
        protected override void NewChild(SyntaxNode node)
        {
            switch (node.SyntaxType)
            {
            case SyntaxType.PragmaPreprocessorKeyword:
                this.PragmaKeyword = node as SyntaxToken;
                break;

            case SyntaxType.TokenString:
                this.TokenString = node as TokenStringSyntax;
                break;
            }
        }
Exemplo n.º 3
0
        protected override void NewChild(SyntaxNode node)
        {
            switch (node.SyntaxType)
            {
            case SyntaxType.IfPreprocessorKeyword:
                this.IfKeyword = node as SyntaxToken;
                break;

            case SyntaxType.TokenString:
                this.TokenString = node as TokenStringSyntax;
                break;

            case SyntaxType.ExcludedCode:
                this.ExcludedCode = node as ExcludedCodeSyntax;
                break;

            case SyntaxType.EndIfPreprocessorKeyword:
                this.EndIfKeyword = node as SyntaxToken;
                break;
            }
        }