2 writes to SpecifiedLanguageVersion
Microsoft.CodeAnalysis.CSharp (2)
CSharpParseOptions.cs (2)
71this.SpecifiedLanguageVersion = languageVersion; 107return new CSharpParseOptions(this) { SpecifiedLanguageVersion = version, LanguageVersion = effectiveLanguageVersion };
20 references to SpecifiedLanguageVersion
Microsoft.CodeAnalysis.CSharp (7)
Compilation\CSharpDeterministicKeyBuilder.cs (1)
50writer.Write("specifiedLanguageVersion", csharpOptions.SpecifiedLanguageVersion);
CSharpParseOptions.cs (5)
78languageVersion: other.SpecifiedLanguageVersion, 101if (version == this.SpecifiedLanguageVersion) 288return this.SpecifiedLanguageVersion == other.SpecifiedLanguageVersion; 295Hash.Combine((int)this.SpecifiedLanguageVersion, 0));
Parser\DirectiveParser.cs (1)
326var specified = this.Options.SpecifiedLanguageVersion;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
113parseOptions.SpecifiedLanguageVersion.ToDisplayString() != newVersion &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
47p => Assert.Equal(expected, ((CSharpParseOptions)p.ParseOptions!).SpecifiedLanguageVersion));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
1614Assert.Equal(expectedVersion, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1619Assert.Equal(expectedVersion, scriptParsedArgs.ParseOptions.SpecifiedLanguageVersion); 1635Assert.Equal(expectedVersion, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1647Assert.Equal(LanguageVersion.Default, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1660Assert.Equal(LanguageVersion.Latest, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1669Assert.Equal(LanguageVersion.Default, parsedArgs.ParseOptions.SpecifiedLanguageVersion);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UpgradeProject\CSharpUpgradeProjectCodeFixProvider.cs (1)
113parseOptions.SpecifiedLanguageVersion.ToDisplayString() != newVersion &&
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (1)
47p => Assert.Equal(expected, ((CSharpParseOptions)p.ParseOptions!).SpecifiedLanguageVersion));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Serialization\CSharpOptionsSerializationService.cs (1)
41writer.WriteInt32((int)csharpOptions.SpecifiedLanguageVersion);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Utilities\CSharpParseOptionsChangingService.cs (2)
31if (oldCSharpOptions.WithLanguageVersion(newCSharpOptions.SpecifiedLanguageVersion) != newOptions) 61LanguageVersionFacts.ToDisplayString(csharpOptions.SpecifiedLanguageVersion));