120 references to Discarded
Microsoft.CodeAnalysis.VisualBasic (120)
Binding\Binder_Attributes.vb (1)
293
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_ConditionalAccess.vb (1)
81
BindConditionalAccessReceiver(node, BindingDiagnosticBag.
Discarded
, placeholder)
Binding\Binder_Conversions.vb (6)
91
diagnostics = BindingDiagnosticBag.
Discarded
205
diagnostics = BindingDiagnosticBag.
Discarded
352
diagnostics = BindingDiagnosticBag.
Discarded
374
diagnostics = BindingDiagnosticBag.
Discarded
407
diagnostics = BindingDiagnosticBag.
Discarded
1079
converted.Add(ApplyConversion(tree, targetElementTypes(i), placeholder, isExplicit, BindingDiagnosticBag.
Discarded
))
Binding\Binder_Delegates.vb (4)
181
boundArguments(argumentIndex) = BindValue(expressionSyntax, BindingDiagnosticBag.
Discarded
)
513
diagnostics = BindingDiagnosticBag.
Discarded
645
diagnostics = BindingDiagnosticBag.
Discarded
674
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_Expressions.vb (9)
634
Dim boundParent As BoundExpression = BindNamespaceOrTypeOrExpressionSyntaxForSemanticModel(DirectCast(node.Parent, QualifiedNameSyntax), BindingDiagnosticBag.
Discarded
)
642
boundParent = BindExpression(DirectCast(node.Parent, QualifiedNameSyntax), BindingDiagnosticBag.
Discarded
)
704
diagnostics = BindingDiagnosticBag.
Discarded
796
diagnostics = BindingDiagnosticBag.
Discarded
1427
expr = MakeRValue(expr, BindingDiagnosticBag.
Discarded
)
1511
Dim argument As BoundExpression = ApplyImplicitConversion(arrayLiteral.Syntax, arrayLiteral.InferredType, arrayLiteral, BindingDiagnosticBag.
Discarded
)
3966
Dim discardedDiagnostics = BindingDiagnosticBag.
Discarded
4582
diagnostics = BindingDiagnosticBag.
Discarded
4691
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_Initializers.vb (4)
511
Dim fieldType = If(fieldSymbol.HasDeclaredType, fieldSymbol.Type, GetSpecialType(SpecialType.System_Object, asNewSyntax, BindingDiagnosticBag.
Discarded
)) ' prevent recursion if field type is inferred.
520
BindingDiagnosticBag.
Discarded
,
524
DirectCast(asNewSyntax.NewExpression, AnonymousObjectCreationExpressionSyntax), BindingDiagnosticBag.
Discarded
)
563
constValue = Me.GetExpressionConstantValueIfAny(boundInitValue, BindingDiagnosticBag.
Discarded
, ConstantContext.Default)
Binding\Binder_Invocation.vb (3)
137
group, boundArguments, argumentNames, BindingDiagnosticBag.
Discarded
,
488
BindingDiagnosticBag.
Discarded
,
751
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_Lambda.vb (2)
258
diagnostics = BindingDiagnosticBag.
Discarded
484
block = bodyBinder.BindBlock(lambdaSyntax, singleLineLambdaSyntax.Statements, BindingDiagnosticBag.
Discarded
).MakeCompilerGenerated()
Binding\Binder_ObjectInitializer.vb (4)
31
diagnostics = BindingDiagnosticBag.
Discarded
33
Dim argumentDiagnostics = BindingDiagnosticBag.
Discarded
383
diagnostics = BindingDiagnosticBag.
Discarded
407
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_Operators.vb (11)
244
diagnostics = BindingDiagnosticBag.
Discarded
256
diagnostics = BindingDiagnosticBag.
Discarded
297
diagnostics = BindingDiagnosticBag.
Discarded
404
diagnostics = BindingDiagnosticBag.
Discarded
429
diagnostics = BindingDiagnosticBag.
Discarded
696
BindingDiagnosticBag.
Discarded
) ' Ignore any additional diagnostics.
716
diagnostics = BindingDiagnosticBag.
Discarded
726
BindingDiagnosticBag.
Discarded
) ' Ignore any additional diagnostics.
741
diagnostics = BindingDiagnosticBag.
Discarded
' Ignore any additional diagnostics.
1151
diagnostics = BindingDiagnosticBag.
Discarded
1161
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_Query.vb (24)
353
callDiagnostics = BindingDiagnosticBag.
Discarded
548
callDiagnostics = BindingDiagnosticBag.
Discarded
618
diagnostics = BindingDiagnosticBag.
Discarded
690
diagnostics = BindingDiagnosticBag.
Discarded
825
If callDiagnostics IsNot BindingDiagnosticBag.
Discarded
AndAlso ShouldSuppressDiagnostics(selectorLambda) Then
827
callDiagnostics = BindingDiagnosticBag.
Discarded
1140
If callDiagnostics IsNot BindingDiagnosticBag.
Discarded
AndAlso
1143
callDiagnostics = BindingDiagnosticBag.
Discarded
1529
callDiagnostics = BindingDiagnosticBag.
Discarded
1713
callDiagnostics = BindingDiagnosticBag.
Discarded
1818
callDiagnostics = BindingDiagnosticBag.
Discarded
2357
diagnostics = BindingDiagnosticBag.
Discarded
2379
If diagnostics IsNot BindingDiagnosticBag.
Discarded
AndAlso ShouldSuppressDiagnostics(filterLambda) Then
2381
diagnostics = BindingDiagnosticBag.
Discarded
2489
diagnostics = BindingDiagnosticBag.
Discarded
2576
If callDiagnostics IsNot BindingDiagnosticBag.
Discarded
AndAlso ShouldSuppressDiagnostics(keyLambda) Then
2578
callDiagnostics = BindingDiagnosticBag.
Discarded
3432
innerKey = innerKeyBinder.BindRValue(joinCondition.Left, BindingDiagnosticBag.
Discarded
)
3446
outerKey = outerKeyBinder.BindRValue(joinCondition.Right, BindingDiagnosticBag.
Discarded
)
3447
innerKey = innerKeyBinder.BindRValue(joinCondition.Left, BindingDiagnosticBag.
Discarded
)
3500
diagnostics = BindingDiagnosticBag.
Discarded
3963
callDiagnostics = BindingDiagnosticBag.
Discarded
4289
diagnostics = BindingDiagnosticBag.
Discarded
4650
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_SelectCase.vb (1)
28
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_Statements.vb (7)
1412
Dim localDiagnostics = If(inferFrom.HasErrors, BindingDiagnosticBag.
Discarded
, diagnostics)
2055
diagnostics = BindingDiagnosticBag.
Discarded
2412
Dim errorRecovery As BoundExpression = BindRValue(node, BindingDiagnosticBag.
Discarded
)
3221
If(lessThanOrEqual IsNot Nothing AndAlso lessThanOrEqual.HasErrors, BindingDiagnosticBag.
Discarded
, diagnostics),
3287
diagnostics = BindingDiagnosticBag.
Discarded
3515
diagnostics = BindingDiagnosticBag.
Discarded
4606
diagnostics = BindingDiagnosticBag.
Discarded
Binding\Binder_Utils.vb (1)
1467
Dim conversionToUnderlying As BoundExpression = ApplyConversion(operand.Syntax, conversionType.GetNullableUnderlyingType(), operand, isExplicit:=True, diagnostics:=BindingDiagnosticBag.
Discarded
)
Binding\Binder_XmlLiterals.vb (2)
525
TryGetXmlnsPrefix(name, prefix, BindingDiagnosticBag.
Discarded
)
1044
Return BindingDiagnosticBag.
Discarded
Binding\BindingDiagnosticBag.vb (1)
46
Return
Discarded
Binding\DocumentationCommentCrefBinder.vb (3)
222
Dim result As Symbol = typeParameterAwareBinder.BindNamespaceOrTypeOrAliasSyntax(name, If(diagnosticBag, BindingDiagnosticBag.
Discarded
))
223
result = typeParameterAwareBinder.BindNamespaceOrTypeOrAliasSyntax(name, If(diagnosticBag, BindingDiagnosticBag.
Discarded
))
458
Dim diagnostic = If(diagnosticBag, BindingDiagnosticBag.
Discarded
)
Binding\DocumentationCommentCrefBinder_Compat.vb (4)
47
BindTypeOrAliasSyntax(nameFromCref, BindingDiagnosticBag.
Discarded
),
48
BindTypeSyntax(nameFromCref, BindingDiagnosticBag.
Discarded
))
390
symbols.Add(Me.GetSpecialType(type, node, BindingDiagnosticBag.
Discarded
))
417
result(i) = Me.BindTypeSyntax(args(i), BindingDiagnosticBag.
Discarded
)
Binding\EarlyWellKnownAttributeBinder.vb (1)
172
Dim boundExpression = memberAccessBinder.BindExpression(invokedExpression, BindingDiagnosticBag.
Discarded
)
Binding\MemberSemanticModel.vb (3)
1229
Me.RootBinder.DisallowFurtherImplicitVariableDeclaration(BindingDiagnosticBag.
Discarded
)
1885
Dim boundNode = Me.Bind(binder, node, BindingDiagnosticBag.
Discarded
)
1939
Dim boundRoot As BoundNode = Me.Bind(binder, bindingRoot, BindingDiagnosticBag.
Discarded
)
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
130
True, BindingDiagnosticBag.
Discarded
, Nothing, Nothing, preferredCulture, cancellationToken)
Compilation\MethodCompiler.vb (1)
813
Dim f = New SyntheticBoundNodeFactory(matchingStub, matchingStub, If(method.Syntax, VisualBasic.VisualBasicSyntaxTree.Dummy.GetRoot()), compilationState, BindingDiagnosticBag.
Discarded
)
Compilation\SemanticModel.vb (4)
738
bnode = binder.BindNamespaceOrTypeExpression(DirectCast(expression, TypeSyntax), BindingDiagnosticBag.
Discarded
)
741
bnode = Me.Bind(binder, expression, BindingDiagnosticBag.
Discarded
)
835
Dim bnode As BoundAttribute = binder.BindAttribute(attribute, BindingDiagnosticBag.
Discarded
)
2364
Dim bnode = binder.BindValue(expression, BindingDiagnosticBag.
Discarded
)
Compilation\SyntaxTreeSemanticModel.vb (8)
274
Dim bound As BoundExpression = binder.BindExpression(node, BindingDiagnosticBag.
Discarded
)
464
resultSymbol = binder.BindTypeOrAliasSyntax(expression, BindingDiagnosticBag.
Discarded
)
466
resultSymbol = binder.BindNamespaceOrTypeOrAliasSyntax(expression, BindingDiagnosticBag.
Discarded
)
722
BindingDiagnosticBag.
Discarded
,
732
BindingDiagnosticBag.
Discarded
,
742
BindingDiagnosticBag.
Discarded
,
775
BindingDiagnosticBag.
Discarded
,
1338
Dim targetSymbol As NamespaceOrTypeSymbol = binder.BindNamespaceOrTypeSyntax(declarationSyntax.Name, BindingDiagnosticBag.
Discarded
)
Lowering\LocalRewriter\LocalRewriter_AsNewLocalDeclarations.vb (1)
60
initializerToRewrite = node.Binder.BindVariableDeclaration(varDecl, varDecl.Names(declarationIndex), asNew, Nothing, BindingDiagnosticBag.
Discarded
, skipAsNewInitializer:=False).InitializerOpt
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (2)
81
initialValueToRewrite = node.BinderOpt.BindFieldInitializerExpression(syntax, DirectCast(symbol, FieldSymbol), BindingDiagnosticBag.
Discarded
)
84
initialValueToRewrite = node.BinderOpt.BindPropertyInitializerExpression(syntax, DirectCast(symbol, PropertySymbol), BindingDiagnosticBag.
Discarded
)
Semantics\OverloadResolution.vb (2)
3399
Dim passedExpression As BoundExpression = binder.PassArgumentByVal(argument, conv, targetType, BindingDiagnosticBag.
Discarded
)
3403
visitor.VisitExpression(passedExpression, BindingDiagnosticBag.
Discarded
)
Semantics\TypeInference\TypeArgumentInference.vb (1)
1940
diagnostics:=BindingDiagnosticBag.
Discarded
)
Symbols\ReducedExtensionMethodSymbol.vb (1)
92
BindingDiagnosticBag.
Discarded
)
Symbols\Source\ImplementsHelper.vb (1)
80
Dim implementedMethod As TSymbol = FindExplicitlyImplementedMember(implementingSym, container, implementedMethodSyntax, binder, BindingDiagnosticBag.
Discarded
, Nothing, dummyResultKind)
Symbols\Source\LocalSymbol.vb (3)
711
BindingDiagnosticBag.
Discarded
)
778
BindingDiagnosticBag.
Discarded
)
857
BindingDiagnosticBag.
Discarded
)
Symbols\Source\SourceMemberFieldSymbol.vb (1)
169
asClauseType = binder.BindTypeSyntax(asClauseOpt.Type, If(ignoreTypeSyntaxDiagnostics, BindingDiagnosticBag.
Discarded
, diagnostics))
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1339
Dim bt = binder.BindTypeSyntax(typeSyntax, BindingDiagnosticBag.
Discarded
, suppressUseSiteError:=True)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
142
Dim attributeType As NamedTypeSymbol = Binder.BindAttributeType(binder, attr, Me, BindingDiagnosticBag.
Discarded
)