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