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