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); } }
internal static bool IsIdentifierVarOrPredefinedType(this Syntax.InternalSyntax.SyntaxToken node) { return(node.IsIdentifierVar() || IsPredefinedType(node.Kind)); }
internal static bool IsIdentifierVar(this Syntax.InternalSyntax.SyntaxToken node) { return(node.ContextualKind == SyntaxKind.VarKeyword); }