7 references to GetRequiredLanguageVersion
Microsoft.CodeAnalysis (1)
Diagnostic\Diagnostic.cs (1)
601/// on such diagnostics, as they are recognized by <see cref="Compilation.GetRequiredLanguageVersion"/>.
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenTupleTest.cs (4)
10956Assert.Equal("7.0", Compilation.GetRequiredLanguageVersion(comp.GetDiagnostics()[1])); 10957Assert.Equal("7.0", Compilation.GetRequiredLanguageVersion(comp.GetDiagnostics()[2])); 10958Assert.Null(Compilation.GetRequiredLanguageVersion(comp.GetDiagnostics()[3])); 10959Assert.Throws<ArgumentNullException>(() => Compilation.GetRequiredLanguageVersion(null));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
CodeGen\CodeGenTuples.vb (1)
14851Assert.Throws(Of ArgumentNullException)(Sub() Compilation.GetRequiredLanguageVersion(Nothing))
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\AbstractDiagnosticPropertiesService.cs (1)
23var requiredVersion = Compilation.GetRequiredLanguageVersion(diagnostic);