13 references to WithFeatures
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
38internal static readonly CSharpParseOptions ParseOptions = new CSharpParseOptions(LanguageVersion.Preview).WithFeatures(new[] { new KeyValuePair<string, string>("InterceptorsNamespaces", "Microsoft.AspNetCore.Http.Generated") });
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
38internal static readonly CSharpParseOptions ParseOptions = new CSharpParseOptions(LanguageVersion.Preview).WithFeatures(new[] { new KeyValuePair<string, string>("InterceptorsNamespaces", "Microsoft.AspNetCore.Http.Generated") });
Microsoft.CodeAnalysis.CSharp (1)
CSharpParseOptions.cs (1)
157return WithFeatures(features);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
SignatureHelp\AbstractCSharpSignatureHelpProviderTests.cs (1)
18return new CSharpParseOptions().WithFeatures(new Dictionary<string, string>()); // no experimental features to enable
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (2)
456var experimental = TestOptions.Regular.WithFeatures(experimentalFeatures); 506var experimental = TestOptions.Regular.WithFeatures(featuresToEnable);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Parsing\CSharpParseOptionsTests.cs (1)
35var po = new CSharpParseOptions().WithFeatures(new[] { kvp });
Microsoft.CodeAnalysis.CSharp.Test.Utilities (5)
TestOptions.cs (5)
63public static readonly CSharpParseOptions Regular6WithV7SwitchBinder = Regular6.WithFeatures(new Dictionary<string, string>() { { "testV7SwitchBinder", "true" } }); 108return options.WithFeatures(options.Features.Concat(new[] { new KeyValuePair<string, string>("strict", "true") })); 113return options.WithFeatures(options.Features.Concat(new[] { new KeyValuePair<string, string>("peverify-compat", "true") })); 148return options.WithFeatures(options.Features.Concat(new[] { new KeyValuePair<string, string>(feature, value) })); 169return options.WithFeatures(options.Features.Concat(list));
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\AnalysisContextInfoTests.cs (1)
27.WithFeatures(new[] { new KeyValuePair<string, string>("IOperation", "true") });