Base:
property
Features
Microsoft.CodeAnalysis.ParseOptions.Features
16 references to Features
Microsoft.CodeAnalysis.CSharp (4)
CSharpParseOptions.cs (3)
82
features: other.
Features
)
190
ImmutableArray<ImmutableArray<string>> previewNamespaces =
Features
.TryGetValue("InterceptorsNamespaces", out var namespaces) && namespaces.Length > 0
264
return
Features
.ContainsKey(featureFlag);
Symbols\Source\SourceModuleSymbol.cs (1)
601
return options?.
Features
?.ContainsKey("noRefSafetyRulesAttribute") == true;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Parsing\CSharpParseOptionsTests.cs (2)
36
Assert.Equal(po.
Features
.AsSingleton(), kvp);
38
Assert.Equal(po2.
Features
.AsSingleton(), kvp);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
TestOptions.cs (4)
108
return options.WithFeatures(options.
Features
.Concat(new[] { new KeyValuePair<string, string>("strict", "true") }));
113
return options.WithFeatures(options.
Features
.Concat(new[] { new KeyValuePair<string, string>("peverify-compat", "true") }));
148
return options.WithFeatures(options.
Features
.Concat(new[] { new KeyValuePair<string, string>(feature, value) }));
169
return options.WithFeatures(options.
Features
.Concat(list));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (6)
CSharpCommandLineParserServiceTests.cs (6)
27
Assert.Equal("true", options.
Features
["test"]);
34
Assert.Equal("dog", options.
Features
["test"]);
41
Assert.Equal("true", options.
Features
["test1"]);
42
Assert.Equal("true", options.
Features
["test2"]);
49
Assert.Equal("dog", options.
Features
["test1"]);
50
Assert.Equal("cat", options.
Features
["test2"]);