412 references to ErrorFactory
Microsoft.CodeAnalysis.VisualBasic (412)
Binding\Binder.vb (10)
458info = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UndefinedType1, MetadataHelpers.BuildQualifiedName(missing.NamespaceName, missing.Name))) 569useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, memberDescriptor.DeclaringTypeMetadataName & "." & memberDescriptor.Name)) 869ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id)) 873ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id, args)) 882ReportDiagnostic(diagBag, location, ErrorFactory.ErrorInfo(id)) 886ReportDiagnostic(diagBag, location, ErrorFactory.ErrorInfo(id, args)) 899ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id)) 903ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id, args)) 912ReportDiagnostic(diagBag, location, ErrorFactory.ErrorInfo(id)) 916ReportDiagnostic(diagBag, location, ErrorFactory.ErrorInfo(id, args))
Binding\Binder_AnonymousTypes.vb (1)
195ReportDiagnostic(diagnostics, fieldSyntax, ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateAnonTypeMemberName1, fieldName))
Binding\Binder_Attributes.vb (1)
277ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NoViableOverloadCandidates1, "New"))
Binding\Binder_Conversions.vb (4)
572ReportDiagnostic(diagnostics, argument.Syntax, wrnId1, ErrorFactory.ErrorInfo(wrnId2, sourceType, targetType)) 752ErrorFactory.ErrorInfo(ERRID.WRN_VarianceIEnumerableSuggestion3, sourceType, targetType, suggestion)) 908ErrorFactory.ErrorInfo(If(oneVariantDifference.TypeParameter.Variance = VarianceKind.Out, 954ErrorFactory.ErrorInfo(If(oneInvariantConvertibleDifference IsNot Nothing,
Binding\Binder_Delegates.vb (1)
349useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, delegateType))
Binding\Binder_Diagnostics.vb (3)
22Return ReportDiagnosticAndProduceBadExpression(diagBag, syntax, ErrorFactory.ErrorInfo(id)) 32Return ReportDiagnosticAndProduceBadExpression(diagBag, syntax, ErrorFactory.ErrorInfo(id, args)) 54Return ReportDiagnosticAndProduceErrorTypeSymbol(diagBag, syntax, ErrorFactory.ErrorInfo(id, args))
Binding\Binder_Expressions.vb (21)
694ReportDiagnostic(diagnostics, node.Type, ErrorFactory.ErrorInfo(ERRID.ERR_VoidArrayDisallowed)) 1624ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1, 1625ErrorFactory.ErrorInfo(ERRID.WRN_ArrayInitNoTypeObjectAssumed))) 1627ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1, 1628ErrorFactory.ErrorInfo(ERRID.WRN_ArrayInitTooManyTypesObjectAssumed))) 2201ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_IfNoTypeObjectAssumed))) 2211ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_IfTooManyTypesObjectAssumed))) 2526errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_PlatformDoesntSupport, MissingRuntimeMemberDiagnosticHelper.MyVBNamespace) 2528errorInfo = ErrorFactory.ErrorInfo(If(Me.IsInQuery, ERRID.ERR_QueryNameNotDeclared, ERRID.ERR_NameNotDeclared1), 2816diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ConstructorNotFound1, leftTypeSymbol), left) 2839diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ConstructorNotFound1, namedLeftTypeSymbol), left) 2898Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, rightName, ns), left) 2905Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_TypeParamQualifierDisallowed), left) 2917Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, rightName, type), left) 2958Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, rightName, type), left) 4959Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncLambda) 4964Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncVoidMethod) 4966Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncMethod, method.ReturnType) 4970Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitNotInAsyncMethodOrLambda)
Binding\Binder_InterpolatedString.vb (1)
240ReportDiagnostic(diagnostics, node.Syntax, ErrorFactory.ErrorInfo(ERRID.ERR_InterpolatedStringFactoryError, factoryType.Name, factoryMethodName))
Binding\Binder_Invocation.vb (19)
206Dim diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_NamespaceNotExpression1, namespaceExp.NamespaceSymbol) 229Dim diagInfo = ErrorFactory.ErrorInfo(GetTypeNotExpressionErrorId(typeExp.Type), typeExp.Type) 382Dim diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedProcedure) 1770Dim notMostSpecificMessage = ErrorFactory.ErrorInfo(ERRID.ERR_NotMostSpecificOverload) 1799diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate2, bestSymbol, bestSymbol.ContainingType)) 1801diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate1, CustomSymbolDisplayFormatter.WithContainingType(bestSymbol))) 1803diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate1, bestSymbol)) 1807diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3, bestSymbol, bestSymbol.ContainingType, notMostSpecificMessage)) 1809diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, CustomSymbolDisplayFormatter.WithContainingType(bestSymbol), notMostSpecificMessage)) 1811diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, bestSymbol, notMostSpecificMessage)) 1817ErrorFactory.ErrorInfo(If(isDelegateContext, ERRID.ERR_AmbiguousDelegateBinding2, ERRID.ERR_NoMostSpecificOverload2), 1896diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3, 1902diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, symbol, DirectCast(iDiagnostic, DiagnosticWithInfo).Info)) 1907diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3, 1909ErrorFactory.ErrorInfo(ERRID.ERR_DelegateBindingMismatch, symbol))) 1911diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, 1913ErrorFactory.ErrorInfo(ERRID.ERR_DelegateBindingMismatch, symbol))) 1921ErrorFactory.ErrorInfo(errorNo, CustomSymbolDisplayFormatter.ShortErrorName(candidates(0).Candidate.UnderlyingSymbol), 1925ErrorFactory.ErrorInfo(errorNo, CustomSymbolDisplayFormatter.ShortErrorName(candidates(0).Candidate.UnderlyingSymbol),
Binding\Binder_Lambda.vb (3)
655ReportDiagnostic(diagnostics, unboundParam.IdentifierSyntax, ERRID.WRN_ObjectAssumedVar1, ErrorFactory.ErrorInfo(ERRID.WRN_MissingAsClauseinVarDecl)) 980ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_LambdaNoTypeObjectAssumed)) 984ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_LambdaTooManyTypesObjectAssumed))
Binding\Binder_Lookup.vb (1)
1274Dim useSiteError = ErrorFactory.ErrorInfo(ERRID.ERR_XmlFeaturesNotAvailable)
Binding\Binder_ObjectInitializer.vb (13)
231diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_CoClassMissing2, coClass, type0) 237diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_InvalidCoClass1, coClass) 252diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_InvalidCoClass1, coClass) 275diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_InvalidCoClass1, coClass) 287diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_NewIfNullOnNonClass) 379ReportDiagnostic(diagnostics, If(typeNode.IsKind(SyntaxKind.QualifiedName), DirectCast(typeNode, QualifiedNameSyntax).Right, typeNode), ErrorFactory.ErrorInfo(ERRID.ERR_NoViableOverloadCandidates1, "New")) 679ReportDiagnostic(diagnostics, memberInitializerSyntax, ErrorFactory.ErrorInfo(ERRID.ERR_AggrInitInvalidForObject)) 769ErrorFactory.ErrorInfo(ERRID.ERR_SharedMemberAggrMemberInit1, identifierName)) 776ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateAggrMemberInit1, identifierName)) 787ErrorFactory.ErrorInfo(ERRID.ERR_NonFieldPropertyAggrMemberInit1, identifierName)) 884ErrorFactory.ErrorInfo(ERRID.ERR_NotACollection1, collectionType.Name)) 916ErrorFactory.ErrorInfo(ERRID.ERR_NoAddMethod1, collectionType)) 965ReportDiagnostic(diagnostics, topLevelInitializer, ErrorFactory.ErrorInfo(ERRID.ERR_EmptyAggregateInitializer))
Binding\Binder_Operators.vb (11)
383ErrorFactory.ErrorInfo( 439ReportDiagnostic(diagnostics, left.Syntax, ErrorFactory.ErrorInfo(errorId, operatorTokenKind)) 443ReportDiagnostic(diagnostics, right.Syntax, ErrorFactory.ErrorInfo(errorId, operatorTokenKind)) 535ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ZeroDivide)) 538ReportDiagnostic(diagnostics, right.Syntax, ErrorFactory.ErrorInfo(ERRID.ERR_ConstantStringTooLong)) 541ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ExpressionOverflow1, operatorResultType)) 802ErrorFactory.ErrorInfo( 1209ReportDiagnostic(diagnostics, node.Operand, ErrorFactory.ErrorInfo(ERRID.ERR_StrictDisallowsObjectOperand1, node.OperatorToken)) 1211ReportDiagnostic(diagnostics, node.Operand, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectMath2, node.OperatorToken)) 1225ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ExpressionOverflow1, resultType)) 1286ReportDiagnostic(diagnostics, syntax, ErrorFactory.ErrorInfo(ERRID.ERR_UnaryOperand2, syntax.OperatorToken, operand.Type))
Binding\Binder_Query.vb (1)
3553Dim errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_EqualsOperandIsBad, outerNames, innerNames)
Binding\Binder_Statements.vb (18)
891ReportDiagnostic(diagnostics, labelSyntax, ErrorFactory.ErrorInfo(errorID, label.Name)) 1308typeDiagnostic = ErrorFactory.GetErrorInfo_ERR_StrictDisallowImplicitObject 1311typeDiagnostic = ErrorFactory.GetErrorInfo_WRN_ObjectAssumedVar1_WRN_StaticLocalNoInference 1316typeDiagnostic = ErrorFactory.GetErrorInfo_ERR_StrictDisallowImplicitObject 1319typeDiagnostic = ErrorFactory.GetErrorInfo_WRN_ObjectAssumedVar1_WRN_MissingAsClauseinVarDecl 2297ReportDiagnostic(diagnostics, node.EventExpression, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedEvent1, eventSymbol)) 2332ReportDiagnostic(diagnostics, node.EventExpression, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedEvent1, eventSymbol)) 2376ReportDiagnostic(diagnostics, node.EventExpression, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, method)) 3794ErrorFactory.ErrorInfo(ERRID.ERR_ForEachAmbiguousIEnumerable1, 3845ErrorFactory.ErrorInfo(ERRID.ERR_ForEachCollectionDesignPattern1, 4490ErrorFactory.ErrorInfo(ERRID.ERR_UsingResourceVarNeedsInitializer)) 4572ErrorFactory.ErrorInfo(ERRID.ERR_UsingResourceVarCantBeArray)) 4633ErrorFactory.ErrorInfo(ERRID.ERR_UsingRequiresDisposePattern, resourceType)) 4661ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName)) 4674ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName)) 4680ErrorFactory.ErrorInfo(ERRID.WRN_MutableGenericStructureInUsing, symbolName)) 4685ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName)) 4733ErrorFactory.ErrorInfo(ERRID.ERR_SyncLockRequiresReferenceType1, lockExpressionType))
Binding\Binder_Symbols.vb (5)
322diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_ObsoleteAsAny, diagName) 341diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UndefinedType1, diagName) 343diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_ForwardedTypeUnavailable3, diagName, binder.Compilation.Assembly, forwardedToAssembly) 503diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UndefinedTypeOrNamespace1, diagName) 512Binder.ReportDiagnostic(diagBag, typeSyntax, ErrorFactory.ErrorInfo(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, diagName))
Binding\Binder_XmlLiterals.vb (1)
1006ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, memberName, type)))
Binding\BindingDiagnosticBag.vb (2)
153Dim info = ErrorFactory.ErrorInfo(code) 159Dim info = ErrorFactory.ErrorInfo(code, args)
CommandLine\VisualBasicCommandLineParser.vb (17)
1888ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 1889ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedEOS), 1912ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 1913ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier), 1941ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 1942ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier), 1958ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 1959ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier), 2013diagnosticBuilder.Add(New DiagnosticWithInfo(ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, diag, parsedTokensAsString.ToString), Location.None)) 2022ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 2023ErrorFactory.ErrorInfo(If(atTheEndOrSeparator, ERRID.ERR_ExpectedExpression, ERRID.ERR_BadCCExpression)), 2043ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 2044ErrorFactory.ErrorInfo(err, value.ErrorArgs), 2065ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 2066ErrorFactory.ErrorInfo(ERRID.ERR_IllegalChar), 2075ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 2076ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedEOS),
CommandLine\VisualBasicCompiler.vb (9)
186consoleOutput.WriteLine(ErrorFactory.IdToString(ERRID.IDS_MSG_ADDMODULE, Culture), reference.Display) 188consoleOutput.WriteLine(ErrorFactory.IdToString(ERRID.IDS_MSG_ADDLINKREFERENCE, Culture), reference.Display) 190consoleOutput.WriteLine(ErrorFactory.IdToString(ERRID.IDS_MSG_ADDREFERENCE, Culture), reference.Display) 212consoleOutput.WriteLine(ErrorFactory.IdToString(ERRID.IDS_LogoLine1, Culture), GetToolName(), GetCompilerVersion()) 213consoleOutput.WriteLine(ErrorFactory.IdToString(ERRID.IDS_LogoLine2, Culture)) 218Return ErrorFactory.IdToString(ERRID.IDS_ToolName, Culture) 233consoleOutput.WriteLine(ErrorFactory.IdToString(ERRID.IDS_VBCHelp, Culture)) 237consoleOutput.WriteLine(ErrorFactory.IdToString(ERRID.IDS_LangVersions, Culture)) 324newDiagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_SymbolDefinedInAssembly, symbol, symbol.ContainingAssembly), diag.Location))
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
553Dim info As DiagnosticInfo = ErrorFactory.ErrorInfo(id, arguments)
Compilation\MethodCompiler.vb (7)
1152diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_SubNewCycle2, referencingMethod, referencedMethod)) 1162New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_SubNewCycle1, referencingMethod, 1978ErrorFactory.ErrorInfo(ERRID.ERR_NoUniqueConstructorOnBase2, containingType, containingType.BaseTypeNoUseSiteDiagnostics), 1983ErrorFactory.ErrorInfo(ERRID.ERR_RequiredNewCallTooMany2, defaultConstructorType, containingType), 2005ErrorFactory.ErrorInfo(ERRID.ERR_NoConstructorOnBase2, containingType, containingType.BaseTypeNoUseSiteDiagnostics), 2010ErrorFactory.ErrorInfo(ERRID.ERR_RequiredNewCall2, defaultConstructorType, containingType), 2019ErrorFactory.ErrorInfo(ERRID.ERR_NoAccessibleConstructorOnBase, containingType.BaseTypeNoUseSiteDiagnostics),
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
265diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_EncNoPIAReference, embeddedType.AdaptedNamedTypeSymbol), Location.None)
Emit\NoPia\EmbeddedTypesManager.vb (1)
287ReportDiagnostic(diagnostics, syntaxNodeOpt, ErrorFactory.ErrorInfo(id, args))
Emit\PEAssemblyBuilder.vb (1)
102context.Diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_CryptoHashFailed), NoLocation.Singleton))
Emit\PEModuleBuilder.vb (3)
147diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.WRN_ReferencedAssemblyDoesNotHaveStrongName, assembly), NoLocation.Singleton) 153diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.WRN_RefCultureMismatch, assembly, refIdentity.CultureName), NoLocation.Singleton) 170diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.WRN_ConflictingMachineAssembly, assembly), NoLocation.Singleton)
Emit\SymbolTranslator.vb (2)
145If(diagInfo, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)), 237ErrorFactory.ErrorInfo(ERRID.ERR_PredefinedValueTupleTypeMustBeStruct, namedTypeSymbol.MetadataName),
Errors\DiagnosticBagExtensions.vb (2)
26Dim info = ErrorFactory.ErrorInfo(code) 42Dim info = ErrorFactory.ErrorInfo(code, args)
Errors\DiagnosticFormatter.vb (1)
28Return diagnostic.Descriptor.HelpLinkUri = ErrorFactory.GetHelpLink(CType(diagnostic.Code, ERRID))
Errors\ErrorFactories.vb (3)
108Return New LocalizableResourceString(id.ToString(), ResourceManager, GetType(ErrorFactory)) 112Return New LocalizableResourceString(id.ToString() + s_titleSuffix, ResourceManager, GetType(ErrorFactory)) 116Return New LocalizableResourceString(id.ToString() + s_descriptionSuffix, ResourceManager, GetType(ErrorFactory))
Errors\LazyObsoleteDiagnosticInfo.vb (1)
40Interlocked.CompareExchange(_lazyActualObsoleteDiagnostic, If(info, ErrorFactory.VoidDiagnosticInfo), Nothing)
Errors\LocalizableErrorArgument.vb (1)
35Return ErrorFactory.IdToString(_id, DirectCast(formatProvider, CultureInfo))
Errors\MessageProvider.vb (7)
27Return ErrorFactory.IdToString(DirectCast(code, ERRID), language) 31Return ErrorFactory.GetMessageFormat(DirectCast(code, ERRID)) 35Return ErrorFactory.GetDescription(DirectCast(code, ERRID)) 39Return ErrorFactory.GetTitle(DirectCast(code, ERRID)) 43Return ErrorFactory.GetHelpLink(DirectCast(code, ERRID)) 47Return ErrorFactory.GetCategory(DirectCast(code, ERRID)) 89Return New VBDiagnostic(ErrorFactory.ErrorInfo(CType(code, ERRID), args), location)
GlobalImport.ImportDiagnosticInfo.vb (1)
22Dim msg = ErrorFactory.IdToString(ERRID.ERR_GeneralProjectImportsError3, TryCast(formatProvider, CultureInfo))
GlobalImport.vb (1)
113Return New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_UndefinedOrEmptyProjectNamespaceOrClass1, _importedName), NoLocation.Singleton)
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
567ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, methodName, type)), 625ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, propertyName, type)),
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
405Me._diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(code), node.Syntax.GetLocation()))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
181Me.Diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(code, args), node.Syntax.GetLocation()))
Parser\ParseConditional.vb (3)
342guid = guid.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.WRN_BadGUIDFormatExtChecksum)) 356checksum = checksum.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.WRN_BadChecksumValExtChecksum)) 361checksum = checksum.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.WRN_BadChecksumValExtChecksum))
Parser\ParseExpression.vb (2)
565InternalSyntaxFactory.MissingExpression.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.ERR_IllegalOperandInIIFCount)), 575InternalSyntaxFactory.MissingExpression.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.ERR_IllegalOperandInIIFCount)),
Parser\Parser.vb (4)
4440syntaxError = ErrorFactory.ErrorInfo(ERRID.ERR_BadConstraintSyntax) 6110Dim featureName = ErrorFactory.ErrorInfo(feature.GetResourceId()) 6143Return ErrorFactory.ErrorInfo( 6146ErrorFactory.ErrorInfo(feature.GetResourceId()),
Parser\ParseReportError.vb (2)
35Return DirectCast(syntax.AddError(ErrorFactory.ErrorInfo(ErrorId)), T) 39Return DirectCast(syntax.AddError(ErrorFactory.ErrorInfo(ErrorId, args)), T)
Parser\ParseXml.vb (4)
730Dim xml = contexts.Peek.CreateElement(missingEndElement, ErrorFactory.ErrorInfo(ERRID.ERR_MissingXmlEndTag)) 741element = contexts.Peek.CreateElement(endElement, ErrorFactory.ErrorInfo(ERRID.ERR_MissingXmlEndTag)) 767element = contexts.Peek.CreateElement(endElement, ErrorFactory.ErrorInfo(ERRID.ERR_MissingXmlEndTag)) 2416Return DirectCast(trivia.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_IllegalXmlWhiteSpace)), SyntaxTrivia)
Scanner\Scanner.vb (8)
579comment = comment.WithDiagnostics({ErrorFactory.ErrorInfo(ERRID.ERR_CommentsAfterLineContinuationNotAvailable1, 813trivia = DirectCast(trivia.SetDiagnostics({ErrorFactory.ErrorInfo(ERRID.ERR_Merge_conflict_marker_encountered)}), SyntaxTrivia) 1113commentTrivia = commentTrivia.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.WRN_XMLDocNotFirstOnLine)) 2120result = DirectCast(result.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_Overflow)), SyntaxToken) 2124result = DirectCast(result.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_Syntax)), SyntaxToken) 2611Dim StrTkErr = strTk.SetDiagnostics({ErrorFactory.ErrorInfo(ERRID.ERR_UnterminatedStringLiteral)}) 2691Dim errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_LanguageVersion, 2693ErrorFactory.ErrorInfo(feature.GetResourceId()),
Scanner\ScannerXml.vb (10)
929Dim errEmbedInfo = ErrorFactory.ErrorInfo(ERRID.ERR_QuotedEmbeddedExpression) 938Dim errInfo = ErrorFactory.ErrorInfo(If(isSingle, ERRID.ERR_ExpectedSQuote, ERRID.ERR_ExpectedQuote)) 1123name = name.WithDiagnostics(ErrorFactory.ErrorInfo(err, errChar, String.Format("&H{0:X}", errUnicode))) 1158Dim noSemicolonError = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedSColon) 1172Dim noSemicolonError = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedSColon) 1182Dim noSemicolonError = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedSColon) 1196Dim noSemicolonError = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedSColon) 1210Dim noSemicolonError = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedSColon) 1224Dim noSemicolonError = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedSColon) 1233Dim errInfo = ErrorFactory.ErrorInfo(ERRID.ERR_XmlEntityReference)
Scanner\TokenFactories.vb (1)
743Dim errResult1 = result1.AddError(ErrorFactory.ErrorInfo(errId))
Scanner\XmlTokenFactories.vb (3)
102diagnostic = ErrorFactory.ErrorInfo(id, xmlCh, String.Format("&H{0:X}", xmlChAsUnicode)) 104diagnostic = ErrorFactory.ErrorInfo(id) 297Return DirectCast(SyntaxFactory.XmlTextLiteralToken(text, text, precedingTrivia.Node, Nothing).SetDiagnostics({ErrorFactory.ErrorInfo(err)}), XmlTextTokenSyntax)
Semantics\Operators.vb (11)
336diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresBoolReturnType1, SyntaxFacts.GetText(SyntaxKind.IsTrueKeyword)), method.Locations(0)) 343diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresBoolReturnType1, SyntaxFacts.GetText(SyntaxKind.IsFalseKeyword)), method.Locations(0)) 361diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresIntegerParameter1, 391diagnosticsOpt.Add(ErrorFactory.ErrorInfo(targetMismatchError, method.ContainingSymbol), method.Locations(0)) 403diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionFromObject), method.Locations(0)) 410diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToObject), method.Locations(0)) 417diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionFromInterfaceType), method.Locations(0)) 424diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToInterfaceType), method.Locations(0)) 433diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConversionToSameType), method.Locations(0)) 442diagnosticsOpt.Add(ErrorFactory.ErrorInfo(If(targetType Is method.ContainingSymbol, 451diagnosticsOpt.Add(ErrorFactory.ErrorInfo(If(targetType Is method.ContainingSymbol,
Symbols\Attributes\AttributeData.vb (1)
244diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_SecurityAttributeMissingAction),
Symbols\Attributes\PEAttributeData.vb (3)
203ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)) 207ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, AttributeClass.MetadataName & "." & WellKnownMemberNames.InstanceConstructorName)) 209Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\Attributes\RetargetingAttributeData.vb (1)
92ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, AttributeClass.MetadataName & "." & WellKnownMemberNames.InstanceConstructorName))
Symbols\BaseTypeAnalysis.vb (10)
59Return ErrorFactory.ErrorInfo(ERRID.ERR_IllegalBaseTypeReferences3, this.GetKindText(), this, GetBaseTypeReferenceDetails(dependency)) 125Return ErrorFactory.ErrorInfo(ERRID.ERR_InheritanceCycle1, this, GetInheritanceDetails(dependency)) 128Return ErrorFactory.ErrorInfo(ERRID.ERR_InterfaceCycle1, this, GetInheritanceDetails(dependency)) 134Return ErrorFactory.ErrorInfo(ERRID.ERR_CircularBaseDependencies4, 139Return ErrorFactory.ErrorInfo(ERRID.ERR_NestedBase2, this.GetKindText(), this) 166details.Add(ErrorFactory.ErrorInfo(detailErrId, dependent.dependent, current.dependent)) 179details.Add(ErrorFactory.ErrorInfo(detailErrId, dependent.dependent, chain.Head.dependent)) 277Return ErrorFactory.ErrorInfo(ERRID.ERR_InheritanceCycleInImportedType1, this) 288Return ErrorFactory.ErrorInfo(ERRID.ERR_InheritanceCycleInImportedType1, this) 323Return ErrorFactory.ErrorInfo(ERRID.ERR_InheritanceCycleInImportedType1, this)
Symbols\ConstraintsHelper.vb (28)
122ErrorFactory.ErrorInfo(ERRID.ERR_RefAndClassTypeConstrCombined))) 139ErrorFactory.ErrorInfo(ERRID.ERR_ValueAndClassTypeConstrCombined))) 154ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintAlreadyExists1, constraintType))) 171ErrorFactory.ErrorInfo(ERRID.ERR_ClassConstraintNotInheritable1))) 184ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintIsRestrictedType1, constraintType))) 195ErrorFactory.ErrorInfo(ERRID.ERR_RefAndClassTypeConstrCombined))) 202ErrorFactory.ErrorInfo(ERRID.ERR_ValueAndClassTypeConstrCombined))) 209ErrorFactory.ErrorInfo(ERRID.ERR_MultipleClassConstraints1, typeParameter))) 231ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintCycle2, constraintTypeParameter, GetConstraintCycleInfo(inProgress)))) 243ErrorFactory.ErrorInfo(ERRID.ERR_TypeParamWithStructConstAsConst))) 255ErrorFactory.ErrorInfo(ERRID.ERR_ConstNotClassInterfaceOrTypeParam1, constraintType))) 319ErrorFactory.ErrorInfo( 337ErrorFactory.ErrorInfo( 348ErrorFactory.ErrorInfo( 359ErrorFactory.ErrorInfo( 664diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_RestrictedType1, typeArgument))) 688diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_UnmanagedConstraintNotSatisfied, typeArgument, typeParameter))) 710diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_GenericConstraintNotSatisfied2, typeArgument, constraintType))) 948diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadGenericParamForNewConstraint2, typeArgument, typeParameter))) 971diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_NoSuitableNewForNewConstraint2, typeArgument, typeParameter))) 974diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_MustInheritForNewConstraint2, typeArgument, typeParameter))) 977diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_NewConstraintCannotHaveRequiredMembers, typeParameter.ContainingSymbol, typeParameter, typeArgument))) 999diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadTypeArgForRefConstraint2, typeArgument, typeParameter))) 1023diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadTypeArgForStructConstraintNull, typeArgument))) 1026diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadTypeArgForStructConstraint2, typeArgument, typeParameter))) 1035diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_NullableDisallowedForStructConstr1, typeParameter))) 1144builder.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintCycleLink2, typeParameter, previous)) 1148builder(0) = ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintCycleLink2, cycle.Head, previous)
Symbols\EventSymbol.vb (3)
209useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedAssemblyEvent3, errorInfo.Arguments(0), Me)) 217useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedModuleEvent3, errorInfo.Arguments(0), Me)) 221useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, CustomSymbolDisplayFormatter.ShortErrorName(Me)))
Symbols\Metadata\PE\PEAssemblySymbol.vb (3)
69Private _lazyCachedCompilerFeatureRequiredDiagnosticInfo As DiagnosticInfo = ErrorFactory.EmptyDiagnosticInfo 283If _lazyCachedCompilerFeatureRequiredDiagnosticInfo Is ErrorFactory.EmptyDiagnosticInfo Then 287ErrorFactory.EmptyDiagnosticInfo)
Symbols\Metadata\PE\PEEventSymbol.vb (1)
71_lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedEvent1, Me))
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
68_lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedField1, Me))
Symbols\Metadata\PE\PEMethodSymbol.vb (5)
286InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me)))) 1039InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me)))) 1105errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me)) 1197errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me)) 1243errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_RequiredMembersInvalid, ContainingType)
Symbols\Metadata\PE\PEModuleSymbol.vb (3)
82Private _lazyCachedCompilerFeatureRequiredDiagnosticInfo As DiagnosticInfo = ErrorFactory.EmptyDiagnosticInfo 499If _lazyCachedCompilerFeatureRequiredDiagnosticInfo Is ErrorFactory.EmptyDiagnosticInfo Then 503ErrorFactory.EmptyDiagnosticInfo)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (3)
163_lazyCachedUseSiteInfo.Initialize(If(DeriveCompilerFeatureRequiredDiagnostic(), ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me))) 1310Return New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me)) 1340Return New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_NestingViolatesCLS1, Me))
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
77result._lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1, CustomSymbolDisplayFormatter.QualifiedName(result))) 123_lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1, CustomSymbolDisplayFormatter.QualifiedName(Me)))
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
88_lazyCachedBoundsUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me)) 200_lazyCachedBoundsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency:=Nothing, New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me))) 234_lazyCachedBoundsUseSiteInfo.InterlockedInitializeFromSentinel(primaryDependency:=Nothing, New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me)))
Symbols\Metadata\PE\PEUtilities.vb (1)
12Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedCompilerFeature, symbol, unsupportedFeature)
Symbols\MissingMetadataTypeSymbol.vb (4)
56Return ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedAssembly3, containingAssembly.Identity, arg) 62Return ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedModule3, containingModule.Name, Me) 65Return ErrorFactory.ErrorInfo(ERRID.ERR_TypeRefResolutionError3, Me, containingModule.Name) 69ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)) ' This is the best we can do at this point
Symbols\NonMissingModuleSymbol.vb (1)
103Return ErrorFactory.ErrorInfo(
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.vb (1)
72Return ErrorFactory.ErrorInfo(ERRID.ERR_AbsentReferenceToPIA1, CustomSymbolDisplayFormatter.QualifiedName(_firstCandidate))
Symbols\NoPiaIllegalGenericInstantiationSymbol.vb (1)
56Return ErrorFactory.ErrorInfo(ERRID.ERR_CannotUseGenericTypeAcrossAssemblyBoundaries, _underlyingSymbol)
Symbols\NoPiaMissingCanonicalTypeSymbol.vb (1)
94Return ErrorFactory.ErrorInfo(ERRID.ERR_AbsentReferenceToPIA1, _fullTypeName)
Symbols\ObsoleteAttributeHelpers.vb (5)
145Return ErrorFactory.ErrorInfo(ERRID.WRN_Experimental, New FormattedSymbol(symbol, SymbolDisplayFormat.VisualBasicErrorMessageFormat)) 163Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoletePropertyAccessor2, ERRID.WRN_UseOfObsoletePropertyAccessor2), data, 166Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoletePropertyAccessor3, ERRID.WRN_UseOfObsoletePropertyAccessor3), data, 171Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoleteSymbolNoMessage1, ERRID.WRN_UseOfObsoleteSymbolNoMessage1), data, symbol) 173Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoleteSymbol2, ERRID.WRN_UseOfObsoleteSymbol2), data, symbol, data.Message)
Symbols\PointerTypeSymbol.vb (1)
35Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
822Dim errorInfo = If(type.ErrorInfo, ErrorFactory.ErrorInfo(ERRID.ERR_InReferencedAssembly, If(type.ContainingAssembly?.Identity.GetDisplayName, "")))
Symbols\Source\ImplementsHelper.vb (1)
547ErrorFactory.ErrorInfo(ERRID.ERR_ImplementsWithConstraintMismatch3, implementingMethod, implementedMethod.ContainingType, implementedMethod),
Symbols\Source\OverrideHidingHelper.vb (17)
156diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NotOverridableRequiresOverrides), methodMember.Locations(0))) 164diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NotOverridableRequiresOverrides), propMember.Locations(0))) 187diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_MustOverridesInClass1, container.Name), container.Locations(0))) 249diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_MustInheritEventNotOverridden, 255diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_UnimplementedMustOverride, member.ContainingType, member)) 264diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_BaseOnlyClassesMustBeExplicit2, 406diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_SynthMemberShadowsSynthMember7, 420diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_MemberShadowsSynthMember6, 427diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_SynthMemberShadowsMember5, 444diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(id, 451diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_OverrideType5, 474diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_SynthMemberShadowsMustOverride5, 482diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_CantShadowAMustOverride1, hidingMember), 852diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_OverrideNotNeeded3, member.GetKindText(), member.Name), 860diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverriddenCandidate1, overriddenMemb.OriginalDefinition)) 863diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_AmbiguousOverrides3, 907diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_InAccessibleOverridingMethod5,
Symbols\Source\SourceAssemblySymbol.vb (2)
889bag.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_FriendRefNotEqualToThis, 894bag.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_FriendRefSigningMismatch,
Symbols\Source\SourceComplexParameterSymbol.vb (2)
334getErrorInfo = ErrorFactory.GetErrorInfo_ERR_StrictDisallowsImplicitArgs 336getErrorInfo = ErrorFactory.GetErrorInfo_WRN_ObjectAssumedVar1_WRN_MissingAsClauseinVarDecl
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
115getErrorInfo = ErrorFactory.GetErrorInfo_ERR_StrictDisallowsImplicitProc 117getErrorInfo = ErrorFactory.GetErrorInfo_WRN_ObjectAssumed1_WRN_MissingAsClauseinFunction
Symbols\Source\SourceMemberContainerTypeSymbol.vb (40)
394diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_VarianceInterfaceNesting), Locations(0))) 685AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceOutByValDisallowed1, type.Name)) 690ErrorFactory.ErrorInfo(If(inappropriateOut, 698AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceInReturnDisallowed1, type.Name)) 703AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceOutConstraintDisallowed1, type.Name)) 708ErrorFactory.ErrorInfo(If(inappropriateOut, 717AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceInReadOnlyPropertyDisallowed1, type.Name)) 722AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceOutWriteOnlyPropertyDisallowed1, type.Name)) 727ErrorFactory.ErrorInfo(If(inappropriateOut, 749ErrorFactory.ErrorInfo(If(inappropriateOut, 759ErrorFactory.ErrorInfo(If(inappropriateOut, 769ErrorFactory.ErrorInfo(If(inappropriateOut, 783ErrorFactory.ErrorInfo(If(inappropriateOut, 795ErrorFactory.ErrorInfo(If(inappropriateOut, 859AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowed2, 864AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowed2, 869AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowedForGeneric4, 878AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowedHere3, 884AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowedHereForGeneric5, 2154diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_RecordEmbeds2, 3392Dim diag = ErrorFactory.ErrorInfo(ERRID.ERR_MethodAlreadyImplemented2, 3416Dim diag = If(useSiteInfo.DiagnosticInfo, ErrorFactory.ErrorInfo(If(ifaceMember.IsShared, ERRID.ERR_UnimplementedSharedMember, ERRID.ERR_UnimplementedMember3), 3717diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_MatchingOperatorExpected2, 3846diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateProcDef1, firstMember), location) 3853diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateProcDefWithDifferentTupleNames2, firstMember, secondMember), location) 3857diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithByref2, firstMember, secondMember), location) 3861diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithReturnType2, firstMember, secondMember), location) 3865diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithArrayVsParamArray2, firstMember, secondMember), location) 3870diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithOptional2, firstMember, secondMember), location) 3882diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithDefault2, firstMember, secondMember), location) 3886diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadingPropertyKind2, firstMember, secondMember), location) 3912diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_InterfaceUnifiesWithInterface2, ERRID.ERR_InterfacePossiblyImplTwice2), 3916diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_InterfaceUnifiesWithBase3, ERRID.ERR_ClassInheritsInterfaceUnifiesWithBase3), 3921diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_BaseUnifiesWithInterfaces3, ERRID.ERR_ClassInheritsBaseUnifiesWithInterfaces3), 3927diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_InterfaceBaseUnifiesWithBase4, ERRID.ERR_ClassInheritsInterfaceBaseUnifiesWithBase4), 3961diag = ErrorFactory.ErrorInfo(ERRID.WRN_VarianceDeclarationAmbiguous3, 3993diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames2, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames2), 3997diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames3, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames3), 4002diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNamesReverse3, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNamesReverse3), 4008diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames4, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames4),
Symbols\Source\SourceMemberFieldSymbol.vb (3)
189getErrorInfo = ErrorFactory.GetErrorInfo_ERR_WithEventsRequiresClass 192getErrorInfo = ErrorFactory.GetErrorInfo_ERR_StrictDisallowImplicitObject 194getErrorInfo = ErrorFactory.GetErrorInfo_WRN_ObjectAssumedVar1_WRN_MissingAsClauseinVarDecl
Symbols\Source\SourceMethodSymbol.vb (7)
1618diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOptionalFirstArg), firstParam.Locations(0)) 1621diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodParamArrayFirstArg), firstParam.Locations(0)) 1624diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodUncallable1, Me.Name), Me.Locations(0)) 1634diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_InvalidOptionalParameterUsage1, "WebMethod"), Me.Locations(0)) 2287getErrorInfo = ErrorFactory.GetErrorInfo_ERR_StrictDisallowsImplicitProc 2290getErrorInfo = ErrorFactory.GetErrorInfo_WRN_ObjectAssumed1_WRN_MissingAsClauseinOperator 2292getErrorInfo = ErrorFactory.GetErrorInfo_WRN_ObjectAssumed1_WRN_MissingAsClauseinFunction
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2190diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionOnlyAllowedOnModuleSubOrFunction), Me.Locations(0)) 2243diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_InvalidAttributeUsage2, AttributeDescription.VisualBasicComClassAttribute.Name, Me.Name), Me.Locations(0))
Symbols\Source\SourceNamespaceSymbol.vb (3)
406Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_TypecharNotallowed), node.GetLocation()) 424Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_NamespaceCaseMismatch3, node.Identifier.ValueText, Me.Name, path), node.GetLocation()) 443Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NestedGlobalNamespace), node.GetLocation())
Symbols\Source\SourcePropertySymbol.vb (2)
366getErrorInfo = ErrorFactory.GetErrorInfo_ERR_StrictDisallowsImplicitProc 368getErrorInfo = ErrorFactory.GetErrorInfo_WRN_ObjectAssumedProperty1_WRN_MissingAsClauseinProperty
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
201ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, type.MetadataName & "." & methodName),
Symbols\Symbol.vb (4)
998useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedField1, CustomSymbolDisplayFormatter.ShortErrorName(Me))) 1001useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me))) 1004useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1, CustomSymbolDisplayFormatter.ShortErrorName(Me))) 1096useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty))
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
419diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_VariancePreventsSynthesizedEvents2,
Symbols\Tuples\TupleFieldSymbol.vb (1)
244Return New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_TupleInferredNamesNotAvailable, _name,
Symbols\Tuples\TupleTypeSymbol.vb (1)
833ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper,
Symbols\UnsupportedMetadataTypeSymbol.vb (1)
38Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\WellKnownMembers.vb (4)
106ctorError = ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, 114ctorError = ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionAttributeInvalid) 397delayedErrorInfo = Function(t) ErrorFactory.ErrorInfo(ERRID.ERR_ValueTupleTypeRefResolutionError1, t) 400delayedErrorInfo = Function(t) ErrorFactory.ErrorInfo(ERRID.ERR_ValueTupleResolutionAmbiguous3, t, capturedConflicts.Item1, capturedConflicts.Item2)
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (5)
133Dim diagnostic = ErrorFactory.ErrorInfo(errorId) 163Dim diagnostic = ErrorFactory.ErrorInfo(errorId) 215Dim diagnostic = ErrorFactory.ErrorInfo(errorId) 251Dim diagnostic = ErrorFactory.ErrorInfo(errorId) 276Return DirectCast(node.AddError(ErrorFactory.ErrorInfo(errorId)), TSyntax)
Syntax\SyntaxTreeDiagnosticEnumerator.vb (1)
60di = ErrorFactory.ErrorInfo(ERRID.WRN_XMLDocParseError1, di)
VisualBasicParseOptions.vb (2)
256builder.Add(Diagnostic.Create(ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 257ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier),