108 references to ErrorInfo
Microsoft.CodeAnalysis.VisualBasic (108)
Binding\Binder.vb (4)
869ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id)) 882ReportDiagnostic(diagBag, location, ErrorFactory.ErrorInfo(id)) 899ReportDiagnostic(diagBag, syntax, ErrorFactory.ErrorInfo(id)) 912ReportDiagnostic(diagBag, location, ErrorFactory.ErrorInfo(id))
Binding\Binder_Diagnostics.vb (1)
22Return ReportDiagnosticAndProduceBadExpression(diagBag, syntax, ErrorFactory.ErrorInfo(id))
Binding\Binder_Expressions.vb (9)
694ReportDiagnostic(diagnostics, node.Type, ErrorFactory.ErrorInfo(ERRID.ERR_VoidArrayDisallowed)) 1625ErrorFactory.ErrorInfo(ERRID.WRN_ArrayInitNoTypeObjectAssumed))) 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))) 2905Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_TypeParamQualifierDisallowed), left) 4959Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncLambda) 4964Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncVoidMethod) 4970Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitNotInAsyncMethodOrLambda)
Binding\Binder_Invocation.vb (2)
382Dim diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedProcedure) 1770Dim notMostSpecificMessage = ErrorFactory.ErrorInfo(ERRID.ERR_NotMostSpecificOverload)
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 (3)
287diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_NewIfNullOnNonClass) 679ReportDiagnostic(diagnostics, memberInitializerSyntax, ErrorFactory.ErrorInfo(ERRID.ERR_AggrInitInvalidForObject)) 965ReportDiagnostic(diagnostics, topLevelInitializer, ErrorFactory.ErrorInfo(ERRID.ERR_EmptyAggregateInitializer))
Binding\Binder_Operators.vb (3)
383ErrorFactory.ErrorInfo( 535ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ZeroDivide)) 538ReportDiagnostic(diagnostics, right.Syntax, ErrorFactory.ErrorInfo(ERRID.ERR_ConstantStringTooLong))
Binding\Binder_Statements.vb (2)
4490ErrorFactory.ErrorInfo(ERRID.ERR_UsingResourceVarNeedsInitializer)) 4572ErrorFactory.ErrorInfo(ERRID.ERR_UsingResourceVarCantBeArray))
Binding\BindingDiagnosticBag.vb (1)
153Dim info = ErrorFactory.ErrorInfo(code)
CommandLine\VisualBasicCommandLineParser.vb (7)
1889ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedEOS), 1913ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier), 1942ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier), 1959ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier), 2023ErrorFactory.ErrorInfo(If(atTheEndOrSeparator, ERRID.ERR_ExpectedExpression, ERRID.ERR_BadCCExpression)), 2066ErrorFactory.ErrorInfo(ERRID.ERR_IllegalChar), 2076ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedEOS),
Emit\PEAssemblyBuilder.vb (1)
102context.Diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_CryptoHashFailed), NoLocation.Singleton))
Errors\DiagnosticBagExtensions.vb (1)
26Dim info = ErrorFactory.ErrorInfo(code)
Errors\ErrorFactories.vb (11)
28Public Shared ReadOnly VoidDiagnosticInfo As DiagnosticInfo = ErrorInfo(ERRID.Void) 29Public Shared ReadOnly EmptyDiagnosticInfo As DiagnosticInfo = ErrorInfo(ERRID.ERR_None) 32Function() ErrorInfo(ERRID.ERR_WithEventsRequiresClass) 35Function() ErrorInfo(ERRID.ERR_StrictDisallowImplicitObject) 38Function() ErrorInfo(ERRID.WRN_ObjectAssumedVar1, ErrorInfo(ERRID.WRN_StaticLocalNoInference)) 41Function() ErrorInfo(ERRID.WRN_ObjectAssumedVar1, ErrorInfo(ERRID.WRN_MissingAsClauseinVarDecl)) 44Function() ErrorInfo(ERRID.ERR_StrictDisallowsImplicitProc) 47Function() ErrorInfo(ERRID.ERR_StrictDisallowsImplicitArgs) 50Function() ErrorInfo(ERRID.WRN_ObjectAssumed1, ErrorInfo(ERRID.WRN_MissingAsClauseinFunction)) 53Function() ErrorInfo(ERRID.WRN_ObjectAssumed1, ErrorInfo(ERRID.WRN_MissingAsClauseinOperator)) 56Function() ErrorInfo(ERRID.WRN_ObjectAssumedProperty1, ErrorInfo(ERRID.WRN_MissingAsClauseinProperty))
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
405Me._diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(code), 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 (3)
4440syntaxError = ErrorFactory.ErrorInfo(ERRID.ERR_BadConstraintSyntax) 6110Dim featureName = ErrorFactory.ErrorInfo(feature.GetResourceId()) 6146ErrorFactory.ErrorInfo(feature.GetResourceId()),
Parser\ParseReportError.vb (1)
35Return DirectCast(syntax.AddError(ErrorFactory.ErrorInfo(ErrorId)), 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 (6)
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)}) 2693ErrorFactory.ErrorInfo(feature.GetResourceId()),
Scanner\ScannerXml.vb (9)
929Dim errEmbedInfo = ErrorFactory.ErrorInfo(ERRID.ERR_QuotedEmbeddedExpression) 938Dim errInfo = ErrorFactory.ErrorInfo(If(isSingle, ERRID.ERR_ExpectedSQuote, ERRID.ERR_ExpectedQuote)) 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 (2)
104diagnostic = ErrorFactory.ErrorInfo(id) 297Return DirectCast(SyntaxFactory.XmlTextLiteralToken(text, text, precedingTrivia.Node, Nothing).SetDiagnostics({ErrorFactory.ErrorInfo(err)}), XmlTextTokenSyntax)
Semantics\Operators.vb (5)
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))
Symbols\Attributes\AttributeData.vb (1)
244diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_SecurityAttributeMissingAction),
Symbols\ConstraintsHelper.vb (6)
122ErrorFactory.ErrorInfo(ERRID.ERR_RefAndClassTypeConstrCombined))) 139ErrorFactory.ErrorInfo(ERRID.ERR_ValueAndClassTypeConstrCombined))) 171ErrorFactory.ErrorInfo(ERRID.ERR_ClassConstraintNotInheritable1))) 195ErrorFactory.ErrorInfo(ERRID.ERR_RefAndClassTypeConstrCombined))) 202ErrorFactory.ErrorInfo(ERRID.ERR_ValueAndClassTypeConstrCombined))) 243ErrorFactory.ErrorInfo(ERRID.ERR_TypeParamWithStructConstAsConst)))
Symbols\Source\OverrideHidingHelper.vb (2)
156diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NotOverridableRequiresOverrides), methodMember.Locations(0))) 164diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NotOverridableRequiresOverrides), propMember.Locations(0)))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
394diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_VarianceInterfaceNesting), Locations(0)))
Symbols\Source\SourceMethodSymbol.vb (2)
1638diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOptionalFirstArg), firstParam.Locations(0)) 1641diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodParamArrayFirstArg), firstParam.Locations(0))
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2190diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionOnlyAllowedOnModuleSubOrFunction), Me.Locations(0))
Symbols\Source\SourceNamespaceSymbol.vb (2)
406Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_TypecharNotallowed), node.GetLocation()) 443Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NestedGlobalNamespace), node.GetLocation())
Symbols\WellKnownMembers.vb (1)
114ctorError = ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionAttributeInvalid)
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)
VisualBasicParseOptions.vb (1)
257ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier),