25 references to CSharp4
Microsoft.CodeAnalysis.CSharp (5)
Errors\MessageID.cs (1)
670return LanguageVersion.CSharp4;
LanguageVersion.cs (4)
281case LanguageVersion.CSharp4: 311case LanguageVersion.CSharp4: 384case LanguageVersion.CSharp4: 471result = LanguageVersion.CSharp4;
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
39LanguageVersion.CSharp4,
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
143new CSharpParseOptions(LanguageVersion.CSharp4));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
1593[InlineData("4", LanguageVersion.CSharp4)] 1594[InlineData("4.0", LanguageVersion.CSharp4)] 1781InlineData(LanguageVersion.CSharp4, LanguageVersion.CSharp4), 1818InlineData("4", true, LanguageVersion.CSharp4), 1819InlineData("4.0", true, LanguageVersion.CSharp4),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
EnableNullable\EnableNullableTests.cs (2)
563[InlineData(LanguageVersion.CSharp4)] 581LanguageVersion.CSharp4 => "CS8025",
src\Analyzers\CSharp\Tests\ReplaceDefaultLiteral\ReplaceDefaultLiteralTests.cs (1)
39LanguageVersion.CSharp4,
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
143new CSharpParseOptions(LanguageVersion.CSharp4));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\DynamicTests.cs (1)
3774CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp4)).VerifyDiagnostics();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
LexicalAndXml\PreprocessorTests.cs (2)
77return new CSharpParseOptions(languageVersion: LanguageVersion.CSharp4, kind: kind, preprocessorSymbols: defines); 3223[InlineData(LanguageVersion.CSharp4, "4")]
Parsing\ParserErrorMessageTests.cs (4)
6049tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp4)); 6091tree = SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp4)); 6148SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp4)).GetDiagnostics().Verify(); 6215SyntaxFactory.ParseSyntaxTree(text, options: CSharpParseOptions.Default.WithLanguageVersion(LanguageVersion.CSharp4)).GetDiagnostics().Verify();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
24public static readonly CSharpParseOptions Regular4 = Regular.WithLanguageVersion(LanguageVersion.CSharp4);