39 references to CSharp3
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
683return LanguageVersion.CSharp3;
LanguageVersion.cs (4)
280case LanguageVersion.CSharp3: 309case LanguageVersion.CSharp3: 382case LanguageVersion.CSharp3: 466result = LanguageVersion.CSharp3;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (1)
44=> compilation.LanguageVersion() >= LanguageVersion.CSharp3;
src\Analyzers\CSharp\Analyzers\UseObjectInitializer\CSharpUseObjectInitializerDiagnosticAnalyzer.cs (1)
36return compilation.LanguageVersion() >= LanguageVersion.CSharp3;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
33LanguageVersion.CSharp3,
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
1591[InlineData("3", LanguageVersion.CSharp3)] 1592[InlineData("3.0", LanguageVersion.CSharp3)] 1780InlineData(LanguageVersion.CSharp3, LanguageVersion.CSharp3), 1816InlineData("3", true, LanguageVersion.CSharp3), 1817InlineData("3.0", true, LanguageVersion.CSharp3),
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseCollectionInitializer\CSharpUseCollectionInitializerDiagnosticAnalyzer.cs (1)
44=> compilation.LanguageVersion() >= LanguageVersion.CSharp3;
src\Analyzers\CSharp\Analyzers\UseObjectInitializer\CSharpUseObjectInitializerDiagnosticAnalyzer.cs (1)
36return compilation.LanguageVersion() >= LanguageVersion.CSharp3;
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
EnableNullable\EnableNullableTests.cs (2)
562[InlineData(LanguageVersion.CSharp3)] 580LanguageVersion.CSharp3 => "CS8024",
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
33LanguageVersion.CSharp3,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\DynamicTests.cs (1)
3775CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(
Semantics\ImplicitlyTypedLocalsTests.cs (1)
152CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics();
Semantics\TargetTypedConditionalOperatorTests.cs (4)
490CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 525CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics(expectedDiagnostics); 556CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput); 587CompileAndVerify(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3), expectedOutput: expectedOutput);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Source\PropertyTests.cs (1)
2854CreateCompilation(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp3)).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (10)
IncrementalParsing\IncrementalParsingTests.cs (1)
23return new CSharpParseOptions(languageVersion: LanguageVersion.CSharp3, preprocessorSymbols: defines);
LexicalAndXml\LexicalTests.cs (1)
32_options = new CSharpParseOptions(languageVersion: LanguageVersion.CSharp3);
LexicalAndXml\XmlDocCommentTests.cs (1)
26languageVersion: LanguageVersion.CSharp3,
Parsing\CSharpParseOptionsTests.cs (1)
45TestProperty((old, value) => old.WithLanguageVersion(value), opt => opt.LanguageVersion, LanguageVersion.CSharp3);
Parsing\ParserErrorMessageTests.cs (6)
5985tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)); 6013tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)); 6149SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().Verify(); 6216SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().Verify(); 6243SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().Verify(); 6271SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp3)).GetDiagnostics().Verify();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
23public static readonly CSharpParseOptions Regular3 = Regular.WithLanguageVersion(LanguageVersion.CSharp3);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
1623await AssertCSParseOptionsAsync(CS.LanguageVersion.CSharp3, options => options.LanguageVersion);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
WorkspaceTests\AdhocWorkspaceTests.cs (1)
387pws.SetParseOptions(projid, parseOptions.WithLanguageVersion(CS.LanguageVersion.CSharp3));