11 references to IsFeatureEnabled
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Await.cs (2)
221
(nodeOrToken.SyntaxTree as CSharpSyntaxTree)?.Options?.
IsFeatureEnabled
(MessageID.IDS_AwaitInCatchAndFinally) == false)
227
(nodeOrToken.SyntaxTree as CSharpSyntaxTree)?.Options?.
IsFeatureEnabled
(MessageID.IDS_AwaitInCatchAndFinally) == false)
Binder\Binder_Operators.cs (2)
3232
((CSharpParseOptions)node.SyntaxTree.Options).
IsFeatureEnabled
(MessageID.IDS_FeaturePatternMatching))
3279
if (wasUnderscore && ((CSharpParseOptions)node.SyntaxTree.Options).
IsFeatureEnabled
(MessageID.IDS_FeatureRecursivePatterns))
Binder\Binder_Statements.cs (1)
1289
bool extensibleFixedEnabled = ((CSharpParseOptions)initializerOpt.SyntaxTree.Options)?.
IsFeatureEnabled
(MessageID.IDS_FeatureExtensibleFixedStatement) != false;
Binder\SwitchBinder.cs (1)
36
((CSharpParseOptions)SwitchSyntax.SyntaxTree.Options)?.
IsFeatureEnabled
(MessageID.IDS_FeaturePatternMatching) != false;
Compilation\CSharpCompilationExtensions.cs (1)
19
return ((CSharpParseOptions?)syntax?.SyntaxTree.Options)?.
IsFeatureEnabled
(feature) == true;
Errors\MessageID.cs (1)
448
=> options.
IsFeatureEnabled
(feature) ? null : GetDisabledFeatureDiagnosticInfo(feature, options.LanguageVersion);
Parser\SyntaxParser.cs (1)
1159
return this.Options.
IsFeatureEnabled
(feature);
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
465
if (!options.
IsFeatureEnabled
(MessageID.IDS_FeatureReadOnlyMembers))
Symbols\Source\SourcePropertySymbol.cs (1)
52
((CSharpParseOptions)syntax.SyntaxTree.Options).
IsFeatureEnabled
(MessageID.IDS_FeatureFieldKeyword));