46 references to CSharp2
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
699return LanguageVersion.CSharp2;
LanguageVersion.cs (4)
279case LanguageVersion.CSharp2: 307case LanguageVersion.CSharp2: 380case LanguageVersion.CSharp2: 461result = LanguageVersion.CSharp2;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
34LanguageVersion.CSharp2,
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests.cs (1)
603""", LanguageVersion.CSharp2);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (1)
618""", LanguageVersion.CSharp2);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (9)
CommandLineTests.cs (9)
1586[InlineData("iso-2", LanguageVersion.CSharp2)] 1589[InlineData("2", LanguageVersion.CSharp2)] 1590[InlineData("2.0", LanguageVersion.CSharp2)] 1627[InlineData("6", "iso-2", LanguageVersion.CSharp2)] 1779InlineData(LanguageVersion.CSharp2, LanguageVersion.CSharp2), 1811InlineData("iso-2", true, LanguageVersion.CSharp2), 1814InlineData("2", true, LanguageVersion.CSharp2), 1815InlineData("2.0", true, LanguageVersion.CSharp2),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
EnableNullable\EnableNullableTests.cs (2)
561[InlineData(LanguageVersion.CSharp2)] 579LanguageVersion.CSharp2 => "CS8023",
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
34LanguageVersion.CSharp2,
src\Analyzers\CSharp\Tests\UseCollectionInitializer\UseCollectionInitializerTests.cs (1)
603""", LanguageVersion.CSharp2);
src\Analyzers\CSharp\Tests\UseObjectInitializer\UseObjectInitializerTests.cs (1)
618""", LanguageVersion.CSharp2);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\ImplicitlyTypedLocalsTests.cs (1)
153CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
Semantics\SwitchTests.cs (1)
2821CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics();
SourceGeneration\GeneratorDriverTests.cs (1)
3580parseOptions = parseOptions.WithLanguageVersion(LanguageVersion.CSharp2);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\ParameterTests.cs (1)
829CreateCompilation(code, parseOptions: new CSharpParseOptions(LanguageVersion.CSharp2)).VerifyDiagnostics(
Symbols\Source\PropertyTests.cs (1)
2855CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Parsing\ParserErrorMessageTests.cs (16)
5464tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)); 5529tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)); 5548tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)); 5591tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)); 5626tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)); 5660tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)); 5927CreateCompilation(test, parseOptions: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).VerifyDiagnostics( 6160SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6184SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6244SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6272SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6285SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6304SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6328SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6348SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify(); 6380SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp2)).GetDiagnostics().Verify();
Parsing\RoundTrippingTests.cs (1)
1579CSharpParseOptions options = new CSharpParseOptions(languageVersion: LanguageVersion.CSharp2);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
22public static readonly CSharpParseOptions Regular2 = Regular.WithLanguageVersion(LanguageVersion.CSharp2);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1616await AssertCSParseOptionsAsync(CS.LanguageVersion.CSharp2, options => options.LanguageVersion);