39 references to Add
Microsoft.CodeAnalysis.VisualBasic (39)
Binding\Binder.vb (1)
993
diagnostics.
Add
(info, node.GetLocation())
Binding\BindingDiagnosticBag.vb (2)
157
Add
(info, location)
163
Add
(info, location)
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
565
Me.Diagnostics.
Add
(If(result.HasDiagnostic,
623
Me.Diagnostics.
Add
(If(result.HasDiagnostic,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
849
Diagnostics.
Add
(If(result.HasDiagnostic,
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
162
_diagnostics.
Add
(info, syntax.GetLocation())
Semantics\Operators.vb (11)
336
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresBoolReturnType1, SyntaxFacts.GetText(SyntaxKind.IsTrueKeyword)), method.Locations(0))
343
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresBoolReturnType1, SyntaxFacts.GetText(SyntaxKind.IsFalseKeyword)), method.Locations(0))
361
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresIntegerParameter1,
391
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(targetMismatchError, method.ContainingSymbol), method.Locations(0))
403
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionFromObject), method.Locations(0))
410
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToObject), method.Locations(0))
417
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionFromInterfaceType), method.Locations(0))
424
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToInterfaceType), method.Locations(0))
433
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToSameType), method.Locations(0))
442
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(If(targetType Is method.ContainingSymbol,
451
diagnosticsOpt.
Add
(ErrorFactory.ErrorInfo(If(targetType Is method.ContainingSymbol,
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (2)
77
diagnostics.
Add
(diagInfo, NoLocation.Singleton)
90
diagnostics.
Add
(diagInfo, NoLocation.Singleton)
Symbols\Attributes\AttributeData.vb (1)
247
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_SecurityAttributeMissingAction),
Symbols\Source\ImplementsHelper.vb (1)
546
diagBag.
Add
(
Symbols\Source\SourceAssemblySymbol.vb (1)
404
diagnostics.
Add
(info, NoLocation.Singleton)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (9)
3707
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_MatchingOperatorExpected2,
3836
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateProcDef1, firstMember), location)
3843
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateProcDefWithDifferentTupleNames2, firstMember, secondMember), location)
3847
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithByref2, firstMember, secondMember), location)
3851
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithReturnType2, firstMember, secondMember), location)
3855
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithArrayVsParamArray2, firstMember, secondMember), location)
3860
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithOptional2, firstMember, secondMember), location)
3872
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithDefault2, firstMember, secondMember), location)
3876
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadingPropertyKind2, firstMember, secondMember), location)
Symbols\Source\SourceMethodSymbol.vb (4)
1618
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOptionalFirstArg), firstParam.Locations(0))
1621
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodParamArrayFirstArg), firstParam.Locations(0))
1624
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodUncallable1, Me.Name), Me.Locations(0))
1634
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_InvalidOptionalParameterUsage1, "WebMethod"), Me.Locations(0))
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2180
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionOnlyAllowedOnModuleSubOrFunction), Me.Locations(0))
2233
diagnostics.
Add
(ErrorFactory.ErrorInfo(ERRID.ERR_InvalidAttributeUsage2, AttributeDescription.VisualBasicComClassAttribute.Name, Me.Name), Me.Locations(0))
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
200
diagnostics.
Add
(