212 references to Preview
Microsoft.Analyzers.Extra.Tests (1)
Resources\RoslynTestUtils.cs (1)
222CSharpParseOptions options = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview);
Microsoft.Analyzers.Local.Tests (1)
Resources\RoslynTestUtils.cs (1)
222CSharpParseOptions options = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview);
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>("InterceptorsPreviewNamespaces", "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>("InterceptorsPreviewNamespaces", "Microsoft.AspNetCore.Http.Generated") });
Microsoft.CodeAnalysis.CSharp (7)
Errors\MessageID.cs (2)
461return requiredVersion == LanguageVersion.Preview.MapSpecifiedToEffectiveVersion() 479return LanguageVersion.Preview;
LanguageVersion.cs (4)
294case LanguageVersion.Preview: 368internal const LanguageVersion CSharpNext = LanguageVersion.Preview; 416case LanguageVersion.Preview: 449result = LanguageVersion.Preview;
Parser\DirectiveParser.cs (1)
345if (this.Options.LanguageVersion != LanguageVersion.Preview &&
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
49=> compilation.LanguageVersion() >= LanguageVersion.Preview;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\LanguageVersionExtensions.cs (1)
30internal const LanguageVersion CSharpNext = LanguageVersion.Preview;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
80max = LanguageVersion.Preview;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests_Field.cs (1)
17private readonly ParseOptions Preview = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
1607[InlineData("preview", LanguageVersion.Preview)] 1746LanguageVersion.Preview 1796InlineData(LanguageVersion.Preview, LanguageVersion.Preview), 1847InlineData("preview", true, LanguageVersion.Preview),
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAwaitForeachTests.cs (2)
8074[InlineData("ref readonly", LanguageVersion.Preview)] 8106[InlineData("ref readonly", LanguageVersion.Preview)]
CodeGen\WinMdDelegateTests.cs (1)
57parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\CSharpDeterministicBuildCompilationTests.cs (1)
359yield return parseOptions.WithLanguageVersion(LanguageVersion.Preview);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_Dynamic.cs (2)
911parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview), 1365parseOptions: new CSharpParseOptions(kind: sourceCodeKind, languageVersion: LanguageVersion.Preview)));
FirstClassSpanTests.cs (1)
26LanguageVersion.Preview,
RefReadonlyParameterTests.cs (1)
3706public void OverloadResolution_07([CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion)
Semantics\CollectionExpressionTests.cs (2)
135[InlineData(LanguageVersion.Preview)] 2290[InlineData(LanguageVersion.Preview)]
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
49=> compilation.LanguageVersion() >= LanguageVersion.Preview;
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
80max = LanguageVersion.Preview;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
ConvertToInterpolatedString\ConvertConcatenationToInterpolatedStringTests.cs (2)
1036LanguageVersion = LanguageVersion.Preview, 1089LanguageVersion = LanguageVersion.Preview,
src\Analyzers\CSharp\Tests\UseAutoProperty\UseAutoPropertyTests_Field.cs (1)
17private readonly ParseOptions Preview = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
475var state0 = await CSharpScript.RunAsync("static int Add(int x, int y) => x + y;", options: ScriptOptions.WithLanguageVersion(LanguageVersion.Preview));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\DelegateTypeTests.cs (8)
6485foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 }) 6524foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 }) 6569foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 }) 6614foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 }) 6659foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 }) 6704foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 }) 6743foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 }) 6782foreach (var languageVersion in new[] { CSharp.LanguageVersion.Preview, CSharp.LanguageVersion.CSharp13, CSharp.LanguageVersion.CSharp12 })
SourceGeneration\GeneratorDriverTests.cs (1)
482var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview);
SourceGeneration\SyntaxAwareGeneratorTests.cs (3)
1849var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 1890var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview); 1931var parseOptions = TestOptions.Regular.WithLanguageVersion(LanguageVersion.Preview);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\RequiredMembersTests.cs (2)
6276""", new[] { reference }, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview)); 6295""", new[] { reference }, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview));
Symbols\Source\FileModifierTests.cs (1)
4089var comp = CreateSubmission(source1, parseOptions: TestOptions.Script.WithLanguageVersion(LanguageVersion.Preview));
Symbols\Source\UsingAliasTests.cs (1)
731var compilation = CreateCompilation(text, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (139)
IncrementalParsing\IncrementalParsingTests.cs (1)
44=> Parse(text, LanguageVersion.Preview);
LexicalAndXml\PreprocessorTests.cs (1)
3228[InlineData(LanguageVersion.Preview, "preview")]
Parsing\CollectionExpressionParsingTests.cs (1)
19[InlineData(LanguageVersion.Preview)]
Parsing\CrefParsingTests.cs (6)
1467[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion) 1494[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion) 1521[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion) 1556[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion) 1591[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion) 1630[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion)
Parsing\DeclarationParsingTests.cs (3)
585var file = this.ParseFile(text, CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview)); 651var file = this.ParseFile(text, CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview)); 696var file = this.ParseFile(text, CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview));
Parsing\FieldKeywordParsingTests.cs (38)
55[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 114[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 156[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 207[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 263[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 327[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 384[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 450[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 521[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 600[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 667[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 748[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 844[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 894[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 951[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 997[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1043[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1089[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1139[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1193[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1239[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1308[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1359[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1413[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1475[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1553[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1616[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1692[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1743[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1833[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion, 1912[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 1963[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 2022[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 2081[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 2145[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 2218[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 2269[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion) 2326[CombinatorialValues(LanguageVersion.CSharp13, LanguageVersion.Preview)] LanguageVersion languageVersion)
Parsing\LanguageVersionTests.cs (1)
21Where(x => x != LanguageVersion.Latest && x != LanguageVersion.Preview && x != LanguageVersion.LatestMajor).
Parsing\MemberDeclarationParsingTests.cs (81)
2349foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 2491foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 2615foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 2721foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 2827foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 2881UsingDeclaration("public int N::I::operator +(int x, int y) => x + y;", options: options.WithLanguageVersion(LanguageVersion.Preview), 2961UsingDeclaration("public int I::operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 3016UsingDeclaration("public int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 3067UsingDeclaration("public int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 3127UsingDeclaration("public int N1::N2::I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 3230foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 3375foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 3503foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 3613foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 3723foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 3781UsingTree("public int N::I::operator +(int x, int y) => x + y;", options: options.WithLanguageVersion(LanguageVersion.Preview), 3865UsingTree("public int I::operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 3924UsingTree("public int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 3979UsingTree("public int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 4043UsingTree("public int N1::N2::I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 4118UsingDeclaration("public int I..operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 4180UsingDeclaration("public int I . . operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 4269foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 4403foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 4520foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 4619foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 4718foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 4771UsingDeclaration("int N::I::operator +(int x, int y) => x + y;", options: options.WithLanguageVersion(LanguageVersion.Preview), 4850UsingDeclaration("int I::operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 4904UsingDeclaration("int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 4954UsingDeclaration("int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 5013UsingDeclaration("int N1::N2::I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 5109foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 5247foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 5368foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 5471foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 5574foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 5631UsingTree("int N::I::operator +(int x, int y) => x + y;", options: options.WithLanguageVersion(LanguageVersion.Preview), 5714UsingTree("int I::operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 5772UsingTree("int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 5826UsingTree("int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 5889UsingTree("int N1::N2::I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 5963UsingDeclaration("int I..operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 6024UsingDeclaration("int I . . operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 6086UsingDeclaration("int N.I..operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 6161foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 6231foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 6294foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 6394foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 6461foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 6545foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 6645foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 6698UsingDeclaration("implicit N::I::operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 6760UsingDeclaration("explicit I::operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 6814UsingDeclaration("implicit I.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 6864UsingDeclaration("explicit I<T>.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 6923UsingDeclaration("implicit N1::N2::I.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 7019foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 7132foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 7236foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 7340foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 7444foreach (var version in new[] { LanguageVersion.CSharp9, LanguageVersion.Preview }) 7501UsingTree("implicit N::I::operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 7567UsingTree("explicit I::operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 7625UsingTree("implicit I.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 7679UsingTree("explicit I<T>.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview)); 7742UsingTree("implicit N1::N2::I.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 7816UsingDeclaration("explicit I..operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 7877UsingDeclaration("implicit I . . operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 7939UsingDeclaration("explicit I T(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 7996UsingDeclaration("explicit I.T(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 8050UsingDeclaration("explicit I.operator (int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 8104UsingDeclaration("explicit I.operator (int x) { return x; }", options: options.WithLanguageVersion(LanguageVersion.Preview), 8163UsingDeclaration("explicit I.operator (int x);", options: options.WithLanguageVersion(LanguageVersion.Preview), 8209UsingDeclaration("explicit I.T1 T2(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview), 8274UsingDeclaration("explicit I.operator (int x)", options: options.WithLanguageVersion(LanguageVersion.Preview), 8323UsingDeclaration("explicit I.operator (int x, );", options: options.WithLanguageVersion(LanguageVersion.Preview), 8384UsingDeclaration("explicit I.operator (int x, int y);", options: options.WithLanguageVersion(LanguageVersion.Preview), 8443UsingDeclaration("explicit I.operator var(x);", options: options.WithLanguageVersion(LanguageVersion.Preview), 8489UsingDeclaration("explicit I.operator (int x int y);", options: options.WithLanguageVersion(LanguageVersion.Preview), 8547UsingDeclaration("explicit N.I..operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview),
Parsing\PatternParsingTests_ListPatterns.cs (1)
19UsingExpression(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview), expectedErrors);
Parsing\PatternParsingTests2.cs (1)
18UsingExpression(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview), expectedErrors);
Parsing\RefReadonlyTests.cs (3)
1317[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion) 1381[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion) 1413[CombinatorialValues(LanguageVersion.CSharp11, LanguageVersion.CSharp12, LanguageVersion.Preview)] LanguageVersion languageVersion)
Parsing\RoundTrippingTests.cs (1)
23ParseAndRoundTripping(text, TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.Preview), errorCount, memberCount);
Parsing\TopLevelStatementsParsingTests.cs (1)
1614[InlineData(LanguageVersion.Preview)]
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
TestOptions.cs (3)
37public static readonly CSharpParseOptions RegularNext = Regular.WithLanguageVersion(LanguageVersion.Preview); 39public static readonly CSharpParseOptions RegularPreview = Regular.WithLanguageVersion(LanguageVersion.Preview); 58new CSharpParseOptions(kind: SourceCodeKind.Regular, documentationMode: DocumentationMode.None, languageVersion: LanguageVersion.Preview).WithFeatures(s_experimentalFeatures);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\LanguageVersionExtensions.cs (1)
30internal const LanguageVersion CSharpNext = LanguageVersion.Preview;
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.cs (1)
21private static readonly CSharpParseOptions _parseOptionWithLatestLanguageVersion = CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
4000.AddSyntaxTrees(ParseSyntaxTree(src, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.Preview)));
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
56LanguageVersion langVersion = LanguageVersion.Preview) 307LanguageVersion langVersion = LanguageVersion.Preview,
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
56LanguageVersion langVersion = LanguageVersion.Preview) 307LanguageVersion langVersion = LanguageVersion.Preview,
Microsoft.Gen.Logging.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
56LanguageVersion langVersion = LanguageVersion.Preview) 307LanguageVersion langVersion = LanguageVersion.Preview,
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
56LanguageVersion langVersion = LanguageVersion.Preview) 307LanguageVersion langVersion = LanguageVersion.Preview,
Microsoft.Gen.MetricsReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
56LanguageVersion langVersion = LanguageVersion.Preview) 307LanguageVersion langVersion = LanguageVersion.Preview,
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ChangeSignature\CSharpChangeSignatureViewModelFactoryService.cs (1)
21private static readonly CSharpParseOptions s_langVersionLatestParseOptions = new(LanguageVersion.Preview);
Utilities\CSharpParseOptionsChangingService.cs (1)
40else if (newCSharpOptions.LanguageVersion == LanguageVersion.Preview)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (1)
48[InlineData(LanguageVersion.Preview)]
ProjectSystemShim\LegacyProject\CSharpCompilerOptionsTests.cs (1)
174[InlineData(LanguageVersion.Preview)]
System.Windows.Forms.Analyzers.CSharp.Tests (1)
Analyzers\Verifiers\CSharpIncrementalSourceGeneratorVerifier.cs (1)
39return parseOptions.WithLanguageVersion(LanguageVersion.Preview);