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)
334var 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)
1613Assert.Equal(expectedVersion, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1618Assert.Equal(expectedVersion, scriptParsedArgs.ParseOptions.SpecifiedLanguageVersion); 1634Assert.Equal(expectedVersion, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1646Assert.Equal(LanguageVersion.Default, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1659Assert.Equal(LanguageVersion.Latest, parsedArgs.ParseOptions.SpecifiedLanguageVersion); 1668Assert.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));