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