4 references to ShouldContextualKeywordBeTreatedAsModifier
Microsoft.CodeAnalysis.CSharp (4)
Parser\LanguageParser.cs (4)
1433
if ((!IsFeatureEnabled(MessageID.IDS_FeatureFileTypes) || forTopLevelStatements) && !
ShouldContextualKeywordBeTreatedAsModifier
(parsingStatementNotDeclaration: false))
1443
if (!
ShouldContextualKeywordBeTreatedAsModifier
(parsingStatementNotDeclaration: false))
1456
if ((!IsFeatureEnabled(MessageID.IDS_FeatureRequiredMembers) || forTopLevelStatements) && !
ShouldContextualKeywordBeTreatedAsModifier
(parsingStatementNotDeclaration: false))
8209
&& (tk is not (SyntaxKind.AsyncKeyword or SyntaxKind.ScopedKeyword) ||
ShouldContextualKeywordBeTreatedAsModifier
(parsingStatementNotDeclaration: true));