3 references to ShouldContextualKeywordBeTreatedAsModifier
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
1403if (!ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: false)) 1429!ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: false)) 8542&& (tk is not (SyntaxKind.AsyncKeyword or SyntaxKind.SafeKeyword or SyntaxKind.ScopedKeyword) || ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: true));