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