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