119 references to ErrorInfo
Microsoft.CodeAnalysis.VisualBasic (119)
Binding\Binder.vb (4)
873ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id, args)) 886ReportDiagnostic(diagBag, location, ErrorFactory.ErrorInfo(id, args)) 903ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id, args)) 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_Diagnostics.vb (2)
32Return ReportDiagnosticAndProduceBadExpression(diagBag, syntax, ErrorFactory.ErrorInfo(id, args)) 54Return ReportDiagnosticAndProduceErrorTypeSymbol(diagBag, syntax, ErrorFactory.ErrorInfo(id, args))
Binding\Binder_Expressions.vb (2)
2526errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_PlatformDoesntSupport, MissingRuntimeMemberDiagnosticHelper.MyVBNamespace) 2528errorInfo = ErrorFactory.ErrorInfo(If(Me.IsInQuery, ERRID.ERR_QueryNameNotDeclared, ERRID.ERR_NameNotDeclared1),
Binding\Binder_Invocation.vb (1)
1803diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate1, bestSymbol))
Binding\Binder_ObjectInitializer.vb (4)
379ReportDiagnostic(diagnostics, If(typeNode.IsKind(SyntaxKind.QualifiedName), DirectCast(typeNode, QualifiedNameSyntax).Right, typeNode), ErrorFactory.ErrorInfo(ERRID.ERR_NoViableOverloadCandidates1, "New")) 769ErrorFactory.ErrorInfo(ERRID.ERR_SharedMemberAggrMemberInit1, identifierName)) 776ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateAggrMemberInit1, identifierName)) 787ErrorFactory.ErrorInfo(ERRID.ERR_NonFieldPropertyAggrMemberInit1, identifierName))
Binding\Binder_Query.vb (1)
3553Dim errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_EqualsOperandIsBad, outerNames, innerNames)
Binding\Binder_Statements.vb (5)
2376ReportDiagnostic(diagnostics, node.EventExpression, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, method)) 4661ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName)) 4674ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName)) 4680ErrorFactory.ErrorInfo(ERRID.WRN_MutableGenericStructureInUsing, symbolName)) 4685ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName))
Binding\Binder_Symbols.vb (4)
322diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_ObsoleteAsAny, diagName) 341diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UndefinedType1, diagName) 503diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UndefinedTypeOrNamespace1, diagName) 512Binder.ReportDiagnostic(diagBag, typeSyntax, ErrorFactory.ErrorInfo(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, diagName))
Binding\BindingDiagnosticBag.vb (1)
159Dim info = ErrorFactory.ErrorInfo(code, args)
CommandLine\VisualBasicCommandLineParser.vb (1)
2013diagnosticBuilder.Add(New DiagnosticWithInfo(ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, diag, parsedTokensAsString.ToString), Location.None))
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
553Dim info As DiagnosticInfo = ErrorFactory.ErrorInfo(id, arguments)
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\SymbolTranslator.vb (1)
145If(diagInfo, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)),
Errors\DiagnosticBagExtensions.vb (1)
42Dim info = ErrorFactory.ErrorInfo(code, args)
Errors\ErrorFactories.vb (2)
71Return ErrorInfo(id, SyntaxFacts.GetText(syntaxToken.Kind)) 75Return ErrorInfo(id, SyntaxFacts.GetText(syntaxTokenKind))
Errors\MessageProvider.vb (1)
89Return New VBDiagnostic(ErrorFactory.ErrorInfo(CType(code, ERRID), args), location)
GlobalImport.vb (1)
113Return New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_UndefinedOrEmptyProjectNamespaceOrClass1, _importedName), NoLocation.Singleton)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
181Me.Diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(code, args), node.Syntax.GetLocation()))
Parser\ParseReportError.vb (1)
39Return DirectCast(syntax.AddError(ErrorFactory.ErrorInfo(ErrorId, args)), T)
Scanner\Scanner.vb (1)
579comment = comment.WithDiagnostics({ErrorFactory.ErrorInfo(ERRID.ERR_CommentsAfterLineContinuationNotAvailable1,
Scanner\ScannerXml.vb (1)
1123name = name.WithDiagnostics(ErrorFactory.ErrorInfo(err, errChar, String.Format("&H{0:X}", errUnicode)))
Scanner\XmlTokenFactories.vb (1)
102diagnostic = ErrorFactory.ErrorInfo(id, xmlCh, String.Format("&H{0:X}", xmlChAsUnicode))
Semantics\Operators.vb (3)
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,
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 (5)
139Return ErrorFactory.ErrorInfo(ERRID.ERR_NestedBase2, this.GetKindText(), this) 166details.Add(ErrorFactory.ErrorInfo(detailErrId, dependent.dependent, current.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 (16)
154ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintAlreadyExists1, constraintType))) 184ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintIsRestrictedType1, constraintType))) 209ErrorFactory.ErrorInfo(ERRID.ERR_MultipleClassConstraints1, typeParameter))) 255ErrorFactory.ErrorInfo(ERRID.ERR_ConstNotClassInterfaceOrTypeParam1, constraintType))) 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))
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 (1)
1243errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_RequiredMembersInvalid, ContainingType)
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\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\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\NoPiaIllegalGenericInstantiationSymbol.vb (1)
56Return ErrorFactory.ErrorInfo(ERRID.ERR_CannotUseGenericTypeAcrossAssemblyBoundaries, _underlyingSymbol)
Symbols\NoPiaMissingCanonicalTypeSymbol.vb (1)
94Return ErrorFactory.ErrorInfo(ERRID.ERR_AbsentReferenceToPIA1, _fullTypeName)
Symbols\ObsoleteAttributeHelpers.vb (1)
145Return ErrorFactory.ErrorInfo(ERRID.WRN_Experimental, New FormattedSymbol(symbol, SymbolDisplayFormat.VisualBasicErrorMessageFormat))
Symbols\PointerTypeSymbol.vb (1)
35Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\Source\OverrideHidingHelper.vb (5)
187diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_MustOverridesInClass1, container.Name), container.Locations(0))) 255diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_UnimplementedMustOverride, member.ContainingType, member)) 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))
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\SourceMemberContainerTypeSymbol.vb (18)
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)) 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, 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)
Symbols\Source\SourceMethodSymbol.vb (2)
1624diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodUncallable1, Me.Name), Me.Locations(0)) 1634diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_InvalidOptionalParameterUsage1, "WebMethod"), Me.Locations(0))
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
201ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, type.MetadataName & "." & methodName),
Symbols\Symbol.vb (1)
1096useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty))
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 (1)
397delayedErrorInfo = Function(t) ErrorFactory.ErrorInfo(ERRID.ERR_ValueTupleTypeRefResolutionError1, t)