35 references to Add
Microsoft.CodeAnalysis.VisualBasic (35)
Binding\Binder_Delegates.vb (2)
927
diagnostics.
Add
(ERRID.ERR_ParamArrayIllegal1, location, GetDelegateOrEventKeywordText(container))
934
diagnostics.
Add
(ERRID.ERR_OptionalIllegal1, location, GetDelegateOrEventKeywordText(container))
Binding\Binder_ObjectInitializer.vb (1)
576
diagnostics.
Add
(ERRID.ERR_RequiredMemberMustBeSet, creationSyntax.Location, kvp.Value)
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (1)
511
Me._diagnostics.
Add
(badNameValueError, node.GetLocation(), nameValue.Trim(), symbolName)
Compilation\DocumentationComments\DocumentationCommentCompiler.NamedType.vb (1)
72
Me._diagnostics.
Add
(ERRID.WRN_XMLDocOnAPartialType, trivia.GetLocation(), symbolName)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (2)
251
Me._diagnostics.
Add
(ERRID.WRN_XMLDocCrefAttributeNotFound1, node.GetLocation(), strValue.Trim())
308
Me._diagnostics.
Add
(errid, location, reference.ToFullString().TrimEnd())
Symbols\Attributes\AttributeData.vb (8)
297
diagnostics.
Add
(ERRID.ERR_PrincipalPermissionInvalidAction, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
326
diagnostics.
Add
(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
338
diagnostics.
Add
(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
349
diagnostics.
Add
(ERRID.ERR_SecurityAttributeInvalidActionAssembly, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
399
DirectCast(arguments.Diagnostics, BindingDiagnosticBag).
Add
(ERRID.ERR_PermissionSetAttributeInvalidFile, argSyntaxLocation, If(fileName, "<empty>"), filePropName)
449
diagnostics.
Add
(ERRID.ERR_BadAttribute1, location, Me.AttributeClass)
457
diagnostics.
Add
(ERRID.ERR_BadAttribute1, location, Me.AttributeClass)
499
diagnostics.
Add
(ERRID.ERR_BadAttributeUuid2, location, Me.AttributeClass, If(guidString, ObjectDisplay.NullLiteral))
Symbols\Source\CustomEventAccessorSymbol.vb (4)
200
diagnostics.
Add
(ERRID.ERR_RaiseEventShapeMismatch1, location, eventType)
257
diagnostics.
Add
(ERRID.ERR_EventMethodOptionalParamIllegal1, location, token.ToString())
263
diagnostics.
Add
(ERRID.ERR_EventMethodOptionalParamIllegal1, location, token.ToString())
274
diagnostics.
Add
(ERRID.ERR_EventAddRemoveByrefParamIllegal, location, token.ToString())
Symbols\Source\SourceEnumConstantSymbol.vb (1)
147
diagnostics.
Add
(ERRID.ERR_ExpressionOverflow1, Locations(0), Me)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (11)
1752
diagnostics.
Add
(ERRID.ERR_PartialMethodsMustBeSub1, method.NonMergedLocation, method.Name)
1814
diagnostics.
Add
(ERRID.ERR_OnlyOnePartialMethodAllowed2,
1839
diagnostics.
Add
(ERRID.ERR_OnlyOneImplementingMethodAllowed3,
1901
diagnostics.
Add
(ERRID.ERR_ImplementationMustBePrivate2,
1921
diagnostics.
Add
(ERRID.ERR_PartialMethodParamNamesMustMatch3,
1942
diagnostics.
Add
(ERRID.ERR_PartialMethodTypeParamNameMismatch3,
1953
diagnostics.
Add
(ERRID.ERR_PartialMethodGenericConstraints2,
2271
diagBag.
Add
(ERRID.ERR_DuplicateDefaultProps1, propertySymbol.Locations(0), GetKindText())
2288
diagBag.
Add
(ERRID.ERR_DefaultMissingFromProperty2, propertySymbol.Locations(0), defaultProperty, propertySymbol)
2428
diagBag.
Add
(ERRID.ERR_MustShadow2, symbol.Locations(0), symbol.GetKindText(), symbol.Name)
2433
diagBag.
Add
(ERRID.ERR_MustBeOverloads2, symbol.Locations(0), symbol.GetKindText(), symbol.Name)
Symbols\Source\SourceNamedTypeSymbol.vb (2)
1410
diagnostics.
Add
(ERRID.ERR_CannotInheritFromTypeWithRequiredMembers, GetInheritsLocation(Me), declaredOrDefaultBase)
2257
diagnostics.
Add
(ERRID.ERR_ConflictDefaultPropertyAttribute, Locations(0), Me)
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
467
diagnostics.
Add
(ERRID.ERR_SetHasToBeByVal1, location, token.ToString())
Symbols\Tuples\TupleTypeSymbol.vb (1)
1124
diagnostics.
Add
(ERRID.WRN_TupleLiteralNameMismatch, literal.Arguments(i).Syntax.Parent.Location, sourceName, destination)