122 references to LanguageVersion
Microsoft.CodeAnalysis.VisualBasic (122)
CommandLine\VisualBasicCommandLineParser.vb (2)
112Dim languageVersion As LanguageVersion = LanguageVersion.Default
CommandLine\VisualBasicCompiler.vb (4)
238Dim defaultVersion = LanguageVersion.Default.MapSpecifiedToEffectiveVersion() 239Dim latestVersion = LanguageVersion.Latest.MapSpecifiedToEffectiveVersion() 240For Each v As LanguageVersion In System.Enum.GetValues(GetType(LanguageVersion))
Compilation\VisualBasicCompilation.vb (6)
184Private ReadOnly _languageVersion As LanguageVersion 219Public ReadOnly Property LanguageVersion As LanguageVersion 265Dim options = parseOptions.WithLanguageVersion(LanguageVersion.Default) 486Private Function CommonLanguageVersion(syntaxTrees As ImmutableArray(Of SyntaxTree)) As LanguageVersion 489Dim result As LanguageVersion? = Nothing 499Return If(result, LanguageVersion.Default.MapSpecifiedToEffectiveVersion)
LanguageVersion.vb (66)
31Friend Function IsValid(value As LanguageVersion) As Boolean 34Case LanguageVersion.VisualBasic9, 35LanguageVersion.VisualBasic10, 36LanguageVersion.VisualBasic11, 37LanguageVersion.VisualBasic12, 38LanguageVersion.VisualBasic14, 39LanguageVersion.VisualBasic15, 40LanguageVersion.VisualBasic15_3, 41LanguageVersion.VisualBasic15_5, 42LanguageVersion.VisualBasic16, 43LanguageVersion.VisualBasic16_9, 44LanguageVersion.VisualBasic17_13 53Friend Function GetErrorName(value As LanguageVersion) As String 56Case LanguageVersion.VisualBasic9 58Case LanguageVersion.VisualBasic10 60Case LanguageVersion.VisualBasic11 62Case LanguageVersion.VisualBasic12 64Case LanguageVersion.VisualBasic14 66Case LanguageVersion.VisualBasic15 68Case LanguageVersion.VisualBasic15_3 70Case LanguageVersion.VisualBasic15_5 72Case LanguageVersion.VisualBasic16 74Case LanguageVersion.VisualBasic16_9 76Case LanguageVersion.VisualBasic17_13 91Public Function MapSpecifiedToEffectiveVersion(version As LanguageVersion) As LanguageVersion 93Case LanguageVersion.Latest 94Return LanguageVersion.VisualBasic17_13 95Case LanguageVersion.Default 96Return LanguageVersion.VisualBasic17_13 102Friend ReadOnly Property CurrentVersion As LanguageVersion 104Return LanguageVersion.VisualBasic17_13 113Public Function ToDisplayString(version As LanguageVersion) As String 115Case LanguageVersion.VisualBasic9 117Case LanguageVersion.VisualBasic10 119Case LanguageVersion.VisualBasic11 121Case LanguageVersion.VisualBasic12 123Case LanguageVersion.VisualBasic14 125Case LanguageVersion.VisualBasic15 127Case LanguageVersion.VisualBasic15_3 129Case LanguageVersion.VisualBasic15_5 131Case LanguageVersion.VisualBasic16 133Case LanguageVersion.VisualBasic16_9 135Case LanguageVersion.VisualBasic17_13 137Case LanguageVersion.Default 139Case LanguageVersion.Latest 149Public Function TryParse(version As String, ByRef result As LanguageVersion) As Boolean 151result = LanguageVersion.Default 157result = LanguageVersion.VisualBasic9 159result = LanguageVersion.VisualBasic10 161result = LanguageVersion.VisualBasic11 163result = LanguageVersion.VisualBasic12 165result = LanguageVersion.VisualBasic14 167result = LanguageVersion.VisualBasic15 169result = LanguageVersion.VisualBasic15_3 171result = LanguageVersion.VisualBasic15_5 173result = LanguageVersion.VisualBasic16 175result = LanguageVersion.VisualBasic16_9 177result = LanguageVersion.VisualBasic17_13 179result = LanguageVersion.Default 181result = LanguageVersion.Latest 183result = LanguageVersion.Default 191Friend Function DisallowInferredTupleElementNames(self As LanguageVersion) As Boolean 196Friend Function AllowNonTrailingNamedArguments(self As LanguageVersion) As Boolean 204Friend ReadOnly Property Version As LanguageVersion 206Friend Sub New(version As LanguageVersion)
Parser\Parser.vb (7)
6094''' Check to see if the given <paramref name="feature"/> is available with the <see cref="LanguageVersion"/> 6101Friend Shared Function CheckFeatureAvailability(Of TNode As VisualBasicSyntaxNode)(feature As Feature, node As TNode, languageVersion As LanguageVersion) As TNode 6109Private Shared Function ReportFeatureUnavailable(Of TNode As VisualBasicSyntaxNode)(feature As Feature, node As TNode, languageVersion As LanguageVersion) As TNode 6123Friend Shared Function CheckFeatureAvailability(languageVersion As LanguageVersion, feature As Feature) As Boolean 6131Friend Shared Function CheckFeatureAvailability(diagnosticsOpt As DiagnosticBag, location As Location, languageVersion As LanguageVersion, feature As Feature) As Boolean 6142Friend Shared Function GetFeatureAvailabilityError(feature As Feature, languageVersion As LanguageVersion) As DiagnosticInfo 6150Friend Shared Function CheckFeatureAvailability(diagnostics As BindingDiagnosticBag, location As Location, languageVersion As LanguageVersion, feature As Feature) As Boolean
Parser\ParserFeature.vb (10)
58Friend Function GetLanguageVersion(feature As Feature) As LanguageVersion 68Return LanguageVersion.VisualBasic10 73Return LanguageVersion.VisualBasic11 89Return LanguageVersion.VisualBasic14 94Return LanguageVersion.VisualBasic15 97Return LanguageVersion.VisualBasic15_3 102Return LanguageVersion.VisualBasic15_5 106Return LanguageVersion.VisualBasic16 109Return LanguageVersion.VisualBasic16_9 113Return LanguageVersion.VisualBasic17_13
PredefinedPreprocessorSymbols.vb (1)
13Return Double.Parse(LanguageVersion.Latest.MapSpecifiedToEffectiveVersion().GetErrorName(), CultureInfo.InvariantCulture)
Semantics\Conversions.vb (1)
2035LanguageVersion.Latest, ' Classifying conversions from/to type parameters. This is meaningful only when they and their constraints are declared in source
Symbols\ConstraintsHelper.vb (11)
386languageVersion As LanguageVersion, 413languageVersion As LanguageVersion, 432Public languageVersion As LanguageVersion 497languageVersion As LanguageVersion, 528languageVersion As LanguageVersion, 547languageVersion As LanguageVersion, 574languageVersion As LanguageVersion, 586languageVersion As LanguageVersion, 596languageVersion As LanguageVersion, 615languageVersion As LanguageVersion, 645languageVersion As LanguageVersion,
Symbols\MethodSymbol.vb (3)
817Friend Function ReduceExtensionMethod(instanceType As TypeSymbol, proximity As Integer, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol 825Public Function ReduceExtensionMethod(instanceType As TypeSymbol, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol 998Return Me.ReduceExtensionMethod(receiverType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(receiverType)), CompoundUseSiteInfo(Of AssemblySymbol).Discarded, LanguageVersion.Latest)
Symbols\ReducedExtensionMethodSymbol.vb (1)
40languageVersion As LanguageVersion
Symbols\Tuples\TupleFieldSymbol.vb (1)
245New VisualBasicRequiredLanguageVersion(LanguageVersion.VisualBasic15_3)))
Syntax\SyntaxFactory.vb (1)
1072Dim languageVersion As LanguageVersion = options.LanguageVersion
VisualBasicParseOptions.vb (8)
25Private _specifiedLanguageVersion As LanguageVersion 26Private _languageVersion As LanguageVersion 36Optional languageVersion As LanguageVersion = LanguageVersion.Default, 49languageVersion As LanguageVersion, 92Public ReadOnly Property SpecifiedLanguageVersion As LanguageVersion 102Public ReadOnly Property LanguageVersion As LanguageVersion 134Public Shadows Function WithLanguageVersion(version As LanguageVersion) As VisualBasicParseOptions