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