119 references to Feature
Microsoft.CodeAnalysis.VisualBasic (119)
Parser\BlockContexts\CompilationUnitContext.vb (2)
122
Dim regionsAreAllowedEverywhere = Not haveRegionDirectives OrElse Parser.CheckFeatureAvailability(
Feature
.RegionsEverywhere)
475
rewritten = _parser.ReportFeatureUnavailable(
Feature
.RegionsEverywhere, rewritten)
Parser\ParseConditional.vb (1)
441
statement = CheckFeatureAvailability(
Feature
.WarningDirectives, statement)
Parser\ParseExpression.vb (7)
419
qToken = CheckFeatureAvailability(
Feature
.NullPropagatingOperator, qToken)
485
qToken = CheckFeatureAvailability(
Feature
.NullPropagatingOperator, qToken)
675
[nameOf] = CheckFeatureAvailability(
Feature
.NameOfExpressions, [nameOf])
948
operatorToken = CheckFeatureAvailability(
Feature
.TypeOfIsNot, operatorToken)
1303
tupleExpression = CheckFeatureAvailability(
Feature
.Tuples, tupleExpression)
1483
New VisualBasicRequiredLanguageVersion(
Feature
.NonTrailingNamedArguments.GetLanguageVersion()))
1830
value = CheckFeatureAvailability(
Feature
.StatementLambdas, value)
Parser\ParseInterpolatedString.vb (1)
97
Return CheckFeatureAvailability(
Feature
.InterpolatedStrings, node)
Parser\Parser.vb (24)
180
result = CheckFeatureAvailability(
Feature
.GlobalNamespace, result)
633
statementSyntax = CheckFeatureAvailability(
Feature
.LineContinuation, statementSyntax)
636
statementSyntax = CheckFeatureAvailability(
Feature
.LineContinuationComments, statementSyntax)
880
statementSyntax = CheckFeatureAvailability(
Feature
.LineContinuation, statementSyntax)
883
statementSyntax = CheckFeatureAvailability(
Feature
.LineContinuationComments, statementSyntax)
1600
statement = CheckFeatureAvailability(If(kind = SyntaxKind.ModuleStatement,
Feature
.PartialModules,
Feature
.PartialInterfaces), statement)
2006
t = CheckFeatureAvailability(If(possibleKeyword.Kind = SyntaxKind.AsyncKeyword,
Feature
.AsyncExpressions,
Feature
.Iterators), t)
2525
fromKeyword = CheckFeatureAvailability(
Feature
.CollectionInitializers, fromKeyword)
2989
tupleType = CheckFeatureAvailability(
Feature
.Tuples, tupleType)
4177
propertyStatement = CheckFeatureAvailability(
Feature
.AutoProperties, propertyStatement)
4180
propertyStatement = CheckFeatureAvailability(
Feature
.ReadonlyAutoProperties, propertyStatement)
4300
optionalVarianceModifier = CheckFeatureAvailability(
Feature
.CoContraVariance, optionalVarianceModifier)
4318
outKeyword = CheckFeatureAvailability(
Feature
.CoContraVariance, outKeyword)
6097
Private Function CheckFeatureAvailability(Of TNode As VisualBasicSyntaxNode)(feature As
Feature
, node As TNode) As TNode
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
6115
Friend Function ReportFeatureUnavailable(Of TNode As VisualBasicSyntaxNode)(feature As
Feature
, node As TNode) As TNode
6119
Friend Function CheckFeatureAvailability(feature As
Feature
) As Boolean
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 (73)
50
Friend Function GetFeatureFlag(feature As
Feature
) As String
58
Friend Function GetLanguageVersion(feature As
Feature
) As LanguageVersion
61
Case
Feature
.AutoProperties,
62
Feature
.LineContinuation,
63
Feature
.StatementLambdas,
64
Feature
.CoContraVariance,
65
Feature
.CollectionInitializers,
66
Feature
.SubLambdas,
67
Feature
.ArrayLiterals
70
Case
Feature
.AsyncExpressions,
71
Feature
.Iterators,
72
Feature
.GlobalNamespace
75
Case
Feature
.NullPropagatingOperator,
76
Feature
.NameOfExpressions,
77
Feature
.InterpolatedStrings,
78
Feature
.ReadonlyAutoProperties,
79
Feature
.RegionsEverywhere,
80
Feature
.MultilineStringLiterals,
81
Feature
.CObjInAttributeArguments,
82
Feature
.LineContinuationComments,
83
Feature
.TypeOfIsNot,
84
Feature
.YearFirstDateLiterals,
85
Feature
.WarningDirectives,
86
Feature
.PartialModules,
87
Feature
.PartialInterfaces,
88
Feature
.ImplementingReadonlyOrWriteonlyPropertyWithReadwrite
91
Case
Feature
.Tuples,
92
Feature
.BinaryLiterals,
93
Feature
.DigitSeparators
96
Case
Feature
.InferredTupleNames
99
Case
Feature
.LeadingDigitSeparator,
100
Feature
.NonTrailingNamedArguments,
101
Feature
.PrivateProtected
104
Case
Feature
.UnconstrainedTypeParameterInConditional,
105
Feature
.CommentsAfterLineContinuation
108
Case
Feature
.InitOnlySettersUsage
111
Case
Feature
.UnmanagedConstraint,
112
Feature
.OverloadResolutionPriority
122
Friend Function GetResourceId(feature As
Feature
) As ERRID
124
Case
Feature
.AutoProperties
126
Case
Feature
.ReadonlyAutoProperties
128
Case
Feature
.LineContinuation
130
Case
Feature
.StatementLambdas
132
Case
Feature
.CoContraVariance
134
Case
Feature
.CollectionInitializers
136
Case
Feature
.SubLambdas
138
Case
Feature
.ArrayLiterals
140
Case
Feature
.AsyncExpressions
142
Case
Feature
.Iterators
144
Case
Feature
.GlobalNamespace
146
Case
Feature
.NullPropagatingOperator
148
Case
Feature
.NameOfExpressions
150
Case
Feature
.RegionsEverywhere
152
Case
Feature
.MultilineStringLiterals
154
Case
Feature
.CObjInAttributeArguments
156
Case
Feature
.LineContinuationComments
158
Case
Feature
.TypeOfIsNot
160
Case
Feature
.YearFirstDateLiterals
162
Case
Feature
.WarningDirectives
164
Case
Feature
.PartialModules
166
Case
Feature
.PartialInterfaces
168
Case
Feature
.ImplementingReadonlyOrWriteonlyPropertyWithReadwrite
170
Case
Feature
.DigitSeparators
172
Case
Feature
.BinaryLiterals
174
Case
Feature
.Tuples
176
Case
Feature
.LeadingDigitSeparator
178
Case
Feature
.PrivateProtected
180
Case
Feature
.InterpolatedStrings
182
Case
Feature
.UnconstrainedTypeParameterInConditional
184
Case
Feature
.CommentsAfterLineContinuation
186
Case
Feature
.InitOnlySettersUsage
188
Case
Feature
.UnmanagedConstraint
190
Case
Feature
.OverloadResolutionPriority
Parser\ParseStatement.vb (1)
1848
yieldKeyword = CheckFeatureAvailability(
Feature
.Iterators, yieldKeyword)
Scanner\Scanner.vb (10)
578
If Not CheckFeatureAvailability(
Feature
.CommentsAfterLineContinuation) Then
580
New VisualBasicRequiredLanguageVersion(
Feature
.CommentsAfterLineContinuation.GetLanguageVersion()))})
2126
result = CheckFeatureAvailability(result,
Feature
.LeadingDigitSeparator)
2128
result = CheckFeatureAvailability(result,
Feature
.DigitSeparators)
2132
result = CheckFeatureAvailability(result,
Feature
.BinaryLiterals)
2484
result = Parser.CheckFeatureAvailability(
Feature
.YearFirstDateLiterals, result, Options.LanguageVersion)
2585
result = Parser.CheckFeatureAvailability(
Feature
.MultilineStringLiterals, result, Options.LanguageVersion)
2686
Private Function CheckFeatureAvailability(token As SyntaxToken, feature As
Feature
) As SyntaxToken
2698
Friend Function CheckFeatureAvailability(feature As
Feature
) As Boolean
2702
Private Shared Function CheckFeatureAvailability(parseOptions As VisualBasicParseOptions, feature As
Feature
) As Boolean