36 references to CSharp1
Microsoft.CodeAnalysis.CSharp (6)
Errors\MessageID.cs (1)
701return LanguageVersion.CSharp1;
LanguageVersion.cs (4)
278case LanguageVersion.CSharp1: 305case LanguageVersion.CSharp1: 378case LanguageVersion.CSharp1: 455result = LanguageVersion.CSharp1;
Symbols\Symbol_Attributes.cs (1)
697if (parseOptions.LanguageVersion == LanguageVersion.CSharp1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
42LanguageVersion.CSharp1);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (12)
CommandLineTests.cs (12)
1584[InlineData("iso-1", LanguageVersion.CSharp1)] 1586[InlineData("1", LanguageVersion.CSharp1)] 1587[InlineData("1.0", LanguageVersion.CSharp1)] 1624[InlineData("7", "1", LanguageVersion.CSharp1)] 1625[InlineData("6", "iso-1", LanguageVersion.CSharp1)] 1777InlineData(LanguageVersion.CSharp1, LanguageVersion.CSharp1), 1808InlineData("iso-1", true, LanguageVersion.CSharp1), 1809InlineData("ISO-1", true, LanguageVersion.CSharp1), 1811InlineData("1", true, LanguageVersion.CSharp1), 1812InlineData("1.0", true, LanguageVersion.CSharp1), 1866Assert.Equal(LanguageVersion.CSharp1, version);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
EnableNullable\EnableNullableTests.cs (2)
561[InlineData(LanguageVersion.CSharp1)] 579LanguageVersion.CSharp1 => "CS8022",
ExtractClass\ExtractClassTests.cs (1)
51var unusedParseOptions = new CSharpParseOptions(LanguageVersion.CSharp1);
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
42LanguageVersion.CSharp1);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\SwitchTests.cs (1)
2822CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp1)).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (8)
Parsing\ParserErrorMessageTests.cs (8)
5442tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp1)); 6161SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify(); 6185SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify(); 6286SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify( 6305SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify( 6329SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify( 6349SyntaxFactory.ParseSyntaxTree(text, options: TestOptions.RegularWithDocumentationComments.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify(); 6381SyntaxFactory.ParseSyntaxTree(source, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp1)).GetDiagnostics().Verify();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
21public static readonly CSharpParseOptions Regular1 = Regular.WithLanguageVersion(LanguageVersion.CSharp1);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1609await AssertCSParseOptionsAsync(CS.LanguageVersion.CSharp1, options => options.LanguageVersion);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
1766var options = new CSharpParseOptions(CS.LanguageVersion.CSharp1); 1796document = document.Project.WithParseOptions(new CSharpParseOptions(languageVersion: CS.LanguageVersion.CSharp1)).GetRequiredDocument(documentId);