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