48 references to Add
Microsoft.CodeAnalysis.VisualBasic (47)
Analysis\FlowAnalysis\DataFlowPass.vb (4)
200Me.diagnostics.Add(ERRID.WRN_UnusedLocalConst, local.Locations(0), If(local.Name, "dummy")) 203Me.diagnostics.Add(ERRID.WRN_UnusedLocal, local.Locations(0), If(local.Name, "dummy")) 1207Me.diagnostics.Add(warning, node.GetLocation(), If(sym.Name, "dummy")) 1304Me.diagnostics.Add(warning, node.GetLocation(), localName)
Analysis\ForLoopVerification.vb (2)
80_diagnostics.Add(ERRID.ERR_ForIndexInUse1, 114_diagnostics.Add(ERRID.ERR_NextForMismatch1,
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
72diagnostics.Add(ERRID.ERR_CannotLiftRestrictedTypeResumable1, node.GetLocation(), type)
Compilation\VisualBasicCompilation.vb (13)
1527diagnostics.Add(ERRID.WRN_MainIgnored, NoLocation.Singleton, mainTypeName) 1533diagnostics.Add(ERRID.ERR_StartupCodeNotFound1, NoLocation.Singleton, mainTypeName) 1539diagnostics.Add(ERRID.ERR_StartupCodeNotFound1, NoLocation.Singleton, mainType) 1545diagnostics.Add(ERRID.ERR_GenericSubMainsFound1, NoLocation.Singleton, mainType) 1563diagnostics.Add(ERRID.ERR_StartupCodeNotFound1, NoLocation.Singleton, mainType) 1593diagnostics.Add(ERRID.WRN_MainIgnored, main.Locations.First(), main) 1600diagnostics.Add(ERRID.ERR_StartupCodeNotFound1, NoLocation.Singleton, errorTarget) 1622diagnostics.Add(ERRID.ERR_GenericSubMainsFound1, NoLocation.Singleton, errorTarget) 1624diagnostics.Add(ERRID.ERR_InValidSubMainsFound1, NoLocation.Singleton, errorTarget) 1628diagnostics.Add(ERRID.ERR_MoreThanOneValidMainWasFound2, 2470diagnostics.Add(ERRID.ERR_ModuleEmitFailure, NoLocation.Singleton, moduleBeingBuilt.SourceModule.Name, 2562diagnostics.Add(ERRID.ERR_UnsupportedModule1, NoLocation.Singleton, m) 2631diagnosticBag.Add(ERRID.WRN_MultipleDeclFileExtChecksum, New SourceLocation(checksumDirective), path)
Emit\AttributeDataAdapter.vb (1)
27context.Diagnostics.Add(ERRID.ERR_AttributeMustBeClassNotStruct1, If(context.Location, NoLocation.Singleton), Me.AttributeClass)
Emit\EditAndContinue\EmitHelpers.vb (1)
50diagnostics.Add(ERRID.ERR_ModuleEmitFailure, NoLocation.Singleton, compilation.AssemblyName, e.Message)
Emit\PEAssemblyBuilder.vb (1)
128diagnostics.Add(ERRID.ERR_UnsupportedModule1, NoLocation.Singleton, modules(i))
Emit\PEModuleBuilder.vb (5)
456diagnostics.Add(ERRID.ERR_ExportedTypeConflictsWithDeclaration, NoLocation.Singleton, type, type.ContainingModule) 458diagnostics.Add(ERRID.ERR_ForwardedTypeConflictsWithDeclaration, NoLocation.Singleton, CustomSymbolDisplayFormatter.DefaultErrorFormat(type)) 473diagnostics.Add(ERRID.ERR_ExportedTypesConflict, NoLocation.Singleton, 480diagnostics.Add(ERRID.ERR_ForwardedTypeConflictsWithExportedType, NoLocation.Singleton, 487diagnostics.Add(ERRID.ERR_ForwardedTypesConflict, NoLocation.Singleton,
Errors\MessageProvider.vb (8)
402diagnostics.Add(ERRID.ERR_DuplicateReferenceStrong, 409diagnostics.Add(ERRID.ERR_DuplicateReference2, 499diagnostics.Add(ERRID.ERR_BadAttribute1, node.ArgumentList.Arguments(parameterIndex).GetLocation(), attribute.AttributeClass) 504diagnostics.Add(ERRID.ERR_BadAttribute1, node.ArgumentList.Arguments(namedArgumentIndex).GetLocation(), attributeClass) 514diagnostics.Add(ERRID.ERR_MarshalUnmanagedTypeNotValidForFields, node.ArgumentList.Arguments(parameterIndex).GetLocation(), unmanagedTypeName) 519diagnostics.Add(ERRID.ERR_MarshalUnmanagedTypeOnlyValidForFields, node.ArgumentList.Arguments(parameterIndex).GetLocation(), unmanagedTypeName) 524diagnostics.Add(ERRID.ERR_AttributeParameterRequired1, node.Name.GetLocation(), parameterName) 529diagnostics.Add(ERRID.ERR_AttributeParameterRequired2, node.Name.GetLocation(), parameterName1, parameterName2)
Parser\Parser.vb (1)
6135diagnosticsOpt.Add(ERRID.ERR_LanguageVersion, location, languageVersion.GetErrorName(), featureName, requiredVersion)
Symbols\Source\SourceEventSymbol.vb (3)
130diagnostics.Add(ERRID.ERR_MissingAddHandlerDef1, location, Me) 134diagnostics.Add(ERRID.ERR_MissingRemoveHandlerDef1, location, Me) 138diagnostics.Add(ERRID.ERR_MissingRaiseEventDef1, location, Me)
Symbols\Source\SourceMethodSymbol.vb (5)
233diagBag.Add(ERRID.ERR_OverloadsModifierInModule, keyword.GetLocation(), keyword.ValueText) 236diagBag.Add(ERRID.ERR_ModuleCantUseDLLDeclareSpecifier1, keyword.GetLocation(), keyword.ValueText) 241diagBag.Add(ERRID.ERR_StructCantUseDLLDeclareSpecifier1, keyword.GetLocation(), keyword.ValueText) 263diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.GetLocation(), name) 272diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.GetLocation(), name)
Symbols\Source\SourceModuleSymbol.vb (2)
795diagnostics.Add(ERRID.ERR_PIAHasNoAssemblyGuid1, 802diagnostics.Add(ERRID.ERR_PIAHasNoTypeLibAttribute1,
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
SyntaxHelpers.vb (1)
142diagnostics.Add(ERRID.ERR_InvalidFormatSpecifier, Location.None, token)