예제 #1
0
            private void PushToken(Syntax.InternalSyntax.SyntaxToken token)
            {
                var trailing = token.GetTrailingTrivia();

                if (trailing != null)
                {
                    this.Push(trailing);
                }

                this.Push(token);
                var leading = token.GetLeadingTrivia();

                if (leading != null)
                {
                    this.Push(leading);
                }
            }
예제 #2
0
 internal static bool IsIdentifierVarOrPredefinedType(this Syntax.InternalSyntax.SyntaxToken node)
 {
     return(node.IsIdentifierVar() || IsPredefinedType(node.Kind));
 }
예제 #3
0
 internal static bool IsIdentifierVar(this Syntax.InternalSyntax.SyntaxToken node)
 {
     return(node.ContextualKind == SyntaxKind.VarKeyword);
 }