1214 references to BindingDiagnosticBag
Microsoft.CodeAnalysis.VisualBasic (1214)
Binding\AttributeSemanticModel.vb (1)
52Friend Overrides Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode
Binding\BackstopBinder.vb (9)
96Protected Overrides Function CreateBoundWithBlock(node As WithBlockSyntax, boundBlockBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundStatement 100Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 104Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 113diagnostics As BindingDiagnosticBag, 121diagnostics As BindingDiagnosticBag) As BoundExpression 125Protected Overrides Function TryBindOmittedLeftForConditionalAccess(node As ConditionalAccessExpressionSyntax, accessingBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundExpression 130diagnostics As BindingDiagnosticBag, 193Public Overrides Function DeclareImplicitLocalVariable(nameSyntax As IdentifierNameSyntax, diagnostics As BindingDiagnosticBag) As LocalSymbol 203Public Overrides Sub DisallowFurtherImplicitVariableDeclaration(diagnostics As BindingDiagnosticBag)
Binding\Binder.vb (27)
427Public Function GetSpecialType(typeId As SpecialType, node As SyntaxNodeOrToken, diagBag As BindingDiagnosticBag) As NamedTypeSymbol 432Public Shared Function GetSpecialType(compilation As VisualBasicCompilation, typeId As SpecialType, node As SyntaxNodeOrToken, diagBag As BindingDiagnosticBag) As NamedTypeSymbol 437Public Function GetSpecialType(typeId As SpecialType, node As SyntaxNodeOrToken, diagBag As BindingDiagnosticBag, ByRef reportedAnError As Boolean, suppressUseSiteError As Boolean) As NamedTypeSymbol 441Public Shared Function GetSpecialType(compilation As VisualBasicCompilation, typeId As SpecialType, node As SyntaxNodeOrToken, diagBag As BindingDiagnosticBag, ByRef reportedAnError As Boolean, suppressUseSiteError As Boolean) As NamedTypeSymbol 469Friend Function GetWellKnownType(type As WellKnownType, syntax As SyntaxNode, diagBag As BindingDiagnosticBag) As NamedTypeSymbol 473Friend Shared Function GetWellKnownType(compilation As VisualBasicCompilation, type As WellKnownType, syntax As SyntaxNode, diagBag As BindingDiagnosticBag) As NamedTypeSymbol 487Private Function GetInternalXmlHelperType(syntax As VisualBasicSyntaxNode, diagBag As BindingDiagnosticBag) As NamedTypeSymbol 552Friend Function GetSpecialTypeMember(member As SpecialMember, syntax As SyntaxNode, diagnostics As BindingDiagnosticBag) As Symbol 556Friend Shared Function GetSpecialTypeMember(assembly As AssemblySymbol, member As SpecialMember, syntax As SyntaxNode, diagnostics As BindingDiagnosticBag) As Symbol 591Friend Function GetWellKnownTypeMember(member As WellKnownMember, syntax As SyntaxNode, diagBag As BindingDiagnosticBag) As Symbol 595Friend Shared Function GetWellKnownTypeMember(compilation As VisualBasicCompilation, member As WellKnownMember, syntax As SyntaxNode, diagBag As BindingDiagnosticBag) As Symbol 785Public Overridable Function DeclareImplicitLocalVariable(nameSyntax As IdentifierNameSyntax, diagnostics As BindingDiagnosticBag) As LocalSymbol 803Public Overridable Sub DisallowFurtherImplicitVariableDeclaration(diagnostics As BindingDiagnosticBag) 898Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, id As ERRID) 902Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, id As ERRID, ParamArray args As Object()) 906Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, info As DiagnosticInfo) 911Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, id As ERRID) 915Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, id As ERRID, ParamArray args As Object()) 919Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, info As DiagnosticInfo) 924Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, diag As Diagnostic) 928Public Shared Function ReportUseSite(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, useSiteInfo As UseSiteInfo(Of AssemblySymbol)) As Boolean 932Public Shared Function ReportUseSite(diagBag As BindingDiagnosticBag, location As Location, useSiteInfo As UseSiteInfo(Of AssemblySymbol)) As Boolean 936Public Sub AddTypesAssemblyAsDependency(namespaceOrType As NamespaceOrTypeSymbol, diagBag As BindingDiagnosticBag) 949Friend Sub ReportDiagnosticsIfObsoleteOrNotSupported(diagnostics As BindingDiagnosticBag, symbol As Symbol, node As SyntaxNode) 981Friend Shared Sub ReportDiagnosticsIfObsolete(diagnostics As BindingDiagnosticBag, context As Symbol, symbol As Symbol, node As SyntaxNode) 1077diagnostics As BindingDiagnosticBag 1105diagnostics As BindingDiagnosticBag
Binding\Binder_AnonymousTypes.vb (8)
21Private Function BindAnonymousObjectCreationExpression(node As AnonymousObjectCreationExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 28diagnostics As BindingDiagnosticBag) As BoundExpression 108diagnostics As BindingDiagnosticBag) As BoundExpression 125diagnostics As BindingDiagnosticBag) 211diagnostics As BindingDiagnosticBag, 380diagnostics As BindingDiagnosticBag, 465Protected Overrides Function TryBindOmittedLeftForDictionaryAccess(node As MemberAccessExpressionSyntax, accessingBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundExpression 472Protected Overrides Function TryBindOmittedLeftForConditionalAccess(node As ConditionalAccessExpressionSyntax, accessingBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundExpression
Binding\Binder_Attributes.vb (16)
27diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 46diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 59diagnostics As BindingDiagnosticBag) 75Friend Function GetAttribute(node As AttributeSyntax, boundAttributeType As NamedTypeSymbol, diagnostics As BindingDiagnosticBag) As SourceAttributeData 114Friend Function BindAttribute(node As AttributeSyntax, diagnostics As BindingDiagnosticBag) As BoundAttribute 230Friend Function BindAttribute(node As AttributeSyntax, type As NamedTypeSymbol, diagnostics As BindingDiagnosticBag) As BoundAttribute 293diagnostics = BindingDiagnosticBag.Discarded 380diagnostics As BindingDiagnosticBag 434diagnostics As BindingDiagnosticBag) As BoundExpression 684Public Function VisitPositionalArguments(arguments As ImmutableArray(Of BoundExpression), diag As BindingDiagnosticBag) As ImmutableArray(Of TypedConstant) 688Private Function VisitArguments(arguments As ImmutableArray(Of BoundExpression), diag As BindingDiagnosticBag) As ImmutableArray(Of TypedConstant) 704Public Function VisitNamedArguments(arguments As ImmutableArray(Of BoundExpression), diag As BindingDiagnosticBag) As ImmutableArray(Of KeyValuePair(Of String, TypedConstant)) 726Private Function VisitNamedArgument(argument As BoundExpression, diag As BindingDiagnosticBag) As Nullable(Of KeyValuePair(Of String, TypedConstant)) 746Public Function VisitExpression(node As BoundExpression, diagBag As BindingDiagnosticBag) As TypedConstant 829Private Function VisitGetType(node As BoundGetType, diagBag As BindingDiagnosticBag) As TypedConstant 851Private Function VisitArrayCreation(node As BoundArrayCreation, diag As BindingDiagnosticBag) As TypedConstant
Binding\Binder_ConditionalAccess.vb (4)
17Private Function BindConditionalAccessExpression(node As ConditionalAccessExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 29Private Function BindConditionalAccessReceiver(node As ConditionalAccessExpressionSyntax, diagnostics As BindingDiagnosticBag, <Out> ByRef placeholder As BoundRValuePlaceholder) As BoundExpression 71diagnostics As BindingDiagnosticBag) As BoundExpression 81BindConditionalAccessReceiver(node, BindingDiagnosticBag.Discarded, placeholder)
Binding\Binder_Constraints.vb (2)
16diagnostics As BindingDiagnosticBag 46diagnostics As BindingDiagnosticBag
Binding\Binder_Conversions.vb (28)
22diagnostics As BindingDiagnosticBag 46diagnostics As BindingDiagnosticBag 59diagnostics As BindingDiagnosticBag 74diagnostics As BindingDiagnosticBag 91diagnostics = BindingDiagnosticBag.Discarded 170diagnostics As BindingDiagnosticBag 185diagnostics As BindingDiagnosticBag 205diagnostics = BindingDiagnosticBag.Discarded 273diagnostics As BindingDiagnosticBag 311diagnostics As BindingDiagnosticBag, 325diagnostics As BindingDiagnosticBag, 352diagnostics = BindingDiagnosticBag.Discarded 374diagnostics = BindingDiagnosticBag.Discarded 407diagnostics = BindingDiagnosticBag.Discarded 431diagnostics As BindingDiagnosticBag, 664diagnostics As BindingDiagnosticBag, 678diagnostics As BindingDiagnosticBag, 983diagnostics As BindingDiagnosticBag 1079converted.Add(ApplyConversion(tree, targetElementTypes(i), placeholder, isExplicit, BindingDiagnosticBag.Discarded)) 1095diagnostics As BindingDiagnosticBag 1199diagnostics As BindingDiagnosticBag 1308diagnostics As BindingDiagnosticBag 1510diagnostics As BindingDiagnosticBag 1617Private Function ReclassifyInterpolatedStringExpression(conversionSemantics As SyntaxKind, tree As SyntaxNode, convKind As ConversionKind, isExplicit As Boolean, node As BoundInterpolatedStringExpression, targetType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression 1636diagnostics As BindingDiagnosticBag) As BoundExpression 1706diagnostics As BindingDiagnosticBag 1741Private Shared Sub WarnOnLockConversion(sourceType As TypeSymbol, syntax As SyntaxNode, diagnostics As BindingDiagnosticBag) 1755diagnostics As BindingDiagnosticBag,
Binding\Binder_Delegates.vb (19)
45Private Function BindAddressOfExpression(node As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag) As BoundExpression 87diagnostics As BindingDiagnosticBag 181boundArguments(argumentIndex) = BindValue(expressionSyntax, BindingDiagnosticBag.Discarded) 221Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, addressOfExpression.WithDependencies) 338diagBag As BindingDiagnosticBag, 368diagnostics As BindingDiagnosticBag 371Dim argumentDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 385Dim zeroArgumentDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 432diagnostics As BindingDiagnosticBag, 513diagnostics = BindingDiagnosticBag.Discarded 622diagnostics As BindingDiagnosticBag 645diagnostics = BindingDiagnosticBag.Discarded 674diagnostics = BindingDiagnosticBag.Discarded 722diagnostics As BindingDiagnosticBag 746diagnostics As BindingDiagnosticBag 922diagnostics As BindingDiagnosticBag 965diagnostics As BindingDiagnosticBag, 1076diagnostics As BindingDiagnosticBag, 1145diagnostics As BindingDiagnosticBag
Binding\Binder_Diagnostics.vb (5)
19Public Shared Function ReportDiagnosticAndProduceBadExpression(diagBag As BindingDiagnosticBag, 28Public Shared Function ReportDiagnosticAndProduceBadExpression(diagBag As BindingDiagnosticBag, 38Public Shared Function ReportDiagnosticAndProduceBadExpression(diagBag As BindingDiagnosticBag, 50Public Shared Function ReportDiagnosticAndProduceErrorTypeSymbol(diagBag As BindingDiagnosticBag, 60Public Shared Function ReportDiagnosticAndProduceErrorTypeSymbol(diagBag As BindingDiagnosticBag,
Binding\Binder_DocumentationComments.vb (2)
14Friend Overridable Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 18Friend Overridable Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
Binding\Binder_Expressions.vb (94)
24diagnostics As BindingDiagnosticBag 37diagnostics As BindingDiagnosticBag 64Private Function BindExpressionCore(node As ExpressionSyntax, isInvocationOrAddressOf As Boolean, isOperandOfConditionalBranch As Boolean, eventContext As Boolean, diagnostics As BindingDiagnosticBag) As BoundExpression 330Private Function BindTupleExpression(node As TupleExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 408Private Shared Function ExtractTupleElementNames(arguments As SeparatedSyntaxList(Of SimpleArgumentSyntax), diagnostics As BindingDiagnosticBag) _ 528diagnostics As BindingDiagnosticBag, 578Private Shared Function CheckTupleMemberName(name As String, index As Integer, syntax As SyntaxNodeOrToken, diagnostics As BindingDiagnosticBag, uniqueFieldNames As HashSet(Of String)) As Boolean 597Public Function BindNamespaceOrTypeExpression(node As TypeSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 621Public Function BindNamespaceOrTypeOrExpressionSyntaxForSemanticModel(node As ExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 634Dim boundParent As BoundExpression = BindNamespaceOrTypeOrExpressionSyntaxForSemanticModel(DirectCast(node.Parent, QualifiedNameSyntax), BindingDiagnosticBag.Discarded) 642boundParent = BindExpression(DirectCast(node.Parent, QualifiedNameSyntax), BindingDiagnosticBag.Discarded) 674Private Function BindQualifiedName(name As QualifiedNameSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 678Private Function BindGetTypeExpression(node As GetTypeExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 700Private Function BindNameOfExpression(node As NameOfExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 704diagnostics = BindingDiagnosticBag.Discarded 768Private Function BindTypeOfExpression(node As TypeOfExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 796diagnostics = BindingDiagnosticBag.Discarded 816diagnostics As BindingDiagnosticBag, 827diagnostics As BindingDiagnosticBag, 836diagnostics As BindingDiagnosticBag, 851diagnostics As BindingDiagnosticBag, 892Private Shared Function AdjustReceiverAmbiguousTypeOrValue(receiver As BoundExpression, diagnostics As BindingDiagnosticBag) As BoundExpression 902Private Shared Function AdjustReceiverAmbiguousTypeOrValue(ByRef group As BoundMethodOrPropertyGroup, diagnostics As BindingDiagnosticBag) As BoundExpression 940diagnostics As BindingDiagnosticBag) As BoundExpression 961diagnostics As BindingDiagnosticBag 1058Friend Function TryDefaultInstanceProperty(typeExpr As BoundTypeExpression, diagnostics As BindingDiagnosticBag) As BoundExpression 1124Dim exprDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies) 1232diagnostics As BindingDiagnosticBag 1338diagnostics As BindingDiagnosticBag, 1348diagnostics As BindingDiagnosticBag 1427expr = MakeRValue(expr, BindingDiagnosticBag.Discarded) 1433diagnostics As BindingDiagnosticBag 1494diagnostics As BindingDiagnosticBag) As BoundExpression 1511Dim argument As BoundExpression = ApplyImplicitConversion(arrayLiteral.Syntax, arrayLiteral.InferredType, arrayLiteral, BindingDiagnosticBag.Discarded) 1597Private Sub ReportArrayLiteralDiagnostics(arrayLiteral As BoundArrayLiteral, targetArrayType As ArrayTypeSymbol, diagnostics As BindingDiagnosticBag) 1605Private Sub ReportArrayLiteralInferredTypeDiagnostics(arrayLiteral As BoundArrayLiteral, diagnostics As BindingDiagnosticBag) 1636Private Function ReclassifyArrayInitialization(arrayInitialization As BoundArrayInitialization, elementType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundArrayInitialization 1673diagnostics As BindingDiagnosticBag 1684diagnostics As BindingDiagnosticBag 1694diagnostics As BindingDiagnosticBag 1705diagnostics As BindingDiagnosticBag 1715diagnostics As BindingDiagnosticBag 1788Private Shared Sub ReportAssignmentToRValue(expr As BoundExpression, diagnostics As BindingDiagnosticBag) 1931Private Function BindTernaryConditionalExpression(node As TernaryConditionalExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 1998Private Function BindBinaryConditionalExpression(node As BinaryConditionalExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 2150diagnostics As BindingDiagnosticBag, 2187node As ExpressionSyntax, diagnostics As BindingDiagnosticBag) As Boolean 2336Private Function BindMeExpression(node As MeExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundMeReference 2359Private Function BindMyBaseExpression(node As MyBaseExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundMyBaseReference 2371Private Function BindMyClassExpression(node As MyClassExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundMyClassReference 2445diagnostics As BindingDiagnosticBag, 2551diagnostics As BindingDiagnosticBag) As BoundExpression 2620Private Function BindMemberAccess(node As MemberAccessExpressionSyntax, eventContext As Boolean, diagnostics As BindingDiagnosticBag) As BoundExpression 2662Private Function BindLeftOfPotentialColorColorMemberAccess(parentNode As MemberAccessExpressionSyntax, leftOpt As ExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 2707Dim leftDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 2711Dim propertyDiagnostics As BindingDiagnosticBag = Nothing 2713propertyDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 2741Dim typeDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 2752Dim valueDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 2790Protected Function BindMemberAccess(node As VisualBasicSyntaxNode, left As BoundExpression, right As SimpleNameSyntax, eventContext As Boolean, diagnostics As BindingDiagnosticBag) As BoundExpression 2981diagnostics As BindingDiagnosticBag, 2989diagnostics As BindingDiagnosticBag, 3012Private Function GetLocalSymbolType(localSymbol As LocalSymbol, node As VisualBasicSyntaxNode, Optional diagnostics As BindingDiagnosticBag = Nothing) As TypeSymbol 3076diagnostics As BindingDiagnosticBag) As BoundExpression 3508Private Sub CheckMemberTypeAccessibility(diagnostics As BindingDiagnosticBag, node As SyntaxNode, member As Symbol) 3574Public Function BindLabel(node As LabelSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 3611diagnostics As BindingDiagnosticBag 3637Private Function CheckSharedSymbolAccess(node As SyntaxNode, isShared As Boolean, <[In], Out> ByRef receiver As BoundExpression, qualKind As QualificationKind, diagnostics As BindingDiagnosticBag) As Boolean 3717diagnostics As BindingDiagnosticBag) As BoundExpression 3722Private Function BindDictionaryAccess(node As MemberAccessExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 3833Private Shared Sub ReportNoDefaultProperty(expr As BoundExpression, diagnostics As BindingDiagnosticBag) 3851Private Shared Sub ReportQualNotObjectRecord(expr As BoundExpression, diagnostics As BindingDiagnosticBag) 3856Private Shared Sub ReportDefaultMemberNotProperty(expr As BoundExpression, diagnostics As BindingDiagnosticBag) 3870Private Shared Sub VerifyTypeCharacterConsistency(nodeOrToken As SyntaxNodeOrToken, type As TypeSymbol, typeChar As TypeCharacter, diagnostics As BindingDiagnosticBag) 3888Private Shared Sub VerifyTypeCharacterConsistency(name As SimpleNameSyntax, type As TypeSymbol, diagnostics As BindingDiagnosticBag) 3910Private Function BindArrayAccess(node As InvocationExpressionSyntax, expr As BoundExpression, boundArguments As ImmutableArray(Of BoundExpression), argumentNames As ImmutableArray(Of String), diagnostics As BindingDiagnosticBag) As BoundExpression 3966Dim discardedDiagnostics = BindingDiagnosticBag.Discarded 4003diagnostics As BindingDiagnosticBag 4072Private Function BindArrayCreationExpression(node As ArrayCreationExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 4103diagnostics As BindingDiagnosticBag) As BoundExpression 4127Private Function CreateArrayBounds(node As SyntaxNode, knownSizes() As DimensionSize, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of BoundExpression) 4180diagnostics As BindingDiagnosticBag) As BoundArrayInitialization 4202diagnostics As BindingDiagnosticBag) As BoundArrayInitialization 4230diagnostics As BindingDiagnosticBag) As BoundArrayInitialization 4317Private Sub CheckRangeArgumentLowerBound(rangeArgument As RangeArgumentSyntax, diagnostics As BindingDiagnosticBag) 4336diagnostics As BindingDiagnosticBag, 4449Private Function BindLiteralConstant(node As LiteralExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral 4478diagnostics As BindingDiagnosticBag, 4582diagnostics = BindingDiagnosticBag.Discarded 4638diagnostics As BindingDiagnosticBag, 4656diagnostics As BindingDiagnosticBag, 4691diagnostics = BindingDiagnosticBag.Discarded 4694Dim ignoreDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies) 4697Dim allIgnoreDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics)
Binding\Binder_Imports.vb (3)
81Dim diagBag = BindingDiagnosticBag.GetInstance() 162Dim diagBag = BindingDiagnosticBag.GetInstance() 222Dim diagBag = BindingDiagnosticBag.GetInstance()
Binding\Binder_Initializers.vb (16)
88diagnostics As BindingDiagnosticBag 206diagnostics As BindingDiagnosticBag, 230diagnostics As BindingDiagnosticBag) 266diagnostics As BindingDiagnosticBag, 315Friend Function BindFieldInitializerExpression(equalsValueOrAsNewSyntax As SyntaxNode, fieldSymbol As FieldSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression 337diagnostics As BindingDiagnosticBag 384Friend Function BindPropertyInitializerExpression(initValueOrAsNewNode As SyntaxNode, propertySymbol As PropertySymbol, diagnostics As BindingDiagnosticBag) As BoundExpression 395diagnostics As BindingDiagnosticBag 495diagnostics As BindingDiagnosticBag, 500Dim initValueDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies) 511Dim fieldType = If(fieldSymbol.HasDeclaredType, fieldSymbol.Type, GetSpecialType(SpecialType.System_Object, asNewSyntax, BindingDiagnosticBag.Discarded)) ' prevent recursion if field type is inferred. 520BindingDiagnosticBag.Discarded, 524DirectCast(asNewSyntax.NewExpression, AnonymousObjectCreationExpressionSyntax), BindingDiagnosticBag.Discarded) 563constValue = Me.GetExpressionConstantValueIfAny(boundInitValue, BindingDiagnosticBag.Discarded, ConstantContext.Default) 592diagnostics As BindingDiagnosticBag, 647diagnostics As BindingDiagnosticBag,
Binding\Binder_InterpolatedString.vb (6)
16Private Function BindInterpolatedStringExpression(syntax As InterpolatedStringExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 36Private Function BindInterpolatedStringText(syntax As InterpolatedStringTextSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral 40Private Function BindInterpolation(syntax As InterpolationSyntax, diagnostics As BindingDiagnosticBag) As BoundInterpolation 75Private Function BindUnconvertedInterpolatedStringToString(node As BoundInterpolatedStringExpression, diagnostics As BindingDiagnosticBag) As BoundExpression 108Private Function BindUnconvertedInterpolatedStringToFormattable(syntax As SyntaxNode, node As BoundInterpolatedStringExpression, targetType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression 139Private Function TryInvokeInterpolatedStringFactory(node As BoundInterpolatedStringExpression, factoryType As TypeSymbol, factoryMethodName As String, targetType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression
Binding\Binder_Invocation.vb (37)
105Private Function BindDirectConstructorCall(node As InvocationExpressionSyntax, group As BoundMethodGroup, diagnostics As BindingDiagnosticBag) As BoundExpression 137group, boundArguments, argumentNames, BindingDiagnosticBag.Discarded, 161Private Function BindInvocationExpression(node As InvocationExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 259diagnostics As BindingDiagnosticBag) As BoundExpression 397diagnostics As BindingDiagnosticBag) As BoundExpression 410Dim tmpDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 488BindingDiagnosticBag.Discarded, 520Private Function BindDefaultPropertyGroup(node As VisualBasicSyntaxNode, target As BoundExpression, diagnostics As BindingDiagnosticBag) As BoundExpression 537Dim tempDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 580Private Function ShouldBindWithoutArguments(node As VisualBasicSyntaxNode, ByRef group As BoundMethodOrPropertyGroup, diagnostics As BindingDiagnosticBag) As Boolean 729diagnostics As BindingDiagnosticBag, 751diagnostics = BindingDiagnosticBag.Discarded 829diagnostics As BindingDiagnosticBag, 987Friend Sub WarnOnRecursiveAccess(propertyAccess As BoundPropertyAccess, accessKind As PropertyAccessKind, diagnostics As BindingDiagnosticBag) 1011Friend Sub WarnOnRecursiveAccess(node As BoundExpression, accessKind As PropertyAccessKind, diagnostics As BindingDiagnosticBag) 1029diagnostics As BindingDiagnosticBag 1085diagnostics As BindingDiagnosticBag 1193diagnostics As BindingDiagnosticBag, 1223diagnostics As BindingDiagnosticBag, 1272diagnostics As BindingDiagnosticBag, 1347diagnostics As BindingDiagnosticBag, 1766diagnostics As BindingDiagnosticBag, 1831diagnostics As BindingDiagnosticBag, 1858Dim candidateDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 1937diagnostics As BindingDiagnosticBag 1988diagnostics As BindingDiagnosticBag, 2474diagnostics As BindingDiagnosticBag, 2543diagnostics As BindingDiagnosticBag, 2629diagnostics As BindingDiagnosticBag 2800diagnostics As BindingDiagnosticBag 2822diagnostics As BindingDiagnosticBag 2920diagnostics As BindingDiagnosticBag) As BoundLateInvocation 2958diagnostics As BindingDiagnosticBag 2978diagnostics As BindingDiagnosticBag 3008diagnostics As BindingDiagnosticBag 3093diagnostics As BindingDiagnosticBag, 3174Dim ignoreDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False)
Binding\Binder_Lambda.vb (13)
18diagnostics As BindingDiagnosticBag 86diagnostics As BindingDiagnosticBag 156Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, source.WithDependencies) 258diagnostics = BindingDiagnosticBag.Discarded 409diagnostics As BindingDiagnosticBag, 484block = bodyBinder.BindBlock(lambdaSyntax, singleLineLambdaSyntax.Statements, BindingDiagnosticBag.Discarded).MakeCompilerGenerated() 579Private ReadOnly _diagnostics As BindingDiagnosticBag 583Private Sub New(binder As Binder, diagnostics As BindingDiagnosticBag) 591diagnostics As BindingDiagnosticBag 651Public Sub ReportLambdaParameterInferredToBeObject(unboundParam As UnboundLambdaParameterSymbol, diagnostics As BindingDiagnosticBag) 770Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, source.WithDependencies) 791diagnostics As BindingDiagnosticBag 898Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, source.WithDependencies)
Binding\Binder_Latebound.vb (5)
23diagnostics As BindingDiagnosticBag) As BoundExpression 34diagnostics As BindingDiagnosticBag, 83diagnostics As BindingDiagnosticBag) As BoundExpression 127diagnostics As BindingDiagnosticBag, 233diagnostics As BindingDiagnosticBag)
Binding\Binder_ObjectInitializer.vb (22)
15diagnostics As BindingDiagnosticBag 31diagnostics = BindingDiagnosticBag.Discarded 33Dim argumentDiagnostics = BindingDiagnosticBag.Discarded 64Private Shared Sub DisallowNewOnTupleType(type As TypeSyntax, diagnostics As BindingDiagnosticBag) 75diagnostics As BindingDiagnosticBag, 166diagnostics As BindingDiagnosticBag) As BoundExpression 200diagnostics As BindingDiagnosticBag, 383diagnostics = BindingDiagnosticBag.Discarded 407diagnostics = BindingDiagnosticBag.Discarded 525diagnostics As BindingDiagnosticBag) 586diagnostics As BindingDiagnosticBag 622diagnostics As BindingDiagnosticBag 650diagnostics As BindingDiagnosticBag 708Dim memberBindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies) 830diagnostics As BindingDiagnosticBag 840Dim temporaryDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 871Dim ienumerableUseSiteDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 955diagnostics As BindingDiagnosticBag 1032diagnostics As BindingDiagnosticBag, 1040Protected Friend Overrides Function TryBindOmittedLeftForXmlMemberAccess(node As XmlMemberAccessExpressionSyntax, diagnostics As BindingDiagnosticBag, accessingBinder As Binder) As BoundExpression 1050diagnostics As BindingDiagnosticBag 1056Protected Overrides Function TryBindOmittedLeftForConditionalAccess(node As ConditionalAccessExpressionSyntax, accessingBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundExpression
Binding\Binder_Operators.vb (28)
18diagnostics As BindingDiagnosticBag 36diagnostics As BindingDiagnosticBag 43Dim conversionDiagnostics = If(needsFilterDiagnostics, BindingDiagnosticBag.GetInstance(diagnostics), diagnostics) 97diagnostics As BindingDiagnosticBag 152diagnostics As BindingDiagnosticBag 233diagnostics As BindingDiagnosticBag, 244diagnostics = BindingDiagnosticBag.Discarded 256diagnostics = BindingDiagnosticBag.Discarded 297diagnostics = BindingDiagnosticBag.Discarded 404diagnostics = BindingDiagnosticBag.Discarded 429diagnostics = BindingDiagnosticBag.Discarded 570Private Function ForceLiftToEmptyString(left As BoundExpression, stringType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression 591diagnostics As BindingDiagnosticBag 657diagnostics As BindingDiagnosticBag 696BindingDiagnosticBag.Discarded) ' Ignore any additional diagnostics. 716diagnostics = BindingDiagnosticBag.Discarded 726BindingDiagnosticBag.Discarded) ' Ignore any additional diagnostics. 741diagnostics = BindingDiagnosticBag.Discarded ' Ignore any additional diagnostics. 799diagnostics As BindingDiagnosticBag 814diagnostics As BindingDiagnosticBag 841diagnostics As BindingDiagnosticBag 965diagnostics As BindingDiagnosticBag 1009diagnostics As BindingDiagnosticBag 1134Private Function BindUnaryOperator(node As UnaryExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 1151diagnostics = BindingDiagnosticBag.Discarded 1161diagnostics = BindingDiagnosticBag.Discarded 1242diagnostics As BindingDiagnosticBag 1280diagnostics As BindingDiagnosticBag
Binding\Binder_Query.vb (94)
38Friend Overridable Function BindGroupAggregationExpression(group As GroupAggregationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 45Friend Overridable Function BindFunctionAggregationExpression([function] As FunctionAggregationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 58diagnostics As BindingDiagnosticBag 100diagnostics As BindingDiagnosticBag 168diagnostics As BindingDiagnosticBag 196diagnostics As BindingDiagnosticBag 303diagnostics As BindingDiagnosticBag 349Dim callDiagnostics As BindingDiagnosticBag = diagnostics 353callDiagnostics = BindingDiagnosticBag.Discarded 387diagnostics As BindingDiagnosticBag 544Dim callDiagnostics As BindingDiagnosticBag = diagnostics 548callDiagnostics = BindingDiagnosticBag.Discarded 583diagnostics As BindingDiagnosticBag 618diagnostics = BindingDiagnosticBag.Discarded 651diagnostics As BindingDiagnosticBag 690diagnostics = BindingDiagnosticBag.Discarded 762diagnostics As BindingDiagnosticBag, 767Dim callDiagnostics As BindingDiagnosticBag = diagnostics 825If callDiagnostics IsNot BindingDiagnosticBag.Discarded AndAlso ShouldSuppressDiagnostics(selectorLambda) Then 827callDiagnostics = BindingDiagnosticBag.Discarded 958diagnostics As BindingDiagnosticBag 972diagnostics As BindingDiagnosticBag 1011Dim callDiagnostics As BindingDiagnosticBag = diagnostics 1140If callDiagnostics IsNot BindingDiagnosticBag.Discarded AndAlso 1143callDiagnostics = BindingDiagnosticBag.Discarded 1283diagnostics As BindingDiagnosticBag 1378diagnostics As BindingDiagnosticBag 1522Dim callDiagnostics As BindingDiagnosticBag = diagnostics 1529callDiagnostics = BindingDiagnosticBag.Discarded 1610diagnostics As BindingDiagnosticBag 1705Dim callDiagnostics As BindingDiagnosticBag = diagnostics 1713callDiagnostics = BindingDiagnosticBag.Discarded 1754diagnostics As BindingDiagnosticBag 1812Dim callDiagnostics As BindingDiagnosticBag = diagnostics 1818callDiagnostics = BindingDiagnosticBag.Discarded 1854diagnostics As BindingDiagnosticBag 1901diagnostics As BindingDiagnosticBag 1949diagnostics As BindingDiagnosticBag 2025diagnostics As BindingDiagnosticBag 2101diagnostics As BindingDiagnosticBag, 2155Private Sub VerifyRangeVariableName(rangeVar As RangeVariableSymbol, identifier As SyntaxToken, diagnostics As BindingDiagnosticBag) 2243diagnostics As BindingDiagnosticBag 2261diagnostics As BindingDiagnosticBag 2290diagnostics As BindingDiagnosticBag 2307diagnostics As BindingDiagnosticBag 2329Dim conversionDiagnostic = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies) 2357diagnostics = BindingDiagnosticBag.Discarded 2379If diagnostics IsNot BindingDiagnosticBag.Discarded AndAlso ShouldSuppressDiagnostics(filterLambda) Then 2381diagnostics = BindingDiagnosticBag.Discarded 2410diagnostics As BindingDiagnosticBag 2446diagnostics As BindingDiagnosticBag 2462diagnostics As BindingDiagnosticBag 2474diagnostics As BindingDiagnosticBag 2489diagnostics = BindingDiagnosticBag.Discarded 2520diagnostics As BindingDiagnosticBag 2523Dim callDiagnostics As BindingDiagnosticBag = diagnostics 2576If callDiagnostics IsNot BindingDiagnosticBag.Discarded AndAlso ShouldSuppressDiagnostics(keyLambda) Then 2578callDiagnostics = BindingDiagnosticBag.Discarded 2689diagnostics As BindingDiagnosticBag 2736diagnostics As BindingDiagnosticBag 2814diagnostics As BindingDiagnosticBag 2934diagnostics As BindingDiagnosticBag 2985diagnostics As BindingDiagnosticBag 3117diagnostics As BindingDiagnosticBag 3177diagnostics As BindingDiagnosticBag, 3261diagnostics As BindingDiagnosticBag 3398diagnostics As BindingDiagnosticBag 3432innerKey = innerKeyBinder.BindRValue(joinCondition.Left, BindingDiagnosticBag.Discarded) 3446outerKey = outerKeyBinder.BindRValue(joinCondition.Right, BindingDiagnosticBag.Discarded) 3447innerKey = innerKeyBinder.BindRValue(joinCondition.Left, BindingDiagnosticBag.Discarded) 3500diagnostics = BindingDiagnosticBag.Discarded 3530diagnostics As BindingDiagnosticBag 3649Public Function DetermineTheSide(node As BoundExpression, diagnostics As BindingDiagnosticBag) As Result 3681Private ReadOnly _diagnostics As BindingDiagnosticBag 3688diagnostics As BindingDiagnosticBag 3701diagnostics As BindingDiagnosticBag 3755diagnostics As BindingDiagnosticBag 3774diagnostics As BindingDiagnosticBag 3906diagnostics As BindingDiagnosticBag 3959Dim callDiagnostics As BindingDiagnosticBag = diagnostics 3963callDiagnostics = BindingDiagnosticBag.Discarded 4012diagnostics As BindingDiagnosticBag 4111Friend Overrides Function BindGroupAggregationExpression(group As GroupAggregationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 4125diagnostics As BindingDiagnosticBag 4251diagnostics As BindingDiagnosticBag 4289diagnostics = BindingDiagnosticBag.Discarded 4321diagnostics As BindingDiagnosticBag, 4350Dim additionalDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 4417Private Function InferControlVariableType(source As BoundExpression, diagnostics As BindingDiagnosticBag) As TypeSymbol 4554diagnostics As BindingDiagnosticBag 4593diagnostics As BindingDiagnosticBag 4611diagnostics As BindingDiagnosticBag 4632diagnostics As BindingDiagnosticBag 4650diagnostics = BindingDiagnosticBag.Discarded
Binding\Binder_SelectCase.vb (18)
20Private Function BindSelectBlock(node As SelectBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 28diagnostics = BindingDiagnosticBag.Discarded 56Private Function BindSelectExpression(node As ExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 106diagnostics As BindingDiagnosticBag 127diagnostics As BindingDiagnosticBag 143diagnostics As BindingDiagnosticBag 169diagnostics As BindingDiagnosticBag 193diagnostics As BindingDiagnosticBag 240diagnostics As BindingDiagnosticBag 272diagnostics As BindingDiagnosticBag 320diagnostics As BindingDiagnosticBag 377diagnostics As BindingDiagnosticBag 454Private Function ComputeCaseClauseCondition(caseClause As BoundCaseClause, <Out()> ByRef conditionOpt As BoundExpression, selectExpression As BoundRValuePlaceholder, diagnostics As BindingDiagnosticBag) As BoundCaseClause 470Private Function ComputeRelationalCaseClauseCondition(boundClause As BoundRelationalCaseClause, <Out()> ByRef conditionOpt As BoundExpression, selectExpression As BoundRValuePlaceholder, diagnostics As BindingDiagnosticBag) As BoundCaseClause 488Private Function ComputeSimpleCaseClauseCondition(boundClause As BoundSimpleCaseClause, <Out()> ByRef conditionOpt As BoundExpression, selectExpression As BoundRValuePlaceholder, diagnostics As BindingDiagnosticBag) As BoundCaseClause 504Private Function ComputeRangeCaseClauseCondition(boundClause As BoundRangeCaseClause, <Out()> ByRef conditionOpt As BoundExpression, selectExpression As BoundRValuePlaceholder, diagnostics As BindingDiagnosticBag) As BoundCaseClause 553Private Function RecommendSwitchTable(selectExpr As BoundRValuePlaceholder, caseBlocks As ArrayBuilder(Of BoundCaseBlock), diagnostics As BindingDiagnosticBag) As Boolean 659Private Function ReportInvalidSelectCaseRange(caseBlocks As ArrayBuilder(Of BoundCaseBlock), diagnostics As BindingDiagnosticBag) As Boolean
Binding\Binder_Statements.vb (90)
22Public Overridable Function BindStatement(node As StatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 267Private Function BindStandAloneCaseStatement(caseStatement As CaseStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundBadStatement 291Private Function BindMethodBlock(methodBlock As MethodBlockBaseSyntax, diagnostics As BindingDiagnosticBag) As BoundBlock 458Private ReadOnly _diagnostics As BindingDiagnosticBag 471Private Sub New(binder As Binder, diagnostics As BindingDiagnosticBag) 479diagnostics As BindingDiagnosticBag, 637Private Shared Sub ReportNameConflictsBetweenStaticLocals(methodBlockBinder As Binder, diagnostics As BindingDiagnosticBag) 702Private Function BindRedimStatement(node As ReDimStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 795Private Function BindEraseStatement(node As EraseStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 828Private Function BindGoToStatement(node As GoToStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 851Private Function IsValidLabelForGoto(label As LabelSymbol, labelSyntax As LabelSyntax, diagnostics As BindingDiagnosticBag) As Boolean 926Private Function BindLabelStatement(node As LabelStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 956Private Sub DecodeLocalModifiersAndReportErrors(syntax As SyntaxTokenList, diagBag As BindingDiagnosticBag) 1013Private Function BindLocalDeclaration(node As LocalDeclarationStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 1026diagnostics As BindingDiagnosticBag 1116diagnostics As BindingDiagnosticBag, 1300diagnostics As BindingDiagnosticBag) As TypeSymbol 1412Dim localDiagnostics = If(inferFrom.HasErrors, BindingDiagnosticBag.Discarded, diagnostics) 1464diagnostics As BindingDiagnosticBag) As TypeSymbol 1546diagnostics As BindingDiagnosticBag) As TypeSymbol 1615diagnostics As BindingDiagnosticBag) As TypeSymbol 1746diagnostics As BindingDiagnosticBag) As BoundLocal 1765diagnostics As BindingDiagnosticBag) 1824diagnostics As BindingDiagnosticBag 1925Friend Function AdjustAssignmentTarget(node As SyntaxNode, op1 As BoundExpression, diagnostics As BindingDiagnosticBag, ByRef isError As Boolean) As BoundExpression 2005Private Function BindAssignment(node As SyntaxNode, op1 As BoundExpression, op2 As BoundExpression, diagnostics As BindingDiagnosticBag) As BoundAssignmentOperator 2029diagnostics As BindingDiagnosticBag 2055diagnostics = BindingDiagnosticBag.Discarded 2071Friend Function BindBlock(syntax As SyntaxNode, stmtList As SyntaxList(Of StatementSyntax), diagnostics As BindingDiagnosticBag) As BoundBlock 2079Friend Function BindBlock(syntax As SyntaxNode, stmtList As SyntaxList(Of StatementSyntax), diagnostics As BindingDiagnosticBag, stmtListBinder As Binder) As BoundBlock 2131Private Function BindAssignmentStatement(node As AssignmentStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundExpressionStatement 2197Private Function BindMidAssignmentStatement(node As AssignmentStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundExpressionStatement 2268Private Function BindAddRemoveHandlerStatement(node As AddRemoveHandlerStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundAddRemoveHandlerStatement 2393diagnostics As BindingDiagnosticBag, 2412Dim errorRecovery As BoundExpression = BindRValue(node, BindingDiagnosticBag.Discarded) 2459Private Function BindRaiseEventStatement(node As RaiseEventStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2608Private Function BindExpressionStatement(statement As ExpressionStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2632Private Sub WarnOnUnobservedCallThatReturnsAnAwaitable(statement As ExpressionStatementSyntax, boundExpression As BoundExpression, diagnostics As BindingDiagnosticBag) 2681Dim diagBag = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies) 2704Private Function BindPrintStatement(printStmt As PrintStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2709Private Function BindCallStatement(callStmt As CallStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2715Private Function BindInvocationExpressionAsStatement(expression As ExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 2719Friend Function ReclassifyInvocationExpressionAsStatement(boundInvocation As BoundExpression, diagnostics As BindingDiagnosticBag) As BoundExpression 2757Private Function BindSingleLineIfStatement(node As SingleLineIfStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2773Private Function BindMultiLineIfBlock(node As MultiLineIfBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2814Private Function BindDoLoop(node As DoLoopBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2849Private Function BindWhileBlock(node As WhileBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2867Public Function BindForToBlock(node As ForOrForEachBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2897Public Function BindForEachBlock(node As ForOrForEachBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 2942diagnostics As BindingDiagnosticBag) As Boolean 3042diagnostics As BindingDiagnosticBag) 3107diagnostics As BindingDiagnosticBag 3221If(lessThanOrEqual IsNot Nothing AndAlso lessThanOrEqual.HasErrors, BindingDiagnosticBag.Discarded, diagnostics), 3274diagnostics As BindingDiagnosticBag 3287diagnostics = BindingDiagnosticBag.Discarded 3325diagnostics As BindingDiagnosticBag) As Boolean 3359diagnostics As BindingDiagnosticBag 3515diagnostics = BindingDiagnosticBag.Discarded 3557Private Shared Function VerifyForControlVariableDeclaration(variableDeclarator As VariableDeclaratorSyntax, diagnostics As BindingDiagnosticBag) As Boolean 3591diagnostics As BindingDiagnosticBag 3627Private Function VerifyForLoopControlReference(controlVariable As BoundExpression, diagnostics As BindingDiagnosticBag) As Boolean 3663Public Shared Function SeenAwaitIn(node As BoundNode, diagnostics As BindingDiagnosticBag) As Boolean 3719diagnostics As BindingDiagnosticBag 3750Dim detailedDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies) 3770Dim ienumerableUseSiteDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 4066temporaryDiagnostics As BindingDiagnosticBag 4220diagnostics As BindingDiagnosticBag 4272diagnostics As BindingDiagnosticBag 4406Public Function BindWithBlock(node As WithBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 4411Protected Overridable Function CreateBoundWithBlock(node As WithBlockSyntax, boundBlockBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundStatement 4435Public Function BindUsingBlock(node As UsingBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 4561diagnostics As BindingDiagnosticBag 4597diagnostics As BindingDiagnosticBag 4606diagnostics = BindingDiagnosticBag.Discarded 4640Private Sub ReportMutableStructureConstraintsInUsing(type As TypeSymbol, symbolName As String, syntaxNode As SyntaxNode, diagnostics As BindingDiagnosticBag) 4724Public Function BindSyncLockBlock(node As SyncLockBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundSyncLockStatement 4743Public Function BindTryBlock(node As TryBlockSyntax, diagnostics As BindingDiagnosticBag) As BoundTryStatement 4765Public Function BindCatchBlocks(catchClauses As SyntaxList(Of CatchBlockSyntax), diagnostics As BindingDiagnosticBag) As ImmutableArray(Of BoundCatchBlock) 4782Private Function BindCatchBlock(node As CatchBlockSyntax, previousBlocks As ArrayBuilder(Of BoundCatchBlock), diagnostics As BindingDiagnosticBag) As BoundCatchBlock 4903Private Function BindExitStatement(node As ExitStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 4929Private Function BindContinueStatement(node As ContinueStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 4949Private Function BindBooleanExpression(node As ExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 4994Private Function BindReturn(originalSyntax As ReturnStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 5093diagnostics As BindingDiagnosticBag) As TypeSymbol 5135Private Function BindYield(originalSyntax As YieldStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 5171Private Function BindThrow(node As ThrowStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 5234Private Function BindError(node As ErrorStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 5243Private Function BindResumeStatement(node As ResumeStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundResumeStatement 5278Private Function BindOnErrorStatement(node As StatementSyntax, diagnostics As BindingDiagnosticBag) As BoundOnErrorStatement 5321Private Function BindEndStatement(endStatementSyntax As StopOrEndStatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement
Binding\Binder_Symbols.vb (27)
30diagBag As BindingDiagnosticBag, 49diagBag As BindingDiagnosticBag, 63Private Shared Sub ReportUseOfModuleOrVoidType(typeSyntax As TypeSyntax, type As TypeSymbol, diagBag As BindingDiagnosticBag) 79diagBag As BindingDiagnosticBag, 85diagBag As BindingDiagnosticBag, 105diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 186Friend Shared Function ReportUseSite(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, symbol As Symbol) As Boolean 225diagBag As BindingDiagnosticBag, 240diagBag As BindingDiagnosticBag, 318Private Shared Function NotFound(typeSyntax As TypeSyntax, diagName As String, binder As Binder, diagBag As BindingDiagnosticBag) As DiagnosticInfo 362Private Shared Sub CheckForForwardedType(containingAssembly As AssemblySymbol, ByRef typeSyntax As TypeSyntax, ByRef diagName As String, ByRef forwardedToAssembly As AssemblySymbol, diagBag As BindingDiagnosticBag) 411Private Shared Function GetForwardedToAssembly(containingAssembly As AssemblySymbol, fullName As String, arity As Integer, typeSyntax As TypeSyntax, diagBag As BindingDiagnosticBag) As AssemblySymbol 470diagBag As BindingDiagnosticBag, 479diagBag As BindingDiagnosticBag, 487diagBag As BindingDiagnosticBag, 553diagBag As BindingDiagnosticBag, 606diagnostics As BindingDiagnosticBag, 688diagBag As BindingDiagnosticBag, 753diagBag As BindingDiagnosticBag, 762diagBag As BindingDiagnosticBag, 812diagBag As BindingDiagnosticBag, 827diagBag As BindingDiagnosticBag, 839diagBag As BindingDiagnosticBag, 870diagBag As BindingDiagnosticBag, 931diagBag As BindingDiagnosticBag, 1020diagBag As BindingDiagnosticBag, 1118diagBag As BindingDiagnosticBag,
Binding\Binder_Utils.vb (25)
21diagBag As BindingDiagnosticBag, 261diagBag As BindingDiagnosticBag) As SourceParameterFlags 293diagBag As BindingDiagnosticBag) As NamedTypeSymbol 319Public Function GetNewCompoundUseSiteInfo(futureDestination As BindingDiagnosticBag) As CompoundUseSiteInfo(Of AssemblySymbol) 328diagnostics As BindingDiagnosticBag) As TypeSymbol 353diagnostics As BindingDiagnosticBag) As TypeSymbol 385diagnostics As BindingDiagnosticBag) As ArrayTypeSymbol 487diagBag As BindingDiagnosticBag, 577diagBag As BindingDiagnosticBag, 609diagBag As BindingDiagnosticBag, 630diagBag As BindingDiagnosticBag) As TypeSymbol 652diagBag As BindingDiagnosticBag) As TypeSymbol 668diagBag As BindingDiagnosticBag, 820diagBag As BindingDiagnosticBag 861diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 925Private Shared Function CheckOperatorParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags 951diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 988Private Shared Function CheckPropertyParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags 997Private Shared Function CheckReservedParameterName(reservedName As String, syntax As ParameterSyntax, errorId As ERRID, diagnostics As BindingDiagnosticBag) As Boolean 1014diagnostics As BindingDiagnosticBag) 1025Friend Delegate Function CheckParameterModifierDelegate(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags 1033diagBag As BindingDiagnosticBag) 1299Public Function GetExpressionConstantValueIfAny(boundExpression As BoundExpression, diagnostics As BindingDiagnosticBag, context As ConstantContext) As ConstantValue 1391Private Function CheckConversionForConstantExpression(conv As BoundExpression, operand As BoundExpression, diagnostics As BindingDiagnosticBag, context As ConstantContext) As ConstantValue 1467Dim conversionToUnderlying As BoundExpression = ApplyConversion(operand.Syntax, conversionType.GetNullableUnderlyingType(), operand, isExplicit:=True, diagnostics:=BindingDiagnosticBag.Discarded)
Binding\Binder_WithBlock.vb (8)
209Dim diagnostics = BindingDiagnosticBag.GetInstance() 305Protected Overrides Function CreateBoundWithBlock(node As WithBlockSyntax, boundBlockBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundStatement 348Public Overrides Function BindStatement(node As StatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement 360Private Sub PrepareBindingOfOmittedLeft(node As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag, accessingBinder As Binder) 383diagnostics As BindingDiagnosticBag, 394diagnostics As BindingDiagnosticBag) As BoundExpression 399Protected Overrides Function TryBindOmittedLeftForConditionalAccess(node As ConditionalAccessExpressionSyntax, accessingBinder As Binder, diagnostics As BindingDiagnosticBag) As BoundExpression 405diagnostics As BindingDiagnosticBag,
Binding\Binder_XmlLiterals.vb (45)
18diagnostics As BindingDiagnosticBag) As BoundExpression 32Private Function BindXmlDocument(syntax As XmlDocumentSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 56Private Function BindXmlDeclaration(syntax As XmlDeclarationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 68Private Function BindXmlDeclarationOption(syntax As XmlDeclarationSyntax, optionSyntax As XmlDeclarationOptionSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral 77Private Function BindXmlProcessingInstruction(syntax As XmlProcessingInstructionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 91diagnostics As BindingDiagnosticBag) As BoundExpression 98diagnostics As BindingDiagnosticBag) As BoundExpression 109diagnostics As BindingDiagnosticBag) As BoundExpression 149diagnostics As BindingDiagnosticBag) As BoundExpression 221diagnostics As BindingDiagnosticBag) As BoundXmlContainerRewriterInfo 351diagnostics As BindingDiagnosticBag) As BoundExpression 387diagnostics As BindingDiagnosticBag) As BoundXmlAttribute 399diagnostics As BindingDiagnosticBag) As BoundExpression 421diagnostics As BindingDiagnosticBag) As BoundXmlAttribute 445diagnostics As BindingDiagnosticBag) As BoundXmlAttribute 525TryGetXmlnsPrefix(name, prefix, BindingDiagnosticBag.Discarded) 540Private Function BindXmlEmbeddedExpression(syntax As XmlEmbeddedExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 553diagnostics As BindingDiagnosticBag) 601Private Sub BindXmlContent(content As SyntaxList(Of XmlNodeSyntax), childNodeBuilder As ArrayBuilder(Of BoundExpression), rootInfoOpt As XmlElementRootInfo, diagnostics As BindingDiagnosticBag) 607Private Function BindXmlContent(syntax As XmlNodeSyntax, rootInfoOpt As XmlElementRootInfo, diagnostics As BindingDiagnosticBag) As BoundExpression 635Private Function BindXmlAttributeAccess(syntax As XmlMemberAccessExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 680Private Function BindXmlElementAccess(syntax As XmlMemberAccessExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 684Private Function BindXmlDescendantAccess(syntax As XmlMemberAccessExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 688Private Function BindXmlElementAccess(syntax As XmlMemberAccessExpressionSyntax, memberName As String, typeDisallowsError As ERRID, diagnostics As BindingDiagnosticBag) As BoundExpression 740Private Function BindXmlMemberAccessReceiver(syntax As XmlMemberAccessExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 766diagnostics As BindingDiagnosticBag) As BoundExpression 782diagnostics As BindingDiagnosticBag) As BoundExpression 851Private Function BindXmlName(syntax As VisualBasicSyntaxNode, localName As BoundExpression, [namespace] As BoundExpression, diagnostics As BindingDiagnosticBag) As BoundExpression 862Private Function BindGetXmlNamespace(syntax As GetXmlNamespaceExpressionSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 887Private Function BindXmlNamespace(syntax As VisualBasicSyntaxNode, [namespace] As BoundExpression, diagnostics As BindingDiagnosticBag) As BoundExpression 898Private Function ReportXmlNamespacePrefixNotDefined(syntax As VisualBasicSyntaxNode, prefixToken As SyntaxToken, prefix As String, compilerGenerated As Boolean, diagnostics As BindingDiagnosticBag) As BoundBadExpression 910Private Function BindXmlCData(syntax As XmlCDataSectionSyntax, rootInfoOpt As XmlElementRootInfo, diagnostics As BindingDiagnosticBag) As BoundExpression 924Private Function BindXmlText(syntax As XmlTextSyntax, diagnostics As BindingDiagnosticBag) As BoundLiteral 955Private Function GetXmlMethodOrPropertyGroup(syntax As VisualBasicSyntaxNode, type As NamedTypeSymbol, memberName As String, receiverOpt As BoundExpression, diagnostics As BindingDiagnosticBag) As BoundMethodOrPropertyGroup 1017Private Function BindInvocationExpressionIfGroupNotNothing(syntax As SyntaxNode, groupOpt As BoundMethodOrPropertyGroup, arguments As ImmutableArray(Of BoundExpression), diagnostics As BindingDiagnosticBag) As BoundExpression 1036Private Function CheckXmlFeaturesAllowed(syntax As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag) As BindingDiagnosticBag 1044Return BindingDiagnosticBag.Discarded 1054diagnostics As BindingDiagnosticBag, 1079diagnostics As BindingDiagnosticBag) As Dictionary(Of String, String) 1144diagnostics As BindingDiagnosticBag) As Boolean 1174diagnostics As BindingDiagnosticBag) As Boolean 1242Private Shared Function RedefinesReservedXmlNamespace(syntax As VisualBasicSyntaxNode, prefix As String, reservedPrefix As String, [namespace] As String, reservedNamespace As String, diagnostics As BindingDiagnosticBag) As Boolean 1256Private Function TryGetXmlnsPrefix(syntax As XmlNameSyntax, <Out()> ByRef prefix As String, diagnostics As BindingDiagnosticBag) As Boolean 1350diagnostics As BindingDiagnosticBag) As BoundExpression
Binding\BindingDiagnosticBag.vb (15)
13Private Shared ReadOnly s_poolWithBoth As ObjectPool(Of BindingDiagnosticBag) = New ObjectPool(Of BindingDiagnosticBag)(Function() New BindingDiagnosticBag(s_poolWithBoth, New DiagnosticBag(), New HashSet(Of AssemblySymbol)())) 14Private Shared ReadOnly s_poolWithDiagnosticsOnly As ObjectPool(Of BindingDiagnosticBag) = New ObjectPool(Of BindingDiagnosticBag)(Function() New BindingDiagnosticBag(s_poolWithDiagnosticsOnly, New DiagnosticBag(), dependenciesBag:=Nothing)) 15Private Shared ReadOnly s_poolWithDependenciesOnly As ObjectPool(Of BindingDiagnosticBag) = New ObjectPool(Of BindingDiagnosticBag)(Function() New BindingDiagnosticBag(s_poolWithDependenciesOnly, diagnosticBag:=Nothing, New HashSet(Of AssemblySymbol)())) 16Private Shared ReadOnly s_poolWithConcurrent As ObjectPool(Of BindingDiagnosticBag) = New ObjectPool(Of BindingDiagnosticBag)(Function() New BindingDiagnosticBag(s_poolWithConcurrent, New DiagnosticBag(), New ConcurrentSet(Of AssemblySymbol)())) 20Private ReadOnly _pool As ObjectPool(Of BindingDiagnosticBag) 26Private Sub New(pool As ObjectPool(Of BindingDiagnosticBag), diagnosticBag As DiagnosticBag, dependenciesBag As ICollection(Of AssemblySymbol)) 31Friend Shared Function GetInstance() As BindingDiagnosticBag 35Friend Shared Function GetInstance(withDiagnostics As Boolean, withDependencies As Boolean) As BindingDiagnosticBag 50Friend Shared Function GetInstance(template As BindingDiagnosticBag) As BindingDiagnosticBag 57Friend Shared Function GetConcurrentInstance() As BindingDiagnosticBag
Binding\DocumentationCommentBinder.vb (2)
147Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 151Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol)
Binding\DocumentationCommentCrefBinder.vb (7)
69Friend Overrides Function BindInsideCrefAttributeValue(reference As CrefReferenceSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 198Friend Overrides Function BindInsideCrefAttributeValue(name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of Symbol) 219Private Function BindInsideCrefSignatureOrReturnType(crefReference As CrefReferenceSyntax, name As TypeSyntax, preserveAliases As Boolean, diagnosticBag As BindingDiagnosticBag) As ImmutableArray(Of Symbol) 222Dim result As Symbol = typeParameterAwareBinder.BindNamespaceOrTypeOrAliasSyntax(name, If(diagnosticBag, BindingDiagnosticBag.Discarded)) 223result = typeParameterAwareBinder.BindNamespaceOrTypeOrAliasSyntax(name, If(diagnosticBag, BindingDiagnosticBag.Discarded)) 452diagnosticBag As BindingDiagnosticBag) 458Dim diagnostic = If(diagnosticBag, BindingDiagnosticBag.Discarded)
Binding\DocumentationCommentCrefBinder_Compat.vb (4)
47BindTypeOrAliasSyntax(nameFromCref, BindingDiagnosticBag.Discarded), 48BindTypeSyntax(nameFromCref, BindingDiagnosticBag.Discarded)) 390symbols.Add(Me.GetSpecialType(type, node, BindingDiagnosticBag.Discarded)) 417result(i) = Me.BindTypeSyntax(args(i), BindingDiagnosticBag.Discarded)
Binding\EarlyWellKnownAttributeBinder.vb (2)
54Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 172Dim boundExpression = memberAccessBinder.BindExpression(invokedExpression, BindingDiagnosticBag.Discarded)
Binding\ImplicitVariableBinder.vb (4)
73Friend Overrides Function BindGroupAggregationExpression(group As GroupAggregationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 78Friend Overrides Function BindFunctionAggregationExpression([function] As FunctionAggregationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 88Public Overrides Sub DisallowFurtherImplicitVariableDeclaration(diagnostics As BindingDiagnosticBag) 150Public Overrides Function DeclareImplicitLocalVariable(nameSyntax As IdentifierNameSyntax, diagnostics As BindingDiagnosticBag) As LocalSymbol
Binding\InitializerSemanticModel.vb (2)
37Friend Overrides Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode 98Private Function BindInitializer(binder As Binder, initializer As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode
Binding\MemberSemanticModel.vb (4)
1229Me.RootBinder.DisallowFurtherImplicitVariableDeclaration(BindingDiagnosticBag.Discarded) 1885Dim boundNode = Me.Bind(binder, node, BindingDiagnosticBag.Discarded) 1939Dim boundRoot As BoundNode = Me.Bind(binder, bindingRoot, BindingDiagnosticBag.Discarded) 2059Public Overrides Function BindStatement(node As StatementSyntax, diagnostics As BindingDiagnosticBag) As BoundStatement
Binding\SpeculativeBinder.vb (2)
42Friend Overrides Function BindGroupAggregationExpression(group As GroupAggregationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression 47Friend Overrides Function BindFunctionAggregationExpression([function] As FunctionAggregationSyntax, diagnostics As BindingDiagnosticBag) As BoundExpression
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (5)
19Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 56Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 87Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 186Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 328Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Binding\SyntheticBoundTrees\SynthesizedConstructorSymbol.vb (1)
15Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Binding\SyntheticBoundTrees\SynthesizedStringSwitchHashMethod.vb (1)
53Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
BoundTree\BoundTreeVisitor.vb (1)
157Public Sub AddAnError(diagnostics As BindingDiagnosticBag)
Compilation\ClsComplianceChecker.vb (5)
31Private ReadOnly _diagnostics As BindingDiagnosticBag 40Private Sub New(compilation As VisualBasicCompilation, filterTree As SyntaxTree, filterSpanWithinTree As TextSpan?, diagnostics As BindingDiagnosticBag, cancellationToken As CancellationToken) 72Public Shared Sub CheckCompliance(compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag, cancellationToken As CancellationToken, Optional filterTree As SyntaxTree = Nothing, Optional filterSpanWithinTree As TextSpan? = Nothing) 73Dim queue = If(diagnostics.AccumulatesDependencies, BindingDiagnosticBag.GetConcurrentInstance(), BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False))
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (4)
34Private ReadOnly _diagnostics As BindingDiagnosticBag 49diagnostics As BindingDiagnosticBag, 159diagnostics As BindingDiagnosticBag, 624Dim diagnostics = BindingDiagnosticBag.GetInstance(_diagnostics)
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (4)
25Private ReadOnly _diagnostics As BindingDiagnosticBag 36processIncludes As Boolean, isForSingleSymbol As Boolean, diagnostics As BindingDiagnosticBag, 64diagnostics As BindingDiagnosticBag, 130True, BindingDiagnosticBag.Discarded, Nothing, Nothing, preferredCulture, cancellationToken)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (4)
36Private ReadOnly _diagnostics As BindingDiagnosticBag 42diagnostics As BindingDiagnosticBag) 112diagnostics As BindingDiagnosticBag) As String 152Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, _diagnostics.AccumulatesDependencies)
Compilation\MethodCompiler.vb (22)
29Private ReadOnly _diagnostics As BindingDiagnosticBag 90diagnostics As BindingDiagnosticBag, 162diagnostics As BindingDiagnosticBag, 220diagnostics As BindingDiagnosticBag, 298diagnostics As BindingDiagnosticBag, 813Dim f = New SyntheticBoundNodeFactory(matchingStub, matchingStub, If(method.Syntax, VisualBasic.VisualBasicSyntaxTree.Dummy.GetRoot()), compilationState, BindingDiagnosticBag.Discarded) 883Dim diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics) 935Dim diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics) 1033Dim diagnosticsThisMethod = BindingDiagnosticBag.GetInstance(_diagnostics) 1069Private Sub DetectAndReportCyclesInConstructorCalls(constructorCallMap As Dictionary(Of MethodSymbol, MethodSymbol), diagnostics As BindingDiagnosticBag) 1135diagnostics As BindingDiagnosticBag) 1252Dim diagsForCurrentMethod = BindingDiagnosticBag.GetInstance(_diagnostics) 1349diagnostics As BindingDiagnosticBag, 1454diagsForCurrentMethod As BindingDiagnosticBag, 1489Dim diagnostics As BindingDiagnosticBag = diagsForCurrentMethod 1494diagnostics = BindingDiagnosticBag.GetInstance(diagsForCurrentMethod) 1602diagnostics As BindingDiagnosticBag, 1785diagnostics As BindingDiagnosticBag, 1829diagnostics As BindingDiagnosticBag, 1906Private Shared Function FindConstructorToCallByDefault(constructor As MethodSymbol, diagnostics As BindingDiagnosticBag, Optional binderForAccessibilityCheckOpt As Binder = Nothing) As MethodSymbol 2077diagnostics As BindingDiagnosticBag, 2126Friend Shared Function BindDefaultConstructorInitializer(constructor As MethodSymbol, diagnostics As BindingDiagnosticBag) As BoundExpressionStatement
Compilation\SemanticModel.vb (6)
738bnode = binder.BindNamespaceOrTypeExpression(DirectCast(expression, TypeSyntax), BindingDiagnosticBag.Discarded) 741bnode = Me.Bind(binder, expression, BindingDiagnosticBag.Discarded) 796Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 835Dim bnode As BoundAttribute = binder.BindAttribute(attribute, BindingDiagnosticBag.Discarded) 1562Friend Overridable Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode 2364Dim bnode = binder.BindValue(expression, BindingDiagnosticBag.Discarded)
Compilation\SpeculativeSemanticModelWithMemberModel.vb (1)
289Friend Overrides Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (1)
75Friend Overrides Function Bind(binder As Binder, node As SyntaxNode, diagnostics As BindingDiagnosticBag) As BoundNode
Compilation\SyntaxTreeSemanticModel.vb (8)
274Dim bound As BoundExpression = binder.BindExpression(node, BindingDiagnosticBag.Discarded) 464resultSymbol = binder.BindTypeOrAliasSyntax(expression, BindingDiagnosticBag.Discarded) 466resultSymbol = binder.BindNamespaceOrTypeOrAliasSyntax(expression, BindingDiagnosticBag.Discarded) 722BindingDiagnosticBag.Discarded, 732BindingDiagnosticBag.Discarded, 742BindingDiagnosticBag.Discarded, 775BindingDiagnosticBag.Discarded, 1338Dim targetSymbol As NamespaceOrTypeSymbol = binder.BindNamespaceOrTypeSyntax(declarationSyntax.Name, BindingDiagnosticBag.Discarded)
Compilation\VisualBasicCompilation.vb (15)
1698Dim builder = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 1704Private Overloads Sub ReportUnusedImports(filterTree As SyntaxTree, diagnostics As BindingDiagnosticBag, cancellationToken As CancellationToken) 1760Private Sub AddImportsDependencies(diagnostics As BindingDiagnosticBag, infoTree As SyntaxTree, clauseSpan As TextSpan) 2133Dim builder = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 2145builder As BindingDiagnosticBag, 2204Dim methodBodyDiagnostics = If(builder.AccumulatesDependencies, BindingDiagnosticBag.GetConcurrentInstance(), BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False)) 2212Private Sub AddClsComplianceDiagnostics(diagnostics As BindingDiagnosticBag, cancellationToken As CancellationToken, Optional filterTree As SyntaxTree = Nothing, Optional filterSpanWithinTree As TextSpan? = Nothing) 2220Dim builder = BindingDiagnosticBag.GetInstance() 2250Dim builder = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 2270Dim methodBodyDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 2293Private Sub GetDiagnosticsForAllMethodBodies(hasDeclarationErrors As Boolean, diagnostics As BindingDiagnosticBag, doLowering As Boolean, cancellationToken As CancellationToken) 2300Private Sub GetDiagnosticsForMethodBodiesInTree(tree As SyntaxTree, filterSpanWithinTree As TextSpan?, hasDeclarationErrors As Boolean, diagnostics As BindingDiagnosticBag, cancellationToken As CancellationToken) 2501Dim methodBodyDiagnosticBag = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 2563Dim xmlDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False)
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
62Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (1)
73diagnostics As BindingDiagnosticBag)
Lowering\AsyncRewriter\AsyncRewriter.vb (3)
35diagnostics As BindingDiagnosticBag) 78diagnostics As BindingDiagnosticBag, 309Dim bag = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=Me.Diagnostics.AccumulatesDependencies)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (3)
43node As SyntaxNode, recursionDepth As Integer, diagnostics As BindingDiagnosticBag) 104diagnostics As BindingDiagnosticBag, 124Private ReadOnly Property Diagnostics As BindingDiagnosticBag
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (4)
31Private ReadOnly _diagnostics As BindingDiagnosticBag 39diagnostics As BindingDiagnosticBag, 109diagnostics As BindingDiagnosticBag, 515Private Shared Function GetCreatePayloadOverload(compilation As VisualBasicCompilation, overload As WellKnownMember, syntax As SyntaxNode, diagnostics As BindingDiagnosticBag) As MethodSymbol
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
35diagnostics As BindingDiagnosticBag)
Lowering\IteratorRewriter\IteratorRewriter.vb (3)
29diagnostics As BindingDiagnosticBag) 53diagnostics As BindingDiagnosticBag, 95Dim bag = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=Me.Diagnostics.AccumulatesDependencies)
Lowering\LambdaRewriter\LambdaFrame.vb (4)
183Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 191Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 195Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 203Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (3)
25Private ReadOnly _diagnostics As BindingDiagnosticBag 127Private Sub New(method As MethodSymbol, symbolsCapturedWithoutCopyCtor As ISet(Of Symbol), diagnostics As BindingDiagnosticBag) 138Public Shared Function AnalyzeMethodBody(node As BoundBlock, method As MethodSymbol, symbolsCapturedWithoutCtor As ISet(Of Symbol), diagnostics As BindingDiagnosticBag) As Analysis
Lowering\LambdaRewriter\LambdaRewriter.vb (4)
123diagnostics As BindingDiagnosticBag) 170diagnostics As BindingDiagnosticBag, 312Private Function GetStaticFrame(lambda As BoundNode, diagnostics As BindingDiagnosticBag) As LambdaFrame 425Private Function MakeFrameCtor(frame As LambdaFrame, diagnostics As BindingDiagnosticBag) As BoundBlock
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (1)
55diagnostics As BindingDiagnosticBag)
Lowering\LocalRewriter\LocalRewriter.vb (12)
22Private ReadOnly _diagnostics As BindingDiagnosticBag 123diagnostics As BindingDiagnosticBag, 155diagnostics As BindingDiagnosticBag, 212diagnostics As BindingDiagnosticBag, 241diagnostics As BindingDiagnosticBag, 594Friend Shared Function ReportMissingOrBadRuntimeHelper(node As BoundNode, specialMember As SpecialMember, memberSymbol As Symbol, diagnostics As BindingDiagnosticBag, Optional embedVBCoreRuntime As Boolean = False) As Boolean 603Private Shared Sub ReportMissingRuntimeHelper(node As BoundNode, specialMember As SpecialMember, diagnostics As BindingDiagnosticBag, Optional embedVBCoreRuntime As Boolean = False) 625Friend Shared Function ReportMissingOrBadRuntimeHelper(node As BoundNode, wellKnownMember As WellKnownMember, memberSymbol As Symbol, diagnostics As BindingDiagnosticBag, embedVBCoreRuntime As Boolean) As Boolean 634Private Shared Sub ReportMissingRuntimeHelper(node As BoundNode, wellKnownMember As WellKnownMember, diagnostics As BindingDiagnosticBag, embedVBCoreRuntime As Boolean) 644Private Shared Sub ReportMissingRuntimeHelper(node As BoundNode, typeName As String, memberName As String, diagnostics As BindingDiagnosticBag, embedVBCoreRuntime As Boolean) 654Private Shared Sub ReportDiagnostic(node As BoundNode, diagnostic As DiagnosticInfo, diagnostics As BindingDiagnosticBag) 658Private Shared Function ReportUseSite(node As BoundNode, useSiteInfo As UseSiteInfo(Of AssemblySymbol), diagnostics As BindingDiagnosticBag) As Boolean
Lowering\LocalRewriter\LocalRewriter_AsNewLocalDeclarations.vb (1)
60initializerToRewrite = node.Binder.BindVariableDeclaration(varDecl, varDecl.Names(declarationIndex), asNew, Nothing, BindingDiagnosticBag.Discarded, skipAsNewInitializer:=False).InitializerOpt
Lowering\LocalRewriter\LocalRewriter_Constant.vb (2)
31Private Shared Function RewriteDecimalConstant(node As BoundExpression, nodeValue As ConstantValue, currentMethod As MethodSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression 138Private Shared Function RewriteDateConstant(node As BoundExpression, nodeValue As ConstantValue, currentMethod As MethodSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (2)
81initialValueToRewrite = node.BinderOpt.BindFieldInitializerExpression(syntax, DirectCast(symbol, FieldSymbol), BindingDiagnosticBag.Discarded) 84initialValueToRewrite = node.BinderOpt.BindPropertyInitializerExpression(syntax, DirectCast(symbol, PropertySymbol), BindingDiagnosticBag.Discarded)
Lowering\LocalRewriter\LocalRewriter_LateAddressOf.vb (1)
32diagnostics As BindingDiagnosticBag
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
62Protected ReadOnly Diagnostics As BindingDiagnosticBag 73Protected Sub New(slotAllocatorOpt As VariableSlotAllocator, compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, preserveOriginalLocals As Boolean)
Lowering\Rewriter.vb (3)
26diagnostics As BindingDiagnosticBag, 46Dim localDiagnostics = BindingDiagnosticBag.GetInstance(diagnostics) 130diagnostics As BindingDiagnosticBag,
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (1)
83diagnostics As BindingDiagnosticBag)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (7)
26Protected ReadOnly Diagnostics As BindingDiagnosticBag 45diagnostics As BindingDiagnosticBag) 378Friend Function EnsureSpecialType(type As SpecialType, bag As BindingDiagnosticBag) As Symbol 382Friend Function EnsureWellKnownType(type As WellKnownType, bag As BindingDiagnosticBag) As Symbol 386Friend Function EnsureSpecialMember(member As SpecialMember, bag As BindingDiagnosticBag) As Symbol 390Friend Function EnsureWellKnownMember(member As WellKnownMember, bag As BindingDiagnosticBag) As Symbol 397Friend Sub EnsureSpecialPropertyGetter(member As SpecialMember, bag As BindingDiagnosticBag)
Lowering\StateMachineRewriter\SynthesizedContainer.vb (4)
202Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 206Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 210Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 214Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Lowering\SyntheticBoundNodeFactory.vb (3)
34Public ReadOnly Diagnostics As BindingDiagnosticBag 67Public Sub New(topLevelMethod As MethodSymbol, currentMethod As MethodSymbol, node As SyntaxNode, compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag) 71Public Sub New(topLevelMethod As MethodSymbol, currentMethod As MethodSymbol, currentClass As NamedTypeSymbol, node As SyntaxNode, compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag)
Parser\Parser.vb (1)
6150Friend Shared Function CheckFeatureAvailability(diagnostics As BindingDiagnosticBag, location As Location, languageVersion As LanguageVersion, feature As Feature) As Boolean
Semantics\AccessCheck.vb (3)
1034diagBag As BindingDiagnosticBag 1110diagBag As BindingDiagnosticBag 1156diagBag As BindingDiagnosticBag,
Semantics\Operators.vb (1)
303diagnosticsOpt As BindingDiagnosticBag,
Semantics\OverloadResolution.vb (5)
2874Dim defaultValueDiagnostics As BindingDiagnosticBag = Nothing 3070defaultValueDiagnostics = BindingDiagnosticBag.GetInstance() 3399Dim passedExpression As BoundExpression = binder.PassArgumentByVal(argument, conv, targetType, BindingDiagnosticBag.Discarded) 3403visitor.VisitExpression(passedExpression, BindingDiagnosticBag.Discarded) 4878Dim inferenceDiagnosticsBag = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, useSiteInfo.AccumulatesDependencies)
Semantics\TypeInference\TypeArgumentInference.vb (5)
34diagnostic As BindingDiagnosticBag, 603Public ReadOnly Diagnostic As BindingDiagnosticBag 622diagnostic As BindingDiagnosticBag, 712diagnostic As BindingDiagnosticBag, 1940diagnostics:=BindingDiagnosticBag.Discarded)
Semantics\TypeInference\TypeInferenceCollection.vb (1)
334Dim dominantTypeDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=False, withDependencies:=True)
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (4)
19Public Function ReportMissingOrErroneousSymbols(diagnostics As BindingDiagnosticBag, hasClass As Boolean, hasDelegate As Boolean, hasKeys As Boolean) As Boolean 64Private Shared Sub ReportErrorOnSymbol(symbol As Symbol, diagnostics As BindingDiagnosticBag, ByRef hasError As Boolean) 73Private Shared Sub ReportErrorOnSpecialMember(symbol As Symbol, member As SpecialMember, diagnostics As BindingDiagnosticBag, ByRef hasError As Boolean, embedVBCore As Boolean) 88Private Function CheckAndReportMissingSymbols(anonymousTypes As ArrayBuilder(Of AnonymousTypeOrDelegateTemplateSymbol), diagnostics As BindingDiagnosticBag) As Boolean
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (1)
174Public Sub AssignTemplatesNamesAndCompile(compiler As MethodCompiler, moduleBeingBuilt As Emit.PEModuleBuilder, diagnostics As BindingDiagnosticBag)
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (2)
154Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 158Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (2)
178Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 182Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (2)
119Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 123Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (2)
145Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 149Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (2)
126Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 130Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (2)
218Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 222Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\Attributes\AttributeData.vb (7)
190Dim action As DeclarativeSecurityAction = Me.DecodeSecurityAttributeAction(targetSymbol, compilation, arguments.AttributeSyntaxOpt, hasErrors, DirectCast(arguments.Diagnostics, BindingDiagnosticBag)) 210diagnostics As BindingDiagnosticBag 281diagnostics As BindingDiagnosticBag, 399DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_PermissionSetAttributeInvalidFile, argSyntaxLocation, If(fileName, "<empty>"), filePropName) 434Friend Sub DecodeClassInterfaceAttribute(nodeOpt As AttributeSyntax, diagnostics As BindingDiagnosticBag) 453Friend Sub DecodeInterfaceTypeAttribute(node As AttributeSyntax, diagnostics As BindingDiagnosticBag) 490Friend Function DecodeGuidAttribute(nodeOpt As AttributeSyntax, diagnostics As BindingDiagnosticBag) As String
Symbols\ConstantValueUtils.vb (2)
25Public Function EvaluateFieldConstant(field As SourceFieldSymbol, equalsValueOrAsNewNodeRef As SyntaxReference, dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant 56diagnostics As BindingDiagnosticBag,
Symbols\ConstraintsHelper.vb (4)
388diagnostics As BindingDiagnosticBag, 450diagnostics As BindingDiagnosticBag, 499diagnostics As BindingDiagnosticBag, 549diagnostics As BindingDiagnosticBag,
Symbols\ErrorTypeSymbol.vb (4)
44Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 48Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 52Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 56Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
252Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 270Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 305Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 314Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\MethodSymbol.vb (1)
826Friend Overridable Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out()> Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\NamedTypeSymbol.vb (10)
729Friend MustOverride Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 738Friend MustOverride Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 749Dim diagnostics = BindingDiagnosticBag.GetInstance() 763diagBag As BindingDiagnosticBag, 779diagBag As BindingDiagnosticBag) 801Dim diagnostics = BindingDiagnosticBag.GetInstance() 847Friend MustOverride Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 855Friend MustOverride Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 873Dim diagnostics = BindingDiagnosticBag.GetInstance 890Dim diagnostics = BindingDiagnosticBag.GetInstance
Symbols\ReducedExtensionMethodSymbol.vb (2)
91BindingDiagnosticBag.GetInstance(withDiagnostics:=False, withDependencies:=True), 92BindingDiagnosticBag.Discarded)
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (4)
359Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 371Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 381Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 400Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\Source\CustomEventAccessorSymbol.vb (4)
64Protected Overrides Function GetParameters(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 153diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 254Private Shared Function CheckEventMethodParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags 271Private Shared Function CheckAddRemoveParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags
Symbols\Source\ImplementsHelper.vb (5)
80Dim implementedMethod As TSymbol = FindExplicitlyImplementedMember(implementingSym, container, implementedMethodSyntax, binder, BindingDiagnosticBag.Discarded, Nothing, dummyResultKind) 95diagBag As BindingDiagnosticBag) As ImmutableArray(Of TSymbol) 170diagBag As BindingDiagnosticBag, 458diagBag As BindingDiagnosticBag, 542diagBag As BindingDiagnosticBag)
Symbols\Source\ImplicitNamedTypeSymbol.vb (5)
42Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 46Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 50Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 61Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 174Protected Overrides Sub AddDeclaredNonTypeMembers(membersBuilder As MembersAndInitializersBuilder, diagnostics As BindingDiagnosticBag)
Symbols\Source\LocalSymbol.vb (4)
711BindingDiagnosticBag.Discarded) 778BindingDiagnosticBag.Discarded) 857BindingDiagnosticBag.Discarded) 867Dim diagBag = BindingDiagnosticBag.GetInstance()
Symbols\Source\OverrideHidingHelper.vb (10)
23Public Shared Sub CheckHidingAndOverridingForType(container As SourceMemberContainerTypeSymbol, diagnostics As BindingDiagnosticBag) 145Private Shared Sub CheckMembersAgainstBaseType(container As SourceMemberContainerTypeSymbol, diagnostics As BindingDiagnosticBag) 181Private Shared Sub CheckAllAbstractsAreOverriddenAndNotHidden(container As NamedTypeSymbol, diagnostics As BindingDiagnosticBag) 321diagnostics As BindingDiagnosticBag) 348diagnostics As BindingDiagnosticBag, 385diagnostics As BindingDiagnosticBag) 468diagnostics As BindingDiagnosticBag) 834diagnostics As BindingDiagnosticBag) 977diagnostics As BindingDiagnosticBag) 1002diagnostics As BindingDiagnosticBag)
Symbols\Source\SourceAssemblySymbol.vb (13)
239Private Function ValidateAttributeUsageForNetModuleAttribute(attribute As VisualBasicAttributeData, netModuleName As String, diagnostics As BindingDiagnosticBag, ByRef uniqueAttributes As HashSet(Of VisualBasicAttributeData)) As Boolean 317diagnostics As BindingDiagnosticBag, 381Dim diagnostics = BindingDiagnosticBag.GetInstance() 879Private Sub CheckOptimisticIVTAccessGrants(bag As BindingDiagnosticBag) 957Private Function ProcessOneInternalsVisibleToAttribute(nodeOpt As AttributeSyntax, attrData As VisualBasicAttributeData, diagnostics As BindingDiagnosticBag) As Boolean 1019Dim diagnostics = DirectCast(arguments.Diagnostics, BindingDiagnosticBag) 1171Private Sub ValidateIntegralAttributeNonNegativeArguments(attrData As VisualBasicAttributeData, nodeOpt As AttributeSyntax, diagnostics As BindingDiagnosticBag) 1190Friend Sub GetAllDeclarationErrors(diagnostics As BindingDiagnosticBag, Optional cancellationToken As CancellationToken = Nothing) 1204Dim diagnostics = BindingDiagnosticBag.GetInstance() 1289Private Sub DetectAttributeAndOptionConflicts(diagnostics As BindingDiagnosticBag) 1352Private Sub ReportDiagnosticsForAddedModules(diagnostics As BindingDiagnosticBag) 1427Protected Sub ValidateIVTPublicKeys(diagnostics As BindingDiagnosticBag) 1464Private Shared Sub ReportDiagnosticsForSynthesizedAttributes(compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag)
Symbols\Source\SourceComplexParameterSymbol.vb (3)
135Dim diagnostics = BindingDiagnosticBag.GetInstance() 146Private Function BindDefaultValue(inProgress As SymbolsInProgress(Of ParameterSymbol), diagnostics As BindingDiagnosticBag) As ConstantValue 330diagnostics As BindingDiagnosticBag) As ParameterSymbol
Symbols\Source\SourceDelegateMethodSymbol.vb (3)
73diagnostics As BindingDiagnosticBag) 108Private Shared Function BindReturnType(syntax As VisualBasicSyntaxNode, binder As Binder, diagnostics As BindingDiagnosticBag) As TypeSymbol 252diagnostics As BindingDiagnosticBag)
Symbols\Source\SourceEnumConstantSymbol.vb (11)
18Public Shared Function CreateExplicitValuedConstant(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, diagnostics As BindingDiagnosticBag) As SourceEnumConstantSymbol 24Public Shared Function CreateImplicitValuedConstant(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, otherConstant As SourceEnumConstantSymbol, otherConstantOffset As Integer, diagnostics As BindingDiagnosticBag) As SourceEnumConstantSymbol 34Protected Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, diagnostics As BindingDiagnosticBag) 77Protected NotOverridable Overrides Sub SetLazyConstantTuple(constantTuple As EvaluatedConstant, diagnostics As BindingDiagnosticBag) 88Protected MustOverride Overrides Function MakeConstantTuple(dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant 99Public Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, diagnostics As BindingDiagnosticBag) 103Protected Overrides Function MakeConstantTuple(dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant 114Public Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, initializer As EqualsValueSyntax, diagnostics As BindingDiagnosticBag) 119Protected Overrides Function MakeConstantTuple(dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant 130Public Sub New(containingEnum As SourceNamedTypeSymbol, bodyBinder As Binder, syntax As EnumMemberDeclarationSyntax, otherConstant As SourceEnumConstantSymbol, otherConstantOffset As UInteger, diagnostics As BindingDiagnosticBag) 138Protected Overrides Function MakeConstantTuple(dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant
Symbols\Source\SourceEventSymbol.vb (10)
153Private Function ComputeType(diagnostics As BindingDiagnosticBag, <Out()> ByRef isTypeInferred As Boolean, <Out()> ByRef isDelegateFromImplements As Boolean) As TypeSymbol 251Private Function ComputeImplementedEvents(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of EventSymbol) 290Dim diagnostics As BindingDiagnosticBag = Nothing 295diagnostics = BindingDiagnosticBag.GetInstance() 322Dim diagnostics = BindingDiagnosticBag.GetInstance() 464Dim diagnostics = BindingDiagnosticBag.GetInstance() 515Dim diagnostics = BindingDiagnosticBag.GetInstance() 658DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) 668DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_InvalidNonSerializedUsage, arguments.AttributeSyntaxOpt.GetLocation()) 755Dim diagnostics = BindingDiagnosticBag.GetInstance()
Symbols\Source\SourceFieldSymbol.vb (8)
201''' <see cref="SetLazyConstantTuple(EvaluatedConstant, BindingDiagnosticBag)"/>, 202''' <see cref="MakeConstantTuple(ConstantFieldsInProgress.Dependencies, BindingDiagnosticBag)"/>. 240Dim diagnostics = BindingDiagnosticBag.GetInstance() 369Dim diagnostics = BindingDiagnosticBag.GetInstance() 584Protected Overridable Sub SetLazyConstantTuple(constantTuple As EvaluatedConstant, diagnostics As BindingDiagnosticBag) 591Protected Overridable Function MakeConstantTuple(dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant 734Dim diagnostics = DirectCast(arguments.Diagnostics, BindingDiagnosticBag) 778Dim diagnostics = DirectCast(arguments.Diagnostics, BindingDiagnosticBag)
Symbols\Source\SourceFile.vb (6)
141Dim diagBag = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 153Dim diagBag = BindingDiagnosticBag.GetInstance() 329diagnostics As BindingDiagnosticBag) 332Dim clauseDiagnostics = BindingDiagnosticBag.GetInstance() 353clauseDiagnostics As BindingDiagnosticBag, 358diagnostics As BindingDiagnosticBag
Symbols\Source\SourceMemberContainerTypeSymbol.vb (43)
333Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False) 365Private Sub ReportNestingIntoVariantInterface(diagnostics As BindingDiagnosticBag) 399diagnostics As BindingDiagnosticBag, 510diagnostics As BindingDiagnosticBag, 539diagnostics As BindingDiagnosticBag, 955diagnostics As BindingDiagnosticBag, 994diagnostics As BindingDiagnosticBag, 1030diagnostics As BindingDiagnosticBag, 1063diagnostics As BindingDiagnosticBag, 1103diagnostics As BindingDiagnosticBag, 1663Dim diagBag = BindingDiagnosticBag.GetInstance() 1697Private Function BuildMembersAndInitializers(diagBag As BindingDiagnosticBag) As MembersAndInitializers 1743Private Function FindPartialMethodDeclarations(diagnostics As BindingDiagnosticBag, members As Dictionary(Of String, ImmutableArray(Of Symbol))) As HashSet(Of SourceMemberMethodSymbol) 1765Private Sub ProcessPartialMethodsIfAny(members As Dictionary(Of String, ImmutableArray(Of Symbol)), diagnostics As BindingDiagnosticBag) 1897diagnostics As BindingDiagnosticBag) 1991Dim diagnostics = BindingDiagnosticBag.GetInstance() 2097Private Function CheckStructureCircularity(diagnostics As BindingDiagnosticBag) As Boolean 2268Private Function DetermineDefaultPropertyName(membersByName As Dictionary(Of String, ImmutableArray(Of Symbol)), diagBag As BindingDiagnosticBag) As String 2319Private Sub CheckDefaultPropertyAgainstAllBases(namedType As NamedTypeSymbol, defaultPropertyName As String, location As Location, diagBag As BindingDiagnosticBag) 2331Private Sub CheckDefaultPropertyAgainstBase(defaultPropertyName As String, baseType As NamedTypeSymbol, location As Location, diagBag As BindingDiagnosticBag) 2390Private Sub CheckForOverloadOverridesShadowsClashesInSameType(membersAndInitializers As MembersAndInitializers, diagBag As BindingDiagnosticBag) 2492Private Function BuildNonTypeMembers(diagnostics As BindingDiagnosticBag) As MembersAndInitializers 2528Protected MustOverride Sub AddDeclaredNonTypeMembers(membersBuilder As MembersAndInitializersBuilder, diagnostics As BindingDiagnosticBag) 2530Protected Overridable Sub AddGroupClassMembersIfNeeded(membersBuilder As MembersAndInitializersBuilder, diagnostics As BindingDiagnosticBag) 2536diagBag As BindingDiagnosticBag, 2722diagnostics As BindingDiagnosticBag) 2769Private Sub EnsureCtor(members As MembersAndInitializersBuilder, isShared As Boolean, isDebuggable As Boolean, diagBag As BindingDiagnosticBag) 2802Private Sub AddWithEventsHookupConstructorsIfNeeded(members As MembersAndInitializersBuilder, diagBag As BindingDiagnosticBag) 2928diagBag As BindingDiagnosticBag) 2993diagBag As BindingDiagnosticBag) As Boolean 3008diagBag As BindingDiagnosticBag, 3027diagBag As BindingDiagnosticBag, 3193Friend Function CreateSharedConstructorsForConstFieldsIfRequired(binder As Binder, diagnostics As BindingDiagnosticBag) As MethodSymbol 3380Private Function MakeExplicitInterfaceImplementationMap(diagnostics As BindingDiagnosticBag) As MultiDictionary(Of Symbol, Symbol) 3475Dim diagnostics = BindingDiagnosticBag.GetInstance() 3495Private Sub CheckForOverloadsErrors(diagnostics As BindingDiagnosticBag) 3606diagnostics As BindingDiagnosticBag 3734diagnostics As BindingDiagnosticBag 3777Private Sub CheckInterfaceUnificationAndVariance(diagnostics As BindingDiagnosticBag) 3840Private Sub ReportOverloadsErrors(comparisonResults As SymbolComparisonResults, firstMember As Symbol, secondMember As Symbol, location As Location, diagnostics As BindingDiagnosticBag) 3894Private Sub ReportInterfaceUnificationError(diagnostics As BindingDiagnosticBag, interface1 As NamedTypeSymbol, interface2 As NamedTypeSymbol) 3940Private Sub ReportVarianceAmbiguityWarning(diagnostics As BindingDiagnosticBag, interface1 As NamedTypeSymbol, interface2 As NamedTypeSymbol) 3975Private Sub ReportDuplicateInterfaceWithDifferentTupleNames(diagnostics As BindingDiagnosticBag, interface1 As NamedTypeSymbol, interface2 As NamedTypeSymbol)
Symbols\Source\SourceMemberFieldSymbol.vb (10)
37Dim diagnostics = BindingDiagnosticBag.GetInstance() 79Dim diagnostics = BindingDiagnosticBag.GetInstance() 90Private Function ComputeType(diagBag As BindingDiagnosticBag) As TypeSymbol 100Private Function GetDeclaredType(diagBag As BindingDiagnosticBag) As TypeSymbol 157diagnostics As BindingDiagnosticBag, 169asClauseType = binder.BindTypeSyntax(asClauseOpt.Type, If(ignoreTypeSyntaxDiagnostics, BindingDiagnosticBag.Discarded, diagnostics)) 213diagnostics As BindingDiagnosticBag) As TypeSymbol 341Protected Overrides Function MakeConstantTuple(dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant 345Protected Overrides Sub SetLazyConstantTuple(constantTuple As EvaluatedConstant, diagnostics As BindingDiagnosticBag) 410diagBag As BindingDiagnosticBag)
Symbols\Source\SourceMemberMethodSymbol.vb (11)
210Dim diagnostics As BindingDiagnosticBag = BindingDiagnosticBag.GetInstance() 287Dim diagBag = BindingDiagnosticBag.GetInstance 305diagBag As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterSymbol) 354Dim diagnostics = BindingDiagnosticBag.GetInstance() 387Private Function GetExplicitInterfaceImplementations(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of MethodSymbol) 415Friend Sub ValidateImplementedMethodConstraints(diagnostics As BindingDiagnosticBag) 540Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 557Dim diagnostics = BindingDiagnosticBag.GetInstance() 571Private Function GetHandles(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of HandledEvent) 595diagBag As BindingDiagnosticBag,
Symbols\Source\SourceMethodSymbol.vb (11)
892diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 1176Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 1574DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) 1577DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_UnmanagedCallersOnlyNotSupported, arguments.AttributeSyntaxOpt.Location) 1595Dim diagnostics = DirectCast(arguments.Diagnostics, BindingDiagnosticBag) 1754DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ObsoleteInvalidOnEventMember, Me.Locations(0), description.FullName) 1773Private Function IsDllImportAttributeAllowed(syntax As AttributeSyntax, diagnostics As BindingDiagnosticBag) As Boolean 1828diagnostics As BindingDiagnosticBag, 2084Dim diagBag = BindingDiagnosticBag.GetInstance() 2204diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 2249diagBag As BindingDiagnosticBag) As TypeSymbol
Symbols\Source\SourceModuleSymbol.vb (16)
361Dim diagnosticBag = BindingDiagnosticBag.GetInstance() 369Dim diagBag = BindingDiagnosticBag.GetInstance() 378Dim diagBagForThisImport = BindingDiagnosticBag.GetInstance() 495diagnostics As BindingDiagnosticBag) 529Private Sub ValidateImport(type As TypeSymbol, info As GlobalImportInfo, diagnostics As BindingDiagnosticBag) 653Friend Sub GetAllDeclarationErrors(diagnostics As BindingDiagnosticBag, cancellationToken As CancellationToken, ByRef hasExtensionMethods As Boolean) 823diagBag As BindingDiagnosticBag, 848Private Shared Function IsEmptyIgnoringLazyDiagnostics(diagBag As BindingDiagnosticBag) As Boolean 859diagBag As BindingDiagnosticBag) 885diagBag As BindingDiagnosticBag) As Boolean 934diagBag As BindingDiagnosticBag) As Boolean 961diagBag As BindingDiagnosticBag) 1007Friend Sub AddDeclarationDiagnostics(diagBag As BindingDiagnosticBag) 1019Private Sub StoreDeclarationDiagnostics(diagBag As BindingDiagnosticBag) 1080DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) 1086DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass)
Symbols\Source\SourceNamedTypeSymbol.vb (29)
164Protected Overrides Sub AddDeclaredNonTypeMembers(membersBuilder As SourceMemberContainerTypeSymbol.MembersAndInitializersBuilder, diagnostics As BindingDiagnosticBag) 227diagBag As BindingDiagnosticBag, 471diagBag As BindingDiagnosticBag, 636diagBag As BindingDiagnosticBag) 695diagnostics As BindingDiagnosticBag, 789diagnostics As BindingDiagnosticBag) 820diagBag As BindingDiagnosticBag) 952diagBag As BindingDiagnosticBag) 999diagBag As BindingDiagnosticBag) 1028diagBag As BindingDiagnosticBag) 1059diagBag As BindingDiagnosticBag) 1074diagBag As BindingDiagnosticBag) As NamedTypeSymbol 1153diagBag As BindingDiagnosticBag) 1210diagBag As BindingDiagnosticBag) 1265Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 1287Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1339Dim bt = binder.BindTypeSyntax(typeSyntax, BindingDiagnosticBag.Discarded, suppressUseSiteError:=True) 1352Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 1421Private Sub ReportUseSiteInfoForBaseType(baseType As NamedTypeSymbol, declaredBase As NamedTypeSymbol, diagnostics As BindingDiagnosticBag) 1456Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1620Dim diagnostics As BindingDiagnosticBag = Nothing 1627diagnostics = BindingDiagnosticBag.GetInstance() 1674Dim diagnostics As BindingDiagnosticBag = Nothing 1681diagnostics = BindingDiagnosticBag.GetInstance() 1760Dim tempDiags = BindingDiagnosticBag.GetInstance 1784diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 2174Dim diagnostics = DirectCast(arguments.Diagnostics, BindingDiagnosticBag) 2379diagnostics As BindingDiagnosticBag, 2393Private Sub ValidateStandardModuleAttribute(diagnostics As BindingDiagnosticBag)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (9)
121Dim diagnostics = BindingDiagnosticBag.GetInstance() 285Private Shared Function ValidateComClassGuid(comClass As SourceNamedTypeSymbol, id As String, diagnostics As BindingDiagnosticBag, <Out> Optional ByRef guidVal As Guid = Nothing) As Boolean 324Private Sub CheckForNameCollisions(comClass As SourceNamedTypeSymbol, diagnostics As BindingDiagnosticBag) 364diagnostics As BindingDiagnosticBag 475Private Shared Function GetUserSpecifiedDispId(target As Symbol, diagnostics As BindingDiagnosticBag) As Integer 876Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 880Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 884Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 888Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (4)
15Protected Overrides Sub AddGroupClassMembersIfNeeded(membersBuilder As MembersAndInitializersBuilder, diagnostics As BindingDiagnosticBag) 122Private Function GetMyGroupCollectionAttributeData(diagnostics As BindingDiagnosticBag, <Out> ByRef binder As Binder, <Out> ByRef attributeSyntax As AttributeSyntax) As VisualBasicAttributeData 142Dim attributeType As NamedTypeSymbol = Binder.BindAttributeType(binder, attr, Me, BindingDiagnosticBag.Discarded) 382diagnostics As BindingDiagnosticBag
Symbols\Source\SourceNamespaceSymbol.vb (1)
370Dim diagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=False)
Symbols\Source\SourceParameterSymbol.vb (6)
323Debug.Assert(TypeOf arguments.Diagnostics Is BindingDiagnosticBag) 343DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) 364DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_CallerArgumentExpressionAttributeSelfReferential, arguments.AttributeSyntaxOpt.Location, Me.Name) 366DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName, arguments.AttributeSyntaxOpt.Location, Me.Name) 375Dim diagnostics = DirectCast(arguments.Diagnostics, BindingDiagnosticBag) 391Protected Sub VerifyParamDefaultValueMatchesAttributeIfAny(value As ConstantValue, syntax As VisualBasicSyntaxNode, diagnostics As BindingDiagnosticBag)
Symbols\Source\SourcePropertyAccessorSymbol.vb (7)
185Dim diagBag = BindingDiagnosticBag.GetInstance() 224diagBag As BindingDiagnosticBag) As TypeSymbol 254Dim diagBag = BindingDiagnosticBag.GetInstance() 285Private Function GetParameters(sourceModule As SourceModuleSymbol, diagBag As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 393diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 464Private Shared Function CheckParameterModifier(container As Symbol, token As SyntaxToken, flag As SourceParameterFlags, diagnostics As BindingDiagnosticBag) As SourceParameterFlags 473Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\SourcePropertySymbol.vb (9)
237diagnostics As BindingDiagnosticBag) As SourcePropertySymbol 339Private Function ComputeType(diagnostics As BindingDiagnosticBag) As TypeSymbol 560Dim diagnostics = DirectCast(arguments.Diagnostics, BindingDiagnosticBag) 738Dim diagnostics = BindingDiagnosticBag.GetInstance() 826Private Function ComputeParameters(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of ParameterSymbol) 869Dim diagnostics = BindingDiagnosticBag.GetInstance() 881Private Function ComputeExplicitInterfaceImplementations(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of PropertySymbol) 1107diagnostics As BindingDiagnosticBag) As ImmutableArray(Of PropertySymbol) 1203Dim diagnostics = BindingDiagnosticBag.GetInstance()
Symbols\Source\SourceTypeParameterSymbol.vb (5)
109Dim diagnostics = BindingDiagnosticBag.GetInstance() 151Protected MustOverride Overloads Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 179Private Sub CheckConstraintTypeConstraints(constraints As ImmutableArray(Of TypeParameterConstraint), diagnostics As BindingDiagnosticBag) 288Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint) 356Protected Overrides Function GetDeclaredConstraints(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of TypeParameterConstraint)
Symbols\Source\SynthesizedConstructorSymbol.vb (1)
34diagnostics As BindingDiagnosticBag
Symbols\Source\SynthesizedEntryPointSymbol.vb (3)
21Friend Shared Function Create(initializerMethod As SynthesizedInteractiveInitializerMethod, diagnostics As BindingDiagnosticBag) As SynthesizedEntryPointSymbol 193Private Shared Sub ReportUseSiteInfo(symbol As Symbol, diagnostics As BindingDiagnosticBag) 197Private Shared Function GetRequiredMethod(type As TypeSymbol, methodName As String, diagnostics As BindingDiagnosticBag) As MethodSymbol
Symbols\Source\SynthesizedEventAccessorSymbol.vb (6)
51Dim diagnostics = BindingDiagnosticBag.GetInstance() 76Dim diagnostics = BindingDiagnosticBag.GetInstance() 108Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 116diagnostics As BindingDiagnosticBag) As BoundBlock 135diagnostics As BindingDiagnosticBag) As BoundBlock 271diagnostics As BindingDiagnosticBag) As BoundBlock
Symbols\Source\SynthesizedEventBackingFieldSymbol.vb (1)
38Dim diagnostics = BindingDiagnosticBag.GetInstance()
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (3)
24diagnostics As BindingDiagnosticBag) 135Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 150diagnostics As BindingDiagnosticBag,
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (2)
48Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out()> Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 56Dim defaultInstancePropertyDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=False, withDependencies:=diagnostics.AccumulatesDependencies)
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (2)
54Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out()> Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock 104Dim bindingDiagnostics = BindingDiagnosticBag.GetInstance(withDiagnostics:=True, withDependencies:=diagnostics.AccumulatesDependencies)
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (2)
24diagnostics As BindingDiagnosticBag 46Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Source\UnboundLambdaParameterSymbol.vb (1)
68diagBag As BindingDiagnosticBag) As ParameterSymbol
Symbols\SubstitutedNamedType.vb (4)
246Friend NotOverridable Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 250Friend NotOverridable Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 268Friend NotOverridable Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 278Friend NotOverridable Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\Symbol_Attributes.vb (10)
199ReportExtensionAttributeUseSiteInfo(arguments.Attribute, arguments.AttributeSyntaxOpt, compilation, DirectCast(arguments.Diagnostics, BindingDiagnosticBag)) 202DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_AttributeNotSupportedInVB, arguments.AttributeSyntaxOpt.Location, AttributeDescription.SkipLocalsInitAttribute.FullName) 204DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_DoNotUseCompilerFeatureRequired, arguments.AttributeSyntaxOpt.Location) 206DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_DoNotUseRequiredMember, arguments.AttributeSyntaxOpt.Location) 210DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_InvalidExperimentalDiagID, attrArgumentLocation) 235diagnostics As BindingDiagnosticBag, 254Dim diagnostics = BindingDiagnosticBag.GetInstance() 454diagnostics As BindingDiagnosticBag, 499diagnostics As BindingDiagnosticBag, 598Private Sub ReportExtensionAttributeUseSiteInfo(attribute As VisualBasicAttributeData, nodeOpt As AttributeSyntax, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (1)
38diagnostics As BindingDiagnosticBag
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (6)
59Dim diagBag = BindingDiagnosticBag.GetInstance() 231Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 235Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 239Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 243Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 390Dim diagnostics = BindingDiagnosticBag.GetInstance()
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionConstructorSymbol.vb (1)
64Friend Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, <Out> ByRef Optional methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (4)
142Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 146Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 150Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 154Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\SynthesizedSymbols\SynthesizedPropertyAccessorBase.vb (1)
16Friend Overloads Overrides Function GetBoundMethodBody(compilationState As TypeCompilationState, diagnostics As BindingDiagnosticBag, Optional ByRef methodBodyBinder As Binder = Nothing) As BoundBlock
Symbols\Tuples\TupleTypeSymbol.vb (9)
368Optional diagnostics As BindingDiagnosticBag = Nothing) As TupleTypeSymbol 543Private Shared Function GetTupleUnderlyingType(elementTypes As ImmutableArray(Of TypeSymbol), syntax As SyntaxNode, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 571Friend Shared Sub VerifyTupleTypePresent(cardinality As Integer, syntax As VisualBasicSyntaxNode, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag) 644Friend Shared Function GetWellKnownMemberInType(type As NamedTypeSymbol, relativeMember As WellKnownMember, diagnostics As BindingDiagnosticBag, syntax As SyntaxNode) As Symbol 1079Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 1083Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1087Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 1091Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 1105Friend Shared Sub ReportNamesMismatchesIfAny(destination As TypeSymbol, literal As BoundTupleLiteral, diagnostics As BindingDiagnosticBag)
Symbols\UnboundGenericType.vb (4)
255Friend Overrides Function MakeDeclaredBase(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 259Friend Overrides Function MakeAcyclicBaseType(diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 271Friend Overrides Function MakeDeclaredInterfaces(basesBeingResolved As BasesBeingResolved, diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol) 275Friend Overrides Function MakeAcyclicInterfaces(diagnostics As BindingDiagnosticBag) As ImmutableArray(Of NamedTypeSymbol)
Symbols\UsedAssemblies.vb (1)
45Dim diagnostics = BindingDiagnosticBag.GetConcurrentInstance()