3 references to ShouldContextualKeywordBeTreatedAsModifier
Microsoft.CodeAnalysis.CSharp (3)
Parser\LanguageParser.cs (3)
1454if (!ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: false)) 1533if ((!IsFeatureEnabled(requiredFeature) || forTopLevelStatements) && !ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: false)) 8566&& (tk is not (SyntaxKind.AsyncKeyword or SyntaxKind.SafeKeyword or SyntaxKind.ScopedKeyword) || ShouldContextualKeywordBeTreatedAsModifier(parsingStatementNotDeclaration: true));