117 references to Feature
Microsoft.CodeAnalysis.VisualBasic (117)
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 (71)
49
Friend Function GetFeatureFlag(feature As
Feature
) As String
57
Friend Function GetLanguageVersion(feature As
Feature
) As LanguageVersion
60
Case
Feature
.AutoProperties,
61
Feature
.LineContinuation,
62
Feature
.StatementLambdas,
63
Feature
.CoContraVariance,
64
Feature
.CollectionInitializers,
65
Feature
.SubLambdas,
66
Feature
.ArrayLiterals
69
Case
Feature
.AsyncExpressions,
70
Feature
.Iterators,
71
Feature
.GlobalNamespace
74
Case
Feature
.NullPropagatingOperator,
75
Feature
.NameOfExpressions,
76
Feature
.InterpolatedStrings,
77
Feature
.ReadonlyAutoProperties,
78
Feature
.RegionsEverywhere,
79
Feature
.MultilineStringLiterals,
80
Feature
.CObjInAttributeArguments,
81
Feature
.LineContinuationComments,
82
Feature
.TypeOfIsNot,
83
Feature
.YearFirstDateLiterals,
84
Feature
.WarningDirectives,
85
Feature
.PartialModules,
86
Feature
.PartialInterfaces,
87
Feature
.ImplementingReadonlyOrWriteonlyPropertyWithReadwrite
90
Case
Feature
.Tuples,
91
Feature
.BinaryLiterals,
92
Feature
.DigitSeparators
95
Case
Feature
.InferredTupleNames
98
Case
Feature
.LeadingDigitSeparator,
99
Feature
.NonTrailingNamedArguments,
100
Feature
.PrivateProtected
103
Case
Feature
.UnconstrainedTypeParameterInConditional,
104
Feature
.CommentsAfterLineContinuation
107
Case
Feature
.InitOnlySettersUsage
110
Case
Feature
.UnmanagedConstraint
120
Friend Function GetResourceId(feature As
Feature
) As ERRID
122
Case
Feature
.AutoProperties
124
Case
Feature
.ReadonlyAutoProperties
126
Case
Feature
.LineContinuation
128
Case
Feature
.StatementLambdas
130
Case
Feature
.CoContraVariance
132
Case
Feature
.CollectionInitializers
134
Case
Feature
.SubLambdas
136
Case
Feature
.ArrayLiterals
138
Case
Feature
.AsyncExpressions
140
Case
Feature
.Iterators
142
Case
Feature
.GlobalNamespace
144
Case
Feature
.NullPropagatingOperator
146
Case
Feature
.NameOfExpressions
148
Case
Feature
.RegionsEverywhere
150
Case
Feature
.MultilineStringLiterals
152
Case
Feature
.CObjInAttributeArguments
154
Case
Feature
.LineContinuationComments
156
Case
Feature
.TypeOfIsNot
158
Case
Feature
.YearFirstDateLiterals
160
Case
Feature
.WarningDirectives
162
Case
Feature
.PartialModules
164
Case
Feature
.PartialInterfaces
166
Case
Feature
.ImplementingReadonlyOrWriteonlyPropertyWithReadwrite
168
Case
Feature
.DigitSeparators
170
Case
Feature
.BinaryLiterals
172
Case
Feature
.Tuples
174
Case
Feature
.LeadingDigitSeparator
176
Case
Feature
.PrivateProtected
178
Case
Feature
.InterpolatedStrings
180
Case
Feature
.UnconstrainedTypeParameterInConditional
182
Case
Feature
.CommentsAfterLineContinuation
184
Case
Feature
.InitOnlySettersUsage
186
Case
Feature
.UnmanagedConstraint
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