Analysis\FlowAnalysis\DataFlowPass.vb (17)
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"))
1182Dim warning As ERRID = Nothing
1197warning = If(rwContext = ReadWriteContext.ByRefArgument, ERRID.WRN_DefAsgUseNullRefByRef, ERRID.WRN_DefAsgUseNullRef)
1201warning = If(rwContext = ReadWriteContext.ByRefArgument, ERRID.WRN_DefAsgUseNullRefByRefStr, ERRID.WRN_DefAsgUseNullRefStr)
1242Dim warning As ERRID = Nothing
1253warning = ERRID.WRN_DefAsgNoRetValOpVal1
1255warning = ERRID.WRN_DefAsgNoRetValPropVal1
1258warning = ERRID.WRN_DefAsgNoRetValFuncVal1
1265warning = ERRID.WRN_DefAsgNoRetValOpRef1
1267warning = ERRID.WRN_DefAsgNoRetValPropRef1
1270warning = ERRID.WRN_DefAsgNoRetValFuncRef1
1283warning = ERRID.WRN_DefAsgNoRetValPropRef1
1295warning = ERRID.WRN_DefAsgNoRetValWinRtEventVal1
1298warning = ERRID.WRN_DefAsgNoRetValFuncRef1
Binding\Binder.vb (13)
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))
868Public Shared Sub ReportDiagnostic(diagBag As DiagnosticBag, syntax As SyntaxNodeOrToken, id As ERRID)
872Public Shared Sub ReportDiagnostic(diagBag As DiagnosticBag, syntax As SyntaxNodeOrToken, id As ERRID, ParamArray args As Object())
881Public Shared Sub ReportDiagnostic(diagBag As DiagnosticBag, location As Location, id As ERRID)
885Public Shared Sub ReportDiagnostic(diagBag As DiagnosticBag, location As Location, id As ERRID, ParamArray args As Object())
898Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, id As ERRID)
902Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, syntax As SyntaxNodeOrToken, id As ERRID, ParamArray args As Object())
911Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, id As ERRID)
915Public Shared Sub ReportDiagnostic(diagBag As BindingDiagnosticBag, location As Location, id As ERRID, ParamArray args As Object())
961ReportDiagnostic(diagnostics, node, ERRID.ERR_BadAbstractStaticMemberAccess)
967ReportDiagnostic(diagnostics, node, ERRID.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation)
974ReportDiagnostic(diagnostics, node, ERRID.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember)
Binding\Binder_AnonymousTypes.vb (9)
33ReportDiagnostic(diagnostics, field.Location, ERRID.ERR_RestrictedType1, restrictedType)
184ReportDiagnostic(diagnostics, fieldSyntax, ERRID.ERR_AnonymousTypeDisallowsTypeChar)
195ReportDiagnostic(diagnostics, fieldSyntax, ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateAnonTypeMemberName1, fieldName))
253ReportDiagnostic(diagnostics, initExpression, ERRID.ERR_RestrictedType1, restrictedType)
410ERRID.ERR_TypeOrMemberNotGeneric1,
425ReportDiagnostic(diagnostics, node, ERRID.ERR_AnonymousTypePropertyOutOfOrder1, name)
433ReportDiagnostic(diagnostics, node, ERRID.ERR_CannotLiftAnonymousType1, node.Name.Identifier.ValueText)
461ReportDiagnostic(diagnostics, node, ERRID.ERR_NameNotMemberOfAnonymousType2, name, StringConstants.AnonymousTypeName)
468ReportDiagnostic(diagnostics, node, ERRID.ERR_NoDefaultNotExtend1, StringConstants.AnonymousTypeName)
Binding\Binder_Attributes.vb (28)
175Dim errorId As ERRID
179errorId = ERRID.ERR_UnrecognizedType
182errorId = ERRID.ERR_AttrCannotBeGenerics
185errorId = ERRID.ERR_UnrecognizedType
194errorId = ERRID.ERR_AttrCannotBeGenerics
198errorId = ERRID.ERR_AttributeMustBeClassNotStruct1
202errorId = ERRID.ERR_AttributeMustInheritSysAttr
210errorId = ERRID.ERR_AttributeCannotBeAbstract
277ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NoViableOverloadCandidates1, "New"))
327ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_BadAttributeConstructor1, param.Type)
330ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_BadAttributeConstructor2, param.Type)
336ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_BadAttributeNonPublicType1, param.Type)
343ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_BadAttributeNonPublicContType2, param.Type, container)
359ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_BadAttributeNonPublicConstructor)
477ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_NoNonIndexProperty1, sym.Name)
482ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_InaccessibleMember3,
499ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_AttrAssignmentNotFieldOrProp1, identifierName.Identifier.ValueText)
504ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_BadAttributeNonPublicProperty1, sym.Name)
510ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_BadAttributeSharedProperty1, sym.Name)
515ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_BadAttributeReadOnlyProperty1, sym.Name)
521ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_BadAttributePropertyType1, sym.Name)
545ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_PropertyOrFieldNotDefined1, identifierName.Identifier.ValueText)
766ReportDiagnostic(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, conv.Operand.Type, conv.Type)
780ReportDiagnostic(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, conv.Operand.Type, conv.Type)
795ReportDiagnostic(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, If(conv.Operand.Type, _binder.Compilation.GetSpecialType(SpecialType.System_Object)), conv.Type)
819ReportDiagnostic(diagBag, node.Syntax, ERRID.ERR_RequiredConstExpr)
839Dim diagInfo = New BadSymbolDiagnostic(getTypeArgument, ERRID.ERR_OpenTypeDisallowed)
864ReportDiagnostic(diag, initializerOpt.Syntax, ERRID.ERR_MissingValuesForArraysInApplAttrs)
Binding\Binder_Constraints.vb (8)
53ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MultipleNewConstraints)
55ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NewAndValueConstraintsCombined)
63ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MultipleReferenceConstraints)
65ReportDiagnostic(diagnostics, syntax, ERRID.ERR_RefAndValueConstraintsCombined)
73ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MultipleValueConstraints)
75ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NewAndValueConstraintsCombined)
77ReportDiagnostic(diagnostics, syntax, ERRID.ERR_RefAndValueConstraintsCombined)
88ReportDiagnostic(diagnostics, syntax, ERRID.ERR_UnrecognizedType)
Binding\Binder_Conversions.vb (61)
123ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_RestrictedConversion1, sourceType)
137ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_IdentityDirectCastForFloat)
140ReportDiagnostic(diagnostics, argument.Syntax, ERRID.WRN_ObsoleteIdentityDirectCastForValueType)
236ReportDiagnostic(diagnostics, If(castSyntax IsNot Nothing, castSyntax.Type, node), ERRID.ERR_TryCastOfValueType1, targetType)
241ReportDiagnostic(diagnostics, If(castSyntax IsNot Nothing, castSyntax.Type, node), ERRID.ERR_TryCastOfUnconstrainedTypeParam1, targetType)
246ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_RestrictedConversion1, sourceType)
502ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_RestrictedConversion1, sourceType)
515ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_StrictArgumentCopyBackNarrowing3,
518ReportDiagnostic(diagnostics, argument.Syntax, ERRID.WRN_ImplicitConversionCopyBack,
535Dim err As ERRID = ERRID.ERR_NarrowingConversionDisallowed2
539err = ERRID.ERR_AmbiguousCastConversion2
543err = ERRID.ERR_NarrowingConversionCollection2
557Dim wrnId1 As ERRID = ERRID.WRN_ImplicitConversionSubst1
558Dim wrnId2 As ERRID = ERRID.WRN_ImplicitConversion2
561wrnId2 = ERRID.WRN_AmbiguousCastConversion2
581ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_ExpressionOverflow1, errorTargetType)
743ReportDiagnostic(diagnostics, location, ERRID.WRN_ImplicitConversionSubst1,
744ErrorFactory.ErrorInfo(ERRID.WRN_VarianceIEnumerableSuggestion3, sourceType, targetType, suggestion))
746ReportDiagnostic(diagnostics, location, ERRID.ERR_VarianceIEnumerableSuggestion3, sourceType, targetType, suggestion)
899ReportDiagnostic(diagnostics, location, ERRID.WRN_ImplicitConversionSubst1,
901ERRID.WRN_VarianceConversionFailedOut6,
902ERRID.WRN_VarianceConversionFailedIn6),
911ERRID.ERR_VarianceConversionFailedOut6,
912ERRID.ERR_VarianceConversionFailedIn6),
945ReportDiagnostic(diagnostics, location, ERRID.WRN_ImplicitConversionSubst1,
947ERRID.WRN_VarianceConversionFailedTryOut4,
948ERRID.WRN_VarianceConversionFailedTryIn4),
955ERRID.ERR_VarianceConversionFailedTryOut4,
956ERRID.ERR_VarianceConversionFailedTryIn4),
1134ReportDiagnostic(diagnostics, argumentSyntax, ERRID.WRN_RecursiveOperatorCall, convKind.Value)
1220ReportDiagnostic(diagnostics, addressOfExpression.Syntax, ERRID.ERR_AddressOfNotDelegate1, targetType)
1333ReportDiagnostic(diagnostics, unboundLambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetType)
1339ReportDiagnostic(diagnostics, unboundLambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetDelegateType)
1369If(unboundLambda.IsFunctionLambda, ERRID.ERR_LambdaBindingMismatch1, ERRID.ERR_LambdaBindingMismatch2),
1411Dim err As ERRID
1414err = ERRID.ERR_LambdaBindingMismatch1
1416err = ERRID.ERR_LambdaBindingMismatch2
1507ReportDiagnostic(diagnostics, lambda.Syntax, ERRID.ERR_LambdaNotCreatableDelegate1, targetType)
1510ReportDiagnostic(diagnostics, lambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetType)
1515ReportDiagnostic(diagnostics, lambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetDelegateType)
1536ReportDiagnostic(diagnostics, lambda.Syntax, ERRID.ERR_LambdaBindingMismatch1, targetDelegateType)
1560ERRID.ERR_RestrictedType1, restrictedType)
1578ReportDiagnostic(diagnostics, location, ERRID.ERR_RestrictedType1, restrictedType)
1716ReportDiagnostic(diagnostics, location, ERRID.WRN_UseValueForXmlExpression3, sourceType, targetType, sourceType)
1718ReportDiagnostic(diagnostics, location, ERRID.WRN_InterfaceConversion2, sourceType, targetType)
1745ReportDiagnostic(diagnostics, location, ERRID.ERR_ConvertArrayRankMismatch2, sourceType, targetType)
1748ReportDiagnostic(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType)
1757ReportDiagnostic(diagnostics, location, ERRID.ERR_ConvertObjectArrayMismatch3, sourceType, targetType, sourceElement)
1762ReportDiagnostic(diagnostics, location, ERRID.ERR_ConvertArrayMismatch4, sourceType, targetType, sourceElement, targetElement)
1765ReportDiagnostic(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType)
1770ReportDiagnostic(diagnostics, location, ERRID.ERR_DateToDoubleConversion)
1773ReportDiagnostic(diagnostics, location, ERRID.ERR_DoubleToDateConversion)
1776ReportDiagnostic(diagnostics, location, ERRID.ERR_IntegralToCharTypeMismatch1, sourceType)
1779ReportDiagnostic(diagnostics, location, ERRID.ERR_CharToIntegralTypeMismatch1, targetType)
1782ReportDiagnostic(diagnostics, location, ERRID.ERR_CopyBackTypeMismatch3,
1786ReportDiagnostic(diagnostics, location, ERRID.ERR_TypeMismatchForXml3, sourceType, targetType, sourceType)
1789ReportDiagnostic(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType)
Binding\Binder_Delegates.vb (19)
57ReportDiagnostic(diagnostics, addressOfSyntax.Operand, ERRID.ERR_AddressOfOperandNotMethod)
67ReportDiagnostic(diagnostics, addressOfSyntax.Operand, ERRID.ERR_InvalidConstructorCall)
199ERRID.ERR_NoDirectDelegateConstruction1,
232ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotCreatableDelegate1, targetType)
237ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotDelegate1, targetType)
262ReportDiagnostic(diagnostics, syntaxTree, ERRID.ERR_UnsupportedMethod1, targetType)
291ERRID.ERR_MyBaseAbstractCall1,
292ERRID.ERR_MyClassAbstractCall1),
311ERRID.ERR_AddressOfNullableMethod,
348If useSiteInfo.DiagnosticInfo?.Code = ERRID.ERR_UnsupportedMethod1 Then
349useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, delegateType))
731ERRID.ERR_DelegateBindingMismatchStrictOff2,
738ERRID.ERR_DelegateBindingMismatchStrictOff3,
755ERRID.ERR_DelegateBindingIncompatible2,
762ERRID.ERR_DelegateBindingIncompatible3,
930diagnostics.Add(ERRID.ERR_ParamArrayIllegal1, location, GetDelegateOrEventKeywordText(container))
937diagnostics.Add(ERRID.ERR_OptionalIllegal1, location, GetDelegateOrEventKeywordText(container))
1036ReportDiagnostic(diagnostics, addressOfExpression.MethodGroup.Syntax, ERRID.ERR_NoPartialMethodInAddressOf1, target)
1259ReportDiagnostic(diagnostics, syntaxNode, ERRID.WRN_UnobservedAwaitableDelegate)
Binding\Binder_Expressions.vb (125)
346ReportDiagnostic(diagnostics, nameSyntax, ERRID.ERR_TupleLiteralDisallowsTypeChar)
560Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleReservedElementNameAnyPosition, name)
564Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleReservedElementName, name, reserved)
568Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleDuplicateElementName)
673ReportDiagnostic(diagnostics, node.Type, ErrorFactory.ErrorInfo(ERRID.ERR_VoidArrayDisallowed))
717ReportDiagnostic(diagnostics, group.TypeArgumentsOpt.Syntax, ERRID.ERR_MethodTypeArgsUnexpected)
767ReportDiagnostic(diagnostics, node.Expression, ERRID.ERR_TypeOfRequiresReferenceType1, operandType)
777ReportDiagnostic(diagnostics, node, ERRID.ERR_TypeOfExprAlwaysFalse2, operandType, targetType)
955ReportDiagnostic(diagnostics, access.Syntax, ERRID.ERR_CannotBeMadeNullable1, resultType)
981ReportDiagnostic(diagnostics, group.Syntax, ERRID.ERR_InvalidConstructorCall)
1009ReportDiagnostic(diagnostics, expr.Syntax, ERRID.ERR_CannotCallEvent1, DirectCast(expr, BoundEventAccess).EventSymbol)
1013ReportDiagnostic(diagnostics, expr.Syntax, ERRID.ERR_NamespaceNotExpression1, DirectCast(expr, BoundNamespaceExpression).NamespaceSymbol)
1017ReportDiagnostic(diagnostics, expr.Syntax, ERRID.ERR_VoidValue, DirectCast(expr, BoundLabel).Label.Name)
1121ReportDiagnostic(diagnostics, typeExpr.Syntax, ERRID.ERR_CantReferToMyGroupInsideGroupType1, classType)
1186Private Shared Function GetTypeNotExpressionErrorId(type As TypeSymbol) As ERRID
1190Return ERRID.ERR_ClassNotExpression1
1193Return ERRID.ERR_InterfaceNotExpression1
1196Return ERRID.ERR_EnumNotExpression1
1199Return ERRID.ERR_StructureNotExpression1
1204Return ERRID.ERR_TypeNotExpression1
1239ReportDiagnostic(diagnostics, syntax, ERRID.ERR_VoidValue)
1247ReportDiagnostic(diagnostics, syntax, ERRID.ERR_VoidValue)
1255ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoGetProperty1, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1268ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoAccessibleGet, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1282ReportDiagnostic(diagnostics, syntax, ERRID.ERR_VoidValue)
1435ReportDiagnostic(diagnostics, address.MethodGroup.Syntax, ERRID.ERR_NoViableOverloadCandidates1,
1458ReportDiagnostic(diagnostics, expr.Syntax, ERRID.ERR_VoidValue)
1480ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitNoType)
1584ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_RestrictedType1, targetElementType)
1587ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitNoType)
1593ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitNoTypeObjectDisallowed)
1595ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitTooManyTypesObjectDisallowed)
1599ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1,
1600ErrorFactory.ErrorInfo(ERRID.WRN_ArrayInitNoTypeObjectAssumed)))
1602ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1,
1603ErrorFactory.ErrorInfo(ERRID.WRN_ArrayInitTooManyTypesObjectAssumed)))
1764Dim err As ERRID
1767err = ERRID.ERR_CantAssignToConst
1770err = ERRID.ERR_ReadOnlyAssignment
1773err = ERRID.ERR_LValueRequired
2103ReportDiagnostic(diagnostics, node.FirstExpression, ERRID.ERR_IllegalCondTypeInIIF)
2165ReportDiagnostic(diagnostics, node, ERRID.ERR_IfNoType)
2172ReportDiagnostic(diagnostics, node, ERRID.ERR_IfNoTypeObjectDisallowed)
2176ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_IfNoTypeObjectAssumed)))
2182ReportDiagnostic(diagnostics, node, ERRID.ERR_IfTooManyTypesObjectDisallowed)
2186ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_IfTooManyTypesObjectAssumed)))
2225Private Function CheckMeOrMyBaseOrMyClassInSharedOrDisallowedContext(implicitReference As Boolean, <Out()> ByRef errorId As ERRID) As Boolean
2235errorId = ERRID.ERR_KeywordNotAllowedInScript
2242ERRID.ERR_BadInstanceMemberAccess,
2244ERRID.ERR_UseOfKeywordFromModule1,
2245ERRID.ERR_UseOfKeywordNotInInstanceMethod1))
2249errorId = If(implicitReference, ERRID.ERR_InvalidImplicitMeReference, ERRID.ERR_InvalidMeReference)
2260Private Function CanAccessMyBase(implicitReference As Boolean, <Out()> ByRef errorId As ERRID) As Boolean
2268errorId = ERRID.ERR_UseOfKeywordFromStructure1
2280Private Function CanAccessMeOrMyClass(implicitReference As Boolean, <Out()> ByRef errorId As ERRID) As Boolean
2289Friend Function CanAccessMe(implicitReference As Boolean, <Out()> ByRef errorId As ERRID) As Boolean
2300Private Function CanAccessMyClass(implicitReference As Boolean, <Out()> ByRef errorId As ERRID) As Boolean
2304errorId = ERRID.ERR_MyClassNotInClass
2312Dim err As ERRID = Nothing
2335Dim err As ERRID = Nothing
2347Dim err As ERRID = Nothing
2486Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ERRID.ERR_XmlPrefixNotExpression, name)
2501errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_PlatformDoesntSupport, MissingRuntimeMemberDiagnosticHelper.MyVBNamespace)
2503errorInfo = ErrorFactory.ErrorInfo(If(Me.IsInQuery, ERRID.ERR_QueryNameNotDeclared, ERRID.ERR_NameNotDeclared1),
2621Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ERRID.ERR_BadWithRef)
2719Dim err As ERRID = Nothing
2789diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ConstructorNotFound1, leftTypeSymbol), left)
2812diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ConstructorNotFound1, namedLeftTypeSymbol), left)
2818ReportDiagnostic(diagnostics, node, ERRID.ERR_InvalidConstructorCall)
2871Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, rightName, ns), left)
2878Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_TypeParamQualifierDisallowed), left)
2890Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, rightName, type), left)
2931Return ReportDiagnosticAndProduceBadExpression(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, rightName, type), left)
3003ReportDiagnostic(diagnostics, node, ERRID.ERR_UseOfLocalBeforeDeclaration1, localSymbol)
3023ReportDiagnostic(diagnostics, node, ERRID.ERR_CircularEvaluation1, localSymbol)
3025ReportDiagnostic(diagnostics, node, ERRID.ERR_CircularInference1, localSymbol)
3224ReportDiagnostic(diagnostics, node, ERRID.ERR_BadResumableAccessReturnVariable)
3244ReportDiagnostic(diagnostics, node, ERRID.WRN_LiftControlVariableQuery, localSymbol.Name)
3246ReportDiagnostic(diagnostics, node, ERRID.WRN_LiftControlVariableLambda, localSymbol.Name)
3519ERRID.ERR_InaccessibleReturnTypeOfMember2,
3562ReportDiagnostic(diagnostics, node, ERRID.ERR_LabelNotDefined1, labelName)
3627ReportDiagnostic(diagnostics, node, ERRID.WRN_SharedMemberThroughInstance)
3651ReportDiagnostic(diagnostics, node, ERRID.ERR_ObjectReferenceNotSupplied)
3656Dim errorId As ERRID = Nothing
3717ReportDiagnosticAndProduceBadExpression(diagnostics, node, ERRID.ERR_BadWithRef),
3812ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoDefaultNotExtend1, type)
3815ReportDiagnostic(diagnostics, syntax, ERRID.ERR_StructureNoDefault1, type)
3820ReportDiagnostic(diagnostics, syntax, ERRID.ERR_InterfaceNoDefault1, type)
3826ReportDiagnostic(diagnostics, expr.Syntax, ERRID.ERR_QualNotObjectRecord1, expr.Type)
3833ReportDiagnostic(diagnostics, expr.Syntax, ERRID.ERR_DefaultMemberNotProperty1, expr.Type)
3856ReportDiagnostic(diagnostics, nodeOrToken, ERRID.ERR_TypecharNoMatch2, typeCharacterString, type)
3878ReportDiagnostic(diagnostics, name, ERRID.ERR_TypecharNoMatch2, typeCharacterString, type)
3906ReportDiagnostic(diagnostics, node, ERRID.ERR_NamedSubscript)
3912Dim err As ERRID
3914err = ERRID.ERR_TooManyIndices
3916err = ERRID.ERR_TooFewIndices
4240boundExpression = ReportDiagnosticAndProduceBadExpression(diagnostics, expressionSyntax, ERRID.ERR_ArrayInitializerTooManyDimensions)
4259ReportDiagnostic(diagnostics, expr, ERRID.ERR_ArrayInitializerTooFewDimensions)
4273ReportDiagnostic(diagnostics, node, ERRID.ERR_ArrayInitializerForNonConstDim)
4277ReportDiagnostic(diagnostics, node, ERRID.ERR_InitializerTooManyElements1, initializers.Count - curSize.Size)
4281ReportDiagnostic(diagnostics, node, ERRID.ERR_InitializerTooFewElements1, curSize.Size - initializers.Count)
4298ReportDiagnostic(diagnostics, rangeArgument.LowerBound, ERRID.ERR_OnlyNullLowerBound)
4344ReportDiagnostic(diagnostics, argumentSyntax, ERRID.ERR_NamedSubscript)
4356ReportDiagnostic(diagnostics, argumentSyntax, ERRID.ERR_MissingSubscript)
4383ReportDiagnostic(diagnostics, argumentSyntax, ERRID.ERR_NegativeArraySize)
4616ReportDiagnostic(diagnostics, node.AwaitKeyword, ERRID.ERR_BadAsyncInQuery)
4642ReportDiagnostic(diagnostics, operand.Syntax, ERRID.ERR_CantAwaitAsyncSub1, method.Name)
4650ReportDiagnostic(diagnostics, node, ERRID.ERR_BadAwaitNothing)
4655ReportDiagnostic(diagnostics, node, ERRID.ERR_StrictDisallowsLateBinding)
4658ReportDiagnostic(diagnostics, node, ERRID.WRN_LateBindingResolution)
4859ReportDiagnostic(diagnostics, node, ERRID.ERR_DoesntImplementAwaitInterface2, getAwaiter.Type, notifyCompletion)
4871ReportDiagnostic(diagnostics, node, ERRID.ERR_BadGetAwaiterMethod1, operand.Type)
4879ReportDiagnostic(diagnostics, node, ERRID.ERR_BadIsCompletedOnCompletedGetResult2, getAwaiter.Type, operand.Type)
4923Case ERRID.ERR_UseOfObsoletePropertyAccessor2,
4924ERRID.ERR_UseOfObsoletePropertyAccessor3,
4925ERRID.ERR_UseOfObsoleteSymbolNoMessage1,
4926ERRID.ERR_UseOfObsoleteSymbol2
4940Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncLambda)
4945Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncVoidMethod)
4947Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitInNonAsyncMethod, method.ReturnType)
4951Return ErrorFactory.ErrorInfo(ERRID.ERR_BadAwaitNotInAsyncMethodOrLambda)
Binding\Binder_Imports.vb (9)
93ERRID.ERR_InvalidTypeForAliasesImport2,
105Binder.ReportDiagnostic(diagBag, aliasIdentifier, ERRID.ERR_DuplicateNamedImportAlias1, aliasText)
115ERRID.ERR_ImportAliasConflictsWithType2,
153useSiteErrorInfo.Code <> ERRID.ERR_CannotUseGenericTypeAcrossAssemblyBoundaries AndAlso
154useSiteErrorInfo.Code <> ERRID.ERR_CannotUseGenericBaseTypeAcrossAssemblyBoundaries
176ERRID.ERR_NonNamespaceOrClassOnImport2,
187Binder.ReportDiagnostic(diagBag, importsName, ERRID.ERR_DuplicateImport1, importedSymbol)
201Binder.ReportDiagnostic(diagBag, importsName, ERRID.ERR_DuplicateRawGenericTypeImport1, namedType)
238Binder.ReportDiagnostic(diagBag, syntax, ERRID.ERR_DuplicatePrefix, prefix)
Binding\Binder_Invocation.vb (107)
130ReportDiagnostic(diagnostics, group.Syntax, ERRID.ERR_InvalidConstructorCall)
173target = ReportDiagnosticAndProduceBadExpression(diagnostics, node, ERRID.ERR_Syntax).MakeCompilerGenerated()
206Dim diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_NamespaceNotExpression1, namespaceExp.NamespaceSymbol)
296ReportDiagnostic(diagnostics, target.Syntax, ERRID.ERR_DelegateNoInvoke1, target.Type)
382Dim diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedProcedure)
473ERRID.ERR_FunctionResultCannotBeIndexed1,
779ReportDiagnostic(diagnostics, GetLocationForOverloadResolutionDiagnostic(node, group), ERRID.ERR_ExtensionMethodCannotBeLateBound)
879ERRID.ERR_MyBaseAbstractCall1,
880ERRID.ERR_MyClassAbstractCall1),
894ReportDiagnostic(diagnostics, errorLocation, ERRID.WRN_AsyncSubCouldBeFunction)
910ReportDiagnostic(diagnostics, target, ERRID.WRN_RecursiveOperatorCall, method)
1008ReportDiagnostic(diagnostics, propertyAccess.Syntax, ERRID.WRN_RecursivePropertyCall, [property])
1115ReportDiagnostic(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1129ReportDiagnostic(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1155ReportDiagnostic(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1178ReportDiagnostic(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1398ReportDiagnostic(diagnostics, If(groupOpt IsNot Nothing, groupOpt.Syntax, node), ERRID.ERR_NoViableOverloadCandidates1, bestSymbols(0).Name)
1432ERRID.ERR_BadOverloadCandidates2,
1445ReportDiagnostic(diagnostics, diagnosticLocationOpt, ERRID.ERR_MetadataMembersAmbiguous3, candidate.Name, container.GetKindText(), container)
1464If(singleCandidate.Arity = 0, ERRID.ERR_TypeOrMemberNotGeneric2, ERRID.ERR_TooManyGenericArguments2),
1468If(singleCandidate.Arity = 0, ERRID.ERR_TypeOrMemberNotGeneric1, ERRID.ERR_TooManyGenericArguments1),
1476ERRID.ERR_TooFewGenericArguments2,
1480ERRID.ERR_TooFewGenericArguments1, singleSymbol)
1484ReportDiagnostic(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoTypeArgumentCountOverloadCand1, CustomSymbolDisplayFormatter.ShortErrorName(bestSymbols(0)))
1500ERRID.ERR_ParameterizedPropertyInAggrInit1,
1501ERRID.ERR_NoZeroCountArgumentInitCandidates1),
1519ReportDiagnostic(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoArgumentCountOverloadCandidates1, CustomSymbolDisplayFormatter.ShortErrorName(bestSymbols(0)))
1554ERRID.ERR_NoCallableOverloadCandidates2,
1555ERRID.ERR_DelegateBindingFailure3),
1583ERRID.ERR_NoCallableOverloadCandidates2,
1604ERRID.ERR_NoNonNarrowingOverloadCandidates2,
1605ERRID.ERR_DelegateBindingFailure3),
1772Dim notMostSpecificMessage = ErrorFactory.ErrorInfo(ERRID.ERR_NotMostSpecificOverload)
1801diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate2, bestSymbol, bestSymbol.ContainingType))
1803diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate1, CustomSymbolDisplayFormatter.WithContainingType(bestSymbol)))
1805diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate1, bestSymbol))
1809diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3, bestSymbol, bestSymbol.ContainingType, notMostSpecificMessage))
1811diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, CustomSymbolDisplayFormatter.WithContainingType(bestSymbol), notMostSpecificMessage))
1813diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, bestSymbol, notMostSpecificMessage))
1819ErrorFactory.ErrorInfo(If(isDelegateContext, ERRID.ERR_AmbiguousDelegateBinding2, ERRID.ERR_NoMostSpecificOverload2),
1829errorNo As ERRID,
1866errorNo = If(delegateSymbol Is Nothing, ERRID.ERR_NoNonNarrowingOverloadCandidates2, ERRID.ERR_DelegateBindingFailure3),
1898diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3,
1904diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2, symbol, DirectCast(iDiagnostic, DiagnosticWithInfo).Info))
1909diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionMethodOverloadCandidate3,
1911ErrorFactory.ErrorInfo(ERRID.ERR_DelegateBindingMismatch, symbol)))
1913diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2,
1915ErrorFactory.ErrorInfo(ERRID.ERR_DelegateBindingMismatch, symbol)))
2065ReportDiagnostic(diagnostics, arguments(i).Syntax, ERRID.ERR_TooManyArgs)
2068ERRID.ERR_TooManyArgs2,
2072ERRID.ERR_TooManyArgs1, If(representCandidateInDiagnosticsOpt, candidateSymbol))
2090ReportDiagnostic(diagnostics, arguments(i).Syntax, ERRID.ERR_OmittedParamArrayArgument)
2125ERRID.ERR_BadNonTrailingNamedArgument, argumentNames(seenOutOfPositionNamedArgIndex))
2134ReportDiagnostic(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedParamNotFound1, argumentNames(i))
2137ERRID.ERR_NamedParamNotFound3, argumentNames(i),
2141ERRID.ERR_NamedParamNotFound2, argumentNames(i), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2151ReportDiagnostic(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedParamArrayArgument)
2161ReportDiagnostic(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedArgUsedTwice1, argumentNames(i))
2164ERRID.ERR_NamedArgUsedTwice3, argumentNames(i),
2168ERRID.ERR_NamedArgUsedTwice2, argumentNames(i), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2182ReportDiagnostic(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedArgAlsoOmitted1, argumentNames(i))
2185ERRID.ERR_NamedArgAlsoOmitted3, argumentNames(i),
2189ERRID.ERR_NamedArgAlsoOmitted2, argumentNames(i), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2207ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_DelegateBindingTypeInferenceFails)
2218ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_UnboundTypeParam1, candidate.TypeParameters(i))
2221ERRID.ERR_UnboundTypeParam3, candidate.TypeParameters(i),
2225ERRID.ERR_UnboundTypeParam2, candidate.TypeParameters(i), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2241ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous1, ERRID.ERR_TypeInferenceFailureAmbiguous1))
2243ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous3, ERRID.ERR_TypeInferenceFailureAmbiguous3), candidateSymbol, candidateSymbol.ContainingType)
2245ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous2, ERRID.ERR_TypeInferenceFailureAmbiguous2), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2249ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitNoBest1, ERRID.ERR_TypeInferenceFailureNoBest1))
2251ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitNoBest3, ERRID.ERR_TypeInferenceFailureNoBest3), candidateSymbol, candidateSymbol.ContainingType)
2253ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitNoBest2, ERRID.ERR_TypeInferenceFailureNoBest2), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2263ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicit1, ERRID.ERR_TypeInferenceFailure1))
2265ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicit3, ERRID.ERR_TypeInferenceFailure3), candidateSymbol, candidateSymbol.ContainingType)
2267ReportDiagnostic(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicit2, ERRID.ERR_TypeInferenceFailure2), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2312ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_ParamArrayWrongType)
2348ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1, CustomSymbolDisplayFormatter.ShortErrorName(param))
2351ERRID.ERR_OmittedArgument3, CustomSymbolDisplayFormatter.ShortErrorName(param),
2355ERRID.ERR_OmittedArgument2, CustomSymbolDisplayFormatter.ShortErrorName(param),
2360ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_TooManyArgs)
2363ERRID.ERR_TooManyArgs2, candidateSymbol, candidateSymbol.ContainingType)
2366ERRID.ERR_TooManyArgs1, If(representCandidateInDiagnosticsOpt, candidateSymbol))
2386ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_ParamArrayWrongType)
2400ReportDiagnostic(diagnostics, paramArrayArgument.Syntax, ERRID.ERR_ParamArrayArgumentMismatch)
2429ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1, CustomSymbolDisplayFormatter.ShortErrorName(param))
2432ERRID.ERR_OmittedArgument3, CustomSymbolDisplayFormatter.ShortErrorName(param),
2436ERRID.ERR_OmittedArgument2, CustomSymbolDisplayFormatter.ShortErrorName(param), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2514ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_ArgumentCopyBackNarrowing3,
2531ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_ReadOnlyInClosure)
2602Dim err As ERRID = ERRID.ERR_ArgumentNarrowing3
2609err = ERRID.ERR_NestedFunctionArgumentNarrowing3
2616ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_ArgumentNarrowing2,
Binding\Binder_Lambda.vb (27)
24Dim modifiers As SourceMemberFlags = DecodeModifiers(node.SubOrFunctionHeader.Modifiers, asyncIterator, ERRID.ERR_InvalidLambdaModifier, Accessibility.Public, If(diagnostics.DiagnosticBag, New DiagnosticBag())).FoundFlags And asyncIterator
27ReportModifierError(node.SubOrFunctionHeader.Modifiers, ERRID.ERR_InvalidAsyncIteratorModifiers, diagnostics.DiagnosticBag, InvalidAsyncIterator)
47ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.AsClause.Type, ERRID.ERR_RestrictedType1, returnType)
56ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.AsClause.Type, ERRID.ERR_BadAsyncReturn)
65ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.AsClause.Type, ERRID.ERR_BadIteratorReturn)
76ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.DeclarationKeyword, ERRID.ERR_BadIteratorReturn)
108ReportDiagnostic(diagnostics, unboundParam.IdentifierSyntax, ERRID.ERR_RestrictedResumableType1, unboundType)
182ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_BadAsyncReturn)
190ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_BadIteratorReturn)
272ERRID.ERR_RestrictedType1, restrictedType)
290ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType)
487ReportDiagnostic(diagnostics, statement, ERRID.ERR_SubDisallowsStatement)
569ERRID.WRN_AsyncLacksAwaits)
639ReportDiagnostic(_diagnostics, node.Syntax, ERRID.ERR_BadAwaitInTryHandler)
653ReportDiagnostic(diagnostics, unboundParam.IdentifierSyntax, ERRID.ERR_StrictDisallowImplicitObjectLambda)
655ReportDiagnostic(diagnostics, unboundParam.IdentifierSyntax, ERRID.WRN_ObjectAssumedVar1, ErrorFactory.ErrorInfo(ERRID.WRN_MissingAsClauseinVarDecl))
805ReportDiagnostic(diagnostics, sourceParameter.TypeSyntax, ERRID.ERR_RestrictedType1, parameters(i).Type)
949ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType)
960ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_LambdaNoType)
964ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType)
970ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_LambdaNoTypeObjectDisallowed)
974ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_LambdaTooManyTypesObjectDisallowed)
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_Latebound.vb (7)
42ReportDiagnostic(diagnostics, node, ERRID.ERR_StrictDisallowsLateBinding)
57ReportDiagnostic(diagnostics, node, ERRID.WRN_LateBindingResolution)
116ReportDiagnostic(diagnostics, GetLocationForOverloadResolutionDiagnostic(node, group), ERRID.ERR_LateBoundOverloadInterfaceCall1, memberName)
138ReportDiagnostic(diagnostics, node, ERRID.ERR_IllegalCallOrIndex)
147ReportDiagnostic(diagnostics, GetLocationForOverloadResolutionDiagnostic(node, groupOpt), ERRID.ERR_StrictDisallowsLateBinding)
161ReportDiagnostic(diagnostics, GetLocationForOverloadResolutionDiagnostic(node, groupOpt), ERRID.WRN_LateBindingResolution)
251ReportDiagnostic(diagnostics, arguments(i).Syntax, ERRID.ERR_NamedArgumentSpecificationBeforeFixedArgumentInLateboundInvocation)
Binding\Binder_Lookup.vb (11)
231Return Global.Microsoft.CodeAnalysis.VisualBasic.SingleLookupResult.MustNotBeInstance(sym, Global.Microsoft.CodeAnalysis.VisualBasic.ERRID.ERR_ObjectReferenceNotSupplied)
254ERRID.ERR_InaccessibleMember3,
260ERRID.ERR_InaccessibleSymbol2,
307Private Shared Function WrongArityErrid(actualArity As Integer, arity As Integer) As ERRID
310Return ERRID.ERR_TypeOrMemberNotGeneric1
312Return ERRID.ERR_TooManyGenericArguments1
316Return ERRID.ERR_TooFewGenericArguments1
560Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInModules2, syms, name, deferredFormattedList)
1135Return New AmbiguousSymbolDiagnostic(ERRID.ERR_DefaultPropertyAmbiguousAcrossInterfaces4, symbols, symbolA, containingSymbolA, symbolB, containingSymbolB)
1274Dim useSiteError = ErrorFactory.ErrorInfo(ERRID.ERR_XmlFeaturesNotAvailable)
1567ERRID.ERR_AmbiguousAcrossInterfaces3,
Binding\Binder_ObjectInitializer.vb (20)
66diagnostics.Add(ERRID.ERR_NewWithTupleTypeSyntax, type.Location)
208ReportDiagnostic(diagnostics, node, ERRID.ERR_NewOnAbstractClass)
226diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_CoClassMissing2, coClass, type0)
232diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_InvalidCoClass1, coClass)
247diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_InvalidCoClass1, coClass)
258diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_InAccessibleCoClass3, coClass, type0, coClass.DeclaredAccessibility.ToDiagnosticString())
270diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_InvalidCoClass1, coClass)
282diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_NewIfNullOnNonClass)
304ReportDiagnostic(diagnostics, typeNode, ERRID.ERR_NewIfNullOnGenericParam)
309ReportDiagnostic(diagnostics, GetLocation(span), ERRID.ERR_NewArgsDisallowedForTypeParam)
374ReportDiagnostic(diagnostics, If(typeNode.IsKind(SyntaxKind.QualifiedName), DirectCast(typeNode, QualifiedNameSyntax).Right, typeNode), ErrorFactory.ErrorInfo(ERRID.ERR_NoViableOverloadCandidates1, "New"))
525ReportDiagnostic(diagnostics, node, ERRID.ERR_NoPIAAttributeMissing2, coClass, AttributeDescription.GuidAttribute.FullName)
533ReportDiagnostic(diagnostics, node, ERRID.ERR_NoArgumentCountOverloadCandidates1, "New")
610ReportDiagnostic(diagnostics, memberInitializerSyntax, ErrorFactory.ErrorInfo(ERRID.ERR_AggrInitInvalidForObject))
700ErrorFactory.ErrorInfo(ERRID.ERR_SharedMemberAggrMemberInit1, identifierName))
707ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateAggrMemberInit1, identifierName))
718ErrorFactory.ErrorInfo(ERRID.ERR_NonFieldPropertyAggrMemberInit1, identifierName))
815ErrorFactory.ErrorInfo(ERRID.ERR_NotACollection1, collectionType.Name))
847ErrorFactory.ErrorInfo(ERRID.ERR_NoAddMethod1, collectionType))
896ReportDiagnostic(diagnostics, topLevelInitializer, ErrorFactory.ErrorInfo(ERRID.ERR_EmptyAggregateInitializer))
Binding\Binder_Operators.vb (28)
88If([isNot], ERRID.ERR_IsNotOperatorNullable1, ERRID.ERR_IsOperatorNullable1),
97If([isNot], ERRID.ERR_IsNotOperatorGenericParam1, ERRID.ERR_IsOperatorGenericParam1),
110If([isNot], ERRID.ERR_IsNotOpRequiresReferenceTypes1, ERRID.ERR_IsOperatorRequiresReferenceTypes1),
355ERRID.WRN_EqualToLiteralNothing, ERRID.WRN_NotEqualToLiteralNothing)))
404Dim errorId = If(isSelectCase, ERRID.WRN_ObjectMathSelectCase,
405If(preliminaryOperatorKind = BinaryOperatorKind.Equals, ERRID.WRN_ObjectMath1,
406If(preliminaryOperatorKind = BinaryOperatorKind.NotEquals, ERRID.WRN_ObjectMath1Not, ERRID.WRN_ObjectMath2)))
505ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ZeroDivide))
508ReportDiagnostic(diagnostics, right.Syntax, ErrorFactory.ErrorInfo(ERRID.ERR_ConstantStringTooLong))
511ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ExpressionOverflow1, operatorResultType))
659ReportDiagnostic(diagnostics, node, ERRID.ERR_UnacceptableLogicalOperator3,
690ReportDiagnostic(diagnostics, node, ERRID.ERR_ConditionOperatorRequired3,
706ReportDiagnostic(diagnostics, node, ERRID.ERR_BinaryOperands3,
774ERRID.ERR_StrictDisallowsObjectComparison1, ERRID.ERR_StrictDisallowsObjectOperand1),
953ReportDiagnostic(diagnostics, syntax, ERRID.ERR_ReferenceComparison3, operatorTokenText, leftType, rightType)
956ReportDiagnostic(diagnostics, syntax, ERRID.ERR_BinaryOperandsForXml4, operatorTokenText, leftType, rightType, leftType)
959ReportDiagnostic(diagnostics, syntax, ERRID.ERR_BinaryOperandsForXml4, operatorTokenText, leftType, rightType, rightType)
962ReportDiagnostic(diagnostics, syntax, ERRID.ERR_BinaryOperands3, operatorTokenText, leftType, rightType)
1179ReportDiagnostic(diagnostics, node.Operand, ErrorFactory.ErrorInfo(ERRID.ERR_StrictDisallowsObjectOperand1, node.OperatorToken))
1181ReportDiagnostic(diagnostics, node.Operand, ErrorFactory.ErrorInfo(ERRID.WRN_ObjectMath2, node.OperatorToken))
1195ReportDiagnostic(diagnostics, node, ErrorFactory.ErrorInfo(ERRID.ERR_ExpressionOverflow1, resultType))
1256ReportDiagnostic(diagnostics, syntax, ErrorFactory.ErrorInfo(ERRID.ERR_UnaryOperand2, syntax.OperatorToken, operand.Type))
Binding\Binder_Query.vb (18)
1961ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2000ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2041ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupJoinMethod)
2077ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupJoinMethod)
2159ReportDiagnostic(diagnostics, identifier, ERRID.ERR_QueryAnonymousTypeDisallowsTypeChar)
2163ReportDiagnostic(diagnostics, identifier, ERRID.ERR_QueryInvalidControlVariableName1)
2840ReportDiagnostic(diagnostics, variableName.Identifier.Nullable, ERRID.ERR_NullableTypeInferenceNotSupported)
2852ReportDiagnostic(diagnostics, failedToInferFromXmlName.LocalName, ERRID.ERR_QueryAnonTypeFieldXMLNameInference)
2854ReportDiagnostic(diagnostics, item.Expression, ERRID.ERR_QueryAnonymousTypeFieldNameInference)
2896ReportDiagnostic(diagnostics, rangeVarNameSyntax, ERRID.ERR_QueryDuplicateAnonTypeMemberName1, rangeVarName)
3511ReportDiagnostic(diagnostics, joinCondition, ERRID.ERR_EqualsTypeMismatch, outerKey.Type, innerKey.Type)
3553Dim errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_EqualsOperandIsBad, outerNames, innerNames)
3909ReportDiagnostic(diagnostics, functionAggregationSyntax.FunctionName, ERRID.ERR_TypeCharOnAggregation)
4073ReportDiagnostic(diagnostics, rangeVarNameSyntax, ERRID.ERR_QueryDuplicateAnonTypeMemberName1, rangeVarName)
4138ReportDiagnostic(diagnostics, syntax.Expression, ERRID.ERR_ExpectedQueryableSource, source.Type)
4159ReportDiagnostic(diagnostics, syntax.Identifier.Nullable, ERRID.ERR_NullableTypeInferenceNotSupported)
4207ReportDiagnostic(diagnostics, syntax.Identifier.Identifier, ERRID.ERR_QueryDuplicateAnonTypeMemberName1, rangeVarName)
4716ReportDiagnostic(diagnostics, Location.Create(node.SyntaxTree, operatorNameLocation), ERRID.ERR_QueryOperatorNotFound, operatorName)
Binding\Binder_Statements.vb (132)
338ReportDiagnostic(diagnostics, DirectCast(methodBlock.BlockStatement, MethodStatementSyntax).Identifier, ERRID.WRN_AsyncLacksAwaits)
478Binder.ReportDiagnostic(diagnostics, node.Syntax, ERRID.ERR_TryAndOnErrorDoNotMix)
528ERRID.ERR_OnErrorInUsing,
529ERRID.ERR_OnErrorInSyncLock))
577ReportDiagnostic(_diagnostics, node.Syntax, ERRID.ERR_BadAwaitInTryHandler)
658ReportDiagnostic(diagnostics, local.IdentifierToken, ERRID.ERR_DuplicateLocalStatic1, local.Name)
720ReportDiagnostic(diagnostics, redimOperand.Expression, ERRID.ERR_ExpectedArray1, "Redim")
729ReportDiagnostic(diagnostics, redimOperand, ERRID.ERR_RedimNoSizes)
735ReportDiagnostic(diagnostics, redimOperand, ERRID.ERR_RedimRankMismatch)
745ReportDiagnostic(diagnostics, redimOperand, ERRID.ERR_ArrayRankLimit)
781ReportDiagnostic(diagnostics, operand, ERRID.ERR_ExpectedArray1, "Erase")
829Dim errorID = ERRID.ERR_None
842errorID = ERRID.ERR_GotoIntoTryHandler
845errorID = ERRID.ERR_GotoIntoUsing
848errorID = ERRID.ERR_GotoIntoSyncLock
851errorID = ERRID.ERR_GotoIntoWith
855errorID = ERRID.ERR_GotoIntoFor
858If errorID <> ERRID.ERR_None Then
912ReportDiagnostic(diagnostics, labelToken, ERRID.ERR_MultiplyDefined1, labelName)
942ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_BadLocalDimFlags1, keywordSyntax.ToString())
944ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_DuplicateSpecifier)
962ReportDiagnostic(diagBag, firstDim, ERRID.ERR_BadLocalConstFlags1, firstDim.ToString())
964ReportDiagnostic(diagBag, firstStatic, ERRID.ERR_BadLocalConstFlags1, firstStatic.ToString())
972ReportDiagnostic(diagBag, firstStatic, ERRID.ERR_BadStaticLocalInStruct)
974ReportDiagnostic(diagBag, firstStatic, ERRID.ERR_StaticInLambda)
976ReportDiagnostic(diagBag, firstStatic, ERRID.ERR_BadStaticLocalInGenericMethod)
1008ReportDiagnostic(diagnostics, varDecl, ERRID.ERR_InitWithMultipleDeclarators)
1129ReportDiagnostic(diagnostics, errSyntax, ERRID.ERR_RestrictedType1, restrictedType)
1134ReportDiagnostic(diagnostics, errSyntax, ERRID.ERR_RestrictedType1, type)
1137ReportDiagnostic(diagnostics, name, ERRID.ERR_BadStaticInitializerInResumable)
1142ReportDiagnostic(diagnostics, errSyntax, ERRID.ERR_CannotLiftRestrictedTypeResumable1, type)
1172ReportDiagnostic(diagnostics, asNew.NewExpression.NewKeyword, ERRID.ERR_BadLocalConstFlags1, asNew.NewExpression.NewKeyword.ToString())
1207ReportDiagnostic(diagnostics, asNew.NewExpression.NewKeyword, ERRID.ERR_AsNewArray)
1224ReportDiagnostic(diagnostics, name, ERRID.ERR_InitWithExplicitArraySizes)
1239ReportDiagnostic(diagnostics, errSyntax, ERRID.ERR_ConstAsNonConstant)
1417ReportDiagnostic(diagnostics, modifiedIdentifierOpt, ERRID.ERR_NullableTypeInferenceNotSupported)
1486ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_NoSuitableWidestType1, identifierName.Identifier.ValueText)
1490ReportDiagnostic(diagnostics, identifierName, ERRID.ERR_AmbiguousWidestType3, identifierName.Identifier.ValueText)
1597ReportDiagnostic(diagnostics, identifier, ERRID.ERR_CannotInferNullableForVariable1, name.Identifier.ToString())
1602ReportDiagnostic(diagnostics, identifier, ERRID.ERR_InferringNonArrayType1, valueType)
1610ReportDiagnostic(diagnostics, identifier, ERRID.ERR_CannotInferNullableForVariable1, identifier.ToString())
1650ReportDiagnostic(diagnostics, identifier, ERRID.ERR_CannotInferNullableForVariable1, identifier.ToString())
1659ReportDiagnostic(diagnostics, name, ERRID.ERR_TypeInferenceArrayRankMismatch1, name.Identifier.ToString())
1745ReportDiagnostic(diagnostics, nameSyntax, ERRID.ERR_LocalSameAsFunc)
1762ReportDiagnostic(diagnostics, nameSyntax, ERRID.ERR_DuplicateLocals1, name)
1808Dim err As ERRID
1828err = ERRID.ERR_LambdaParamShadowLocal1
1830err = ERRID.ERR_BlockLocalShadowing1
1832err = ERRID.ERR_IterationVariableShadowLocal2
1834err = ERRID.ERR_IterationVariableShadowLocal1
1842err = ERRID.ERR_LambdaParamShadowLocal1
1845err = ERRID.ERR_LocalNamedSameAsParamInLambda1
1847err = ERRID.ERR_LocalNamedSameAsParam1
1850err = ERRID.ERR_IterationVariableShadowLocal2
1852err = ERRID.ERR_IterationVariableShadowLocal1
1866ReportDiagnostic(diagnostics, nameSyntax, ERRID.ERR_NameSameAsMethodTypeParam1, name)
1880err = ERRID.ERR_LambdaParamShadowLocal1
1882err = ERRID.ERR_BlockLocalShadowing1
1884err = ERRID.ERR_IterationVariableShadowLocal2
1919ReportDiagnostic(diagnostics, node, ERRID.ERR_NoSetProperty1, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1922ReportDiagnostic(diagnostics, node, ERRID.ERR_AssignmentInitOnly, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1951ReportDiagnostic(diagnostics, node, ERRID.ERR_NoAccessibleSet, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
2255ReportDiagnostic(diagnostics, node.DelegateExpression, ERRID.WRN_LambdaPassedToRemoveHandler)
2268ReportDiagnostic(diagnostics, node.EventExpression, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedEvent1, eventSymbol))
2284ReportDiagnostic(diagnostics, addrOffExpr.Operand, ERRID.WRN_RelDelegatePassedToRemoveHandler)
2295ERRID.WRN_RecursiveAddHandlerCall,
2303ReportDiagnostic(diagnostics, node.EventExpression, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedEvent1, eventSymbol))
2347ReportDiagnostic(diagnostics, node.EventExpression, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, method))
2381ReportDiagnostic(diagnostics, notQualifiedSyntax, ERRID.ERR_AddOrRemoveHandlerEvent)
2423ReportDiagnostic(diagnostics, notQualifiedSyntax, ERRID.ERR_NameNotEvent2, name, container)
2437ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_NameNotEvent2, node.Name.ToString, Me.ContainingType)
2462ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_CantRaiseBaseEvent)
2485ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_EventTypeNotDelegate)
2500ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_EventsCantBeFunctions)
2510ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_MissingRaiseEventDef1, node.Name.ToString)
2521ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_EventsCantBeFunctions)
2539ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_CantRaiseBaseEvent, node.Name.ToString)
2551ERRID.WRN_RecursiveAddHandlerCall,
2664ReportDiagnostic(diagnostics, statement, ERRID.WRN_UnobservedAwaitableExpression)
2697ReportDiagnostic(diagnostics, boundInvocation.Syntax, ERRID.ERR_PropertyAccessIgnored)
2713ReportDiagnostic(diagnostics, boundInvocation.Syntax, ERRID.ERR_PropertyAccessIgnored)
3262ReportDiagnostic(diagnostics, syntax, ERRID.ERR_ForLoopOperatorRequired2, left.Type, SyntaxFacts.GetText(OverloadResolution.GetOperatorTokenKind(opCode)))
3273ReportDiagnostic(diagnostics, syntax, ERRID.ERR_UnacceptableForLoopRelOperator2, bestCandidate.UnderlyingSymbol,
3278ReportDiagnostic(diagnostics, syntax, ERRID.ERR_UnacceptableForLoopOperator2, bestCandidate.UnderlyingSymbol,
3315ReportDiagnostic(diagnostics, DirectCast(node.ForOrForEachStatement, ForStatementSyntax).ControlVariable, ERRID.ERR_ForLoopType1, targetType)
3536ReportDiagnostic(diagnostics, identifier, ERRID.ERR_NullableTypeInferenceNotSupported)
3543ReportDiagnostic(diagnostics, identifier, ERRID.ERR_ForCtlVarArraySizesSpecified)
3604ReportDiagnostic(diagnostics, controlVariable.Syntax, ERRID.ERR_LoopControlMustNotBeProperty)
3619ReportDiagnostic(diagnostics, controlVariable.Syntax, ERRID.ERR_LoopControlMustNotAwait)
3765ErrorFactory.ErrorInfo(ERRID.ERR_ForEachAmbiguousIEnumerable1,
3816ErrorFactory.ErrorInfo(ERRID.ERR_ForEachCollectionDesignPattern1,
4461ErrorFactory.ErrorInfo(ERRID.ERR_UsingResourceVarNeedsInitializer))
4543ErrorFactory.ErrorInfo(ERRID.ERR_UsingResourceVarCantBeArray))
4604ErrorFactory.ErrorInfo(ERRID.ERR_UsingRequiresDisposePattern, resourceType))
4632ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName))
4645ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName))
4651ErrorFactory.ErrorInfo(ERRID.WRN_MutableGenericStructureInUsing, symbolName))
4656ErrorFactory.ErrorInfo(ERRID.WRN_MutableStructureInUsing, symbolName))
4704ErrorFactory.ErrorInfo(ERRID.ERR_SyncLockRequiresReferenceType1, lockExpressionType))
4727ReportDiagnostic(diagnostics, node.TryStatement, ERRID.ERR_TryWithoutCatchOrFinally)
4795ReportDiagnostic(diagnostics, name, ERRID.ERR_CatchVariableNotLocal1, name.ToString())
4808ERRID.ERR_CatchNotException1,
4846ReportDiagnostic(diagnostics, declaration, ERRID.WRN_DuplicateCatch, exceptionType)
4856ReportDiagnostic(diagnostics, declaration, ERRID.WRN_OverlappingCatch, exceptionType, previousType)
4876Dim id As ERRID
4878Case SyntaxKind.ExitWhileStatement : id = ERRID.ERR_ExitWhileNotWithinWhile
4879Case SyntaxKind.ExitTryStatement : id = ERRID.ERR_ExitTryNotWithinTry
4880Case SyntaxKind.ExitDoStatement : id = ERRID.ERR_ExitDoNotWithinDo
4881Case SyntaxKind.ExitForStatement : id = ERRID.ERR_ExitForNotWithinFor
4882Case SyntaxKind.ExitSelectStatement : id = ERRID.ERR_ExitSelectNotWithinSelect
4883Case SyntaxKind.ExitSubStatement : id = ERRID.ERR_ExitSubOfFunc
4884Case SyntaxKind.ExitFunctionStatement : id = ERRID.ERR_ExitFuncOfSub
4885Case SyntaxKind.ExitPropertyStatement : id = ERRID.ERR_ExitPropNot
4902Dim id As ERRID
4904Case SyntaxKind.ContinueWhileStatement : id = ERRID.ERR_ContinueWhileNotWithinWhile
4905Case SyntaxKind.ContinueDoStatement : id = ERRID.ERR_ContinueDoNotWithinDo
4906Case SyntaxKind.ContinueForStatement : id = ERRID.ERR_ContinueForNotWithinFor
4982ReportDiagnostic(diagnostics, originalSyntax, ERRID.ERR_KeywordNotAllowedInScript, SyntaxFacts.GetText(SyntaxKind.ReturnKeyword))
4991ERRID.ERR_BadReturnValueInIterator,
4992If(isAsync AndAlso Not methodReturnType.SpecialType = SpecialType.System_Void, ERRID.ERR_ReturnFromNonGenericTaskAsync, ERRID.ERR_ReturnFromNonFunction)))
5033ReportDiagnostic(diagnostics, arg.Syntax, ERRID.ERR_BadAsyncReturnOperand1, retType)
5054ReportDiagnostic(diagnostics, originalSyntax, ERRID.ERR_ReturnWithoutValue)
5071ReportDiagnostic(diagnostics, node, ERRID.ERR_BadYieldInNonIteratorMethod)
5109ReportDiagnostic(diagnostics, originalSyntax, ERRID.ERR_KeywordNotAllowedInScript, SyntaxFacts.GetText(SyntaxKind.YieldKeyword))
5178ReportDiagnostic(diagnostics, node, ERRID.ERR_MustBeInCatchToRethrow)
5191ReportDiagnostic(diagnostics, node, ERRID.ERR_CantThrowNonException)
5215ReportDiagnostic(diagnostics, node, ERRID.ERR_MultilineLambdasCannotContainOnError)
5217ReportDiagnostic(diagnostics, node, ERRID.ERR_ResumablesCannotContainOnError)
5250ReportDiagnostic(diagnostics, node, ERRID.ERR_MultilineLambdasCannotContainOnError)
5252ReportDiagnostic(diagnostics, node, ERRID.ERR_ResumablesCannotContainOnError)
5292ReportDiagnostic(diagnostics, endStatementSyntax, ERRID.ERR_EndDisallowedInDllProjects)
Binding\Binder_Symbols.vb (15)
65Dim diagInfo = New BadSymbolDiagnostic(type, ERRID.ERR_BadUseOfVoid)
68Dim diagInfo = New BadSymbolDiagnostic(type, ERRID.ERR_ModuleAsType1)
285diagInfo = New BadSymbolDiagnostic(lookupResult.SingleSymbol, ERRID.ERR_UnrecognizedType)
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)
431If errorInfo.Code = ERRID.ERR_TypeFwdCycle2 Then
433Binder.ReportDiagnostic(diagBag, typeSyntax, ERRID.ERR_TypeFwdCycle2, fullName, forwardedType.ContainingAssembly)
434ElseIf errorInfo.Code = ERRID.ERR_TypeForwardedToMultipleAssemblies Then
503diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UndefinedTypeOrNamespace1, diagName)
512Binder.ReportDiagnostic(diagBag, typeSyntax, ErrorFactory.ErrorInfo(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, diagName))
660Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleElementNamesAttributeMissing, AttributeDescription.TupleElementNamesAttribute.FullName)
722Binder.ReportDiagnostic(diagBag, typeSyntax, ERRID.ERR_TypeInItsInheritsClause1, typeWithBaseBeingResolved)
726ERRID.ERR_NestedTypeInInheritsClause2, typeWithBaseBeingResolved, lookupResult.SingleSymbol)
907New BadSymbolDiagnostic(lookupResult.SingleSymbol, ERRID.ERR_TypeOrMemberNotGeneric1, lookupResult.SingleSymbol)))
Binding\Binder_Utils.vb (67)
22Optional errid As ERRID = ERRID.ERR_TypecharNotallowed)
61errid As ERRID,
144errIdBadModifier As ERRID,
165ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_DuplicateSpecifier)
170ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_DuplicateAccessCategoryUsed)
173ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_DuplicateModifierCategoryUsed)
176ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_DuplicateWriteabilityCategoryUsed)
179ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_DuplicateConversionCategoryUsed)
182ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_BadSpecifierCombo2, "Overloads", "Shadows")
185ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_OverridesImpliesOverridable)
192ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_BadSpecifierCombo2, "Overrides", "Shadows")
203ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_BadSpecifierCombo2, "Iterator", "WriteOnly")
206ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_BadSpecifierCombo2, "MustInherit", "NotInheritable")
242ReportDiagnostic(diagBag, privateOverridableModifier, ERRID.ERR_BadSpecifierCombo2, "Private", "Overridable")
244ReportDiagnostic(diagBag, privateMustOverrideModifier, ERRID.ERR_BadSpecifierCombo2, "Private", "MustOverride")
246ReportDiagnostic(diagBag, privateNotOverridableModifier, ERRID.ERR_BadSpecifierCombo2, "Private", "NotOverridable")
338ReportDiagnostic(diagnostics, arrayModifier, ERRID.ERR_ArrayRankLimit)
369ReportDiagnostic(diagnostics, arrayBoundsOpt, ERRID.ERR_ArrayRankLimit)
498ReportDiagnostic(diagBag, asClauseSyntaxOpt, ERRID.ERR_CantSpecifyNullableOnBoth)
504ReportDiagnostic(diagBag, asClauseSyntaxOpt, ERRID.ERR_CantSpecifyAsNewAndNullable)
515ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_NullableParameterMustSpecifyType)
527ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_NullableImplicit)
532ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_BadTypeArgForStructConstraintNull, baseType)
547ReportDiagnostic(diagBag, asClauseSyntaxOpt.Type, ERRID.ERR_CantSpecifyArraysOnBoth)
555ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_CantSpecifyParamsOnLambdaParamNoType)
684ReportDiagnostic(diagBag, identifier, ERRID.ERR_TypeCharWithType1, typeCharacterString)
897CheckReservedParameterName(container.Name, paramSyntax, ERRID.ERR_ParamNameFunctionNameCollision, diagBag)
911ReportDiagnostic(diagBag, paramSyntax.Identifier, ERRID.ERR_NameSameAsMethodTypeParam1, name)
927diagnostics.Add(ERRID.ERR_ByRefIllegal1, token.GetLocation(), container.GetKindText())
932diagnostics.Add(ERRID.ERR_ParamArrayIllegal1, token.GetLocation(), container.GetKindText())
937diagnostics.Add(ERRID.ERR_OptionalIllegal1, token.GetLocation(), container.GetKindText())
972If CheckReservedParameterName(StringConstants.ValueParameterName, paramSyntax, ERRID.ERR_PropertySetParamCollisionWithValue, diagBag) Then
974CheckReservedParameterName(container.Name, paramSyntax, ERRID.ERR_ParamNameFunctionNameCollision, diagBag)
991diagnostics.Add(ERRID.ERR_ByRefIllegal1, location, container.GetKindText(), token.ToString())
997Private Shared Function CheckReservedParameterName(reservedName As String, syntax As ParameterSyntax, errorId As ERRID, diagnostics As BindingDiagnosticBag) As Boolean
1019ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_DuplicateParamName1, name)
1053ReportDiagnostic(diagBag, paramSyntax.Identifier.Identifier, ERRID.ERR_ParamArrayWithOptArgs)
1060ReportDiagnostic(diagBag, paramSyntax.Identifier.Identifier, ERRID.ERR_ExpectedOptional)
1069ReportDiagnostic(diagBag, paramSyntax, ERRID.ERR_ParamArrayMustBeLast)
1084ReportDiagnostic(diagBag, paramSyntax, ERRID.ERR_BadAsyncByRefParam)
1087ReportDiagnostic(diagBag, paramSyntax, ERRID.ERR_BadIteratorByRefParam)
1096ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType)
1100ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, paramType)
1104ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedResumableType1, paramType)
1135ReportDiagnostic(diagBag, paramSyntax.Identifier, ERRID.ERR_ParamTypingInconsistency)
1155ReportModifierError(modifierList, If(isProperty, ERRID.ERR_BadFlagsOnSharedProperty1, ERRID.ERR_BadFlagsOnSharedMeth1), diagBag, InvalidModifiersIfShared)
1164ReportModifierError(modifierList, ERRID.ERR_OverloadsModifierInModule, diagBag, SyntaxKind.OverloadsKeyword)
1171ReportModifierError(modifierList, If(isProperty, ERRID.ERR_BadFlagsOnStdModuleProperty1, ERRID.ERR_ModuleCantUseMethodSpecifier1), diagBag, InvalidModifiersInModule)
1182ReportModifierError(modifierList, If(isProperty, ERRID.ERR_BadInterfacePropertyFlags1, ERRID.ERR_BadInterfaceMethodFlags1), diagBag, InvalidModifiersInInterface)
1191ReportModifierError(modifierList, If(isProperty, ERRID.ERR_StructCantUseVarSpecifier1, ERRID.ERR_StructureCantUseProtected), diagBag, SyntaxKind.ProtectedKeyword)
1198ReportModifierError(modifierList, ERRID.ERR_StructCantUseVarSpecifier1, diagBag,
1218ReportModifierError(modifierList, ERRID.ERR_MustOverOnNotInheritPartClsMem1, diagBag, InvalidModifiersInNotInheritableOtherPartialClass)
1222ReportModifierError(modifierList, ERRID.ERR_BadFlagsInNotInheritableClass1, diagBag, InvalidModifiersInNotInheritableClass)
1244ReportModifierError(modifierList, ERRID.ERR_ModuleCantUseEventSpecifier1, diagBag, InvalidModifiersInModule)
1255ReportModifierError(modifierList, ERRID.ERR_InterfaceCantUseEventSpecifier1, diagBag, InvalidModifiersInInterface)
1264ReportModifierError(modifierList, ERRID.ERR_StructureCantUseProtected, diagBag, SyntaxKind.ProtectedKeyword)
1305ReportDiagnostic(diagnostics, boundExpression.Syntax, ERRID.ERR_RequiredConstExpr)
1355ReportDiagnostic(diagnostics, boundExpression.Syntax, ERRID.ERR_RequiredConstExpr)
1407ERRID.ERR_RequiredConstConversion2,
1449ERRID.ERR_RequiredConstConversion2,
1478ERRID.ERR_RequiredConstConversion2,
1510ERRID.ERR_RequiredConstConversion2,
Binding\Binder_XmlLiterals.vb (18)
648ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoXmlAxesLateBinding)
669ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TypeDisallowsAttributes, receiverType)
681Return BindXmlElementAccess(syntax, StringConstants.XmlElementsMethodName, ERRID.ERR_TypeDisallowsElements, diagnostics)
685Return BindXmlElementAccess(syntax, StringConstants.XmlDescendantsMethodName, ERRID.ERR_TypeDisallowsDescendants, diagnostics)
688Private Function BindXmlElementAccess(syntax As XmlMemberAccessExpressionSyntax, memberName As String, typeDisallowsError As ERRID, diagnostics As BindingDiagnosticBag) As BoundExpression
698ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoXmlAxesLateBinding)
753Return ReportDiagnosticAndProduceBadExpression(diagnostics, syntax, ERRID.ERR_BadWithRef)
796ReportDiagnostic(diagnostics, prefixToken, ERRID.ERR_IllegalXmlnsPrefix)
902ReportDiagnostic(diagnostics, prefixToken, ERRID.ERR_UndefinedXmlPrefix, prefix)
1006ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, memberName, type)))
1041ReportDiagnostic(diagnostics, syntax, ERRID.ERR_XmlFeaturesNotAvailable)
1151ReportDiagnostic(diagnostics, syntax, ERRID.ERR_DuplicateXmlAttribute, syntax.ToString())
1199ReportDiagnostic(diagnostics, valueSyntax, ERRID.ERR_EmbeddedExpression)
1214ReportDiagnostic(diagnostics, nameSyntax.LocalName, ERRID.ERR_ReservedXmlPrefix, prefix)
1221ReportDiagnostic(diagnostics, nameSyntax.LocalName, ERRID.ERR_IllegalDefaultNamespace)
1245ReportDiagnostic(diagnostics, syntax, ERRID.ERR_ReservedXmlNamespace, prefix, reservedPrefix)
1282ReportDiagnostic(diagnostics, syntax, ERRID.WRN_EmptyPrefixAndXmlnsLocalName)
1284ReportDiagnostic(diagnostics, syntax, ERRID.WRN_PrefixAndXmlnsLocalName, prefixName)
Binding\LookupResult.vb (7)
127Public Shared Function WrongArityAndStopLookup(sym As Symbol, err As ERRID) As SingleLookupResult
143err As ERRID) As SingleLookupResult
148Public Shared Function MustNotBeInstance(sym As Symbol, err As ERRID) As SingleLookupResult
756Return New AmbiguousSymbolDiagnostic(ERRID.ERR_MetadataMembersAmbiguous3, syms, name, containerKindText, container)
1021Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInNamespaces2, syms, syms(0).Name, New FormattedSymbolList(containers))
1023Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInNamespace2, syms, syms(0).Name, container)
1026Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInUnnamedNamespace1, syms, syms(0).Name)
CommandLine\VisualBasicCommandLineParser.vb (135)
181AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<file>")
234AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<symbol_list>")
245AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, If(name = "import", ":<str>", ":<import_list>"))
259AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "optionstrict", ":custom")
266AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optionstrict")
275AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optionstrict")
285AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "optioncompare", ":binary|text")
291AddDiagnostic(diagnostics, ERRID.ERR_InvalidSwitchValue, "optioncompare", value)
298AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optionexplicit")
307AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optionexplicit")
316AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optioninfer")
325AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optioninfer")
335AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "codepage", ":<number>")
341AddDiagnostic(diagnostics, ERRID.ERR_BadCodepage, value)
351AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "checksumalgorithm", ":<algorithm>")
357AddDiagnostic(diagnostics, ERRID.ERR_BadChecksumAlgorithm, value)
366AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "removeintchecks")
375AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "removeintchecks")
387AddDiagnostic(diagnostics, ERRID.ERR_MissingGuidForOption, value, name)
391AddDiagnostic(diagnostics, ERRID.ERR_InvalidFormatForGuidForOption, value, name)
399AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<string>")
413AddDiagnostic(diagnostics, ERRID.WRN_BadUILang, value)
420AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<path_list>")
441AddDiagnostic(diagnostics, ERRID.ERR_StdInOptionProvidedButConsoleInputIsNotRedirected)
447AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "i")
454AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "i")
460AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<path_list>")
474AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<file>")
487AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<file>")
495AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "refonly")
513AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "moduleassemblyname", ":<string>")
516AddDiagnostic(diagnostics, ERRID.ERR_InvalidAssemblyName, value, arg)
526AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "rootnamespace", ":<string>")
543AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "doc", ":<file>")
547AddDiagnostic(diagnostics, ERRID.WRN_XMLCannotWriteToXMLDocFile2, unquoted, New LocalizableErrorArgument(ERRID.IDS_TheSystemCannotFindThePathSpecified))
556AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "doc")
566AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "doc")
577AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "errorlog", ErrorLogOptionFormat)
582AddDiagnostic(diagnostics, ERRID.ERR_BadSwitchValue, unquoted, "errorlog", ErrorLogOptionFormat)
592AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<dir>")
606AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "sdkpath", ":<path>")
622AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "instrument", ":<string>")
637AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "recurse", ":<wildcard>")
650AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "addmodule", ":<file_list>")
703AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "sourcelink", ":<file>")
721AddDiagnostic(diagnostics, ERRID.ERR_InvalidSwitchValue, "debug", value)
730AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "debug")
738AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "debug")
746AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optimize")
755AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "optimize")
764AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, name)
773AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, name)
782AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, name)
791AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, name.Substring(0, name.Length - 1))
800AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, name.Substring(0, name.Length - 1))
866AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "langversion", ":<number>")
871AddDiagnostic(diagnostics, ERRID.ERR_InvalidSwitchValue, "langversion", value)
879AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "delaysign")
888AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "delaysign")
897AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "publicsign")
906AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "publicsign")
927AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "keycontainer", ":<string>")
947AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "keyfile", ":<file>")
987AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "quiet")
1012AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "verbose")
1021AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, name.Substring(0, name.Length - 1))
1030AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "utf8output")
1038AddDiagnostic(diagnostics, ERRID.ERR_SwitchNeedsBool, "utf8output")
1072AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<class>")
1082AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<version>")
1090AddDiagnostic(diagnostics, ERRID.ERR_InvalidSubsystemVersion, value)
1097AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<touchedfiles>")
1193AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, "platform", ":<string>")
1220AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<file_list>")
1232AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<file_list>")
1255AddDiagnostic(diagnostics, ERRID.ERR_StdInOptionProvidedButConsoleInputIsNotRedirected)
1261AddDiagnostic(diagnostics, ERRID.WRN_BadSwitch, arg)
1279AddDiagnostic(diagnostics, ERRID.ERR_NoRefOutWhenRefOnly)
1283AddDiagnostic(diagnostics, ERRID.ERR_NoNetModuleOutputWhenRefOutOrRefOnly)
1289AddDiagnostic(diagnostics, ERRID.ERR_NoSources)
1308AddDiagnostic(diagnostics, ERRID.WRN_CannotFindStandardLibrary1, "System.dll")
1321AddDiagnostic(diagnostics, ERRID.ERR_LibNotFound, "Microsoft.VisualBasic.dll")
1347AddDiagnostic(diagnostics, ERRID.ERR_SourceLinkRequiresPdb)
1355AddDiagnostic(diagnostics, ERRID.ERR_CannotEmbedWithoutPdb)
1364AddDiagnostic(diagnostics, ERRID.ERR_BadNamespaceName1, rootNamespace)
1390AddDiagnostic(diagnostics, ERRID.ERR_NoSourcesOut)
1571AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, arg, ":<file>")
1575AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, arg, ":<file>")
1621AddDiagnostic(diagnostics, ERRID.ERR_ConflictingManifestSwitches)
1626AddDiagnostic(diagnostics, ERRID.ERR_IconFileAndWin32ResFile)
1630AddDiagnostic(diagnostics, ERRID.ERR_CantHaveWin32ResAndManifest)
1635AddDiagnostic(diagnostics, ERRID.WRN_IgnoreModuleManifest)
1654AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, optionName, ":exe|winexe|library|module|appcontainerexe|winmdobj")
1657AddDiagnostic(diagnostics, ERRID.ERR_InvalidSwitchValue, optionName, value)
1665AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<file_list>")
1676AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<file_list>")
1689AddDiagnostic(diagnostics, ERRID.ERR_ArgumentRequired, name, ":<resinfo>")
1716AddDiagnostic(diagnostics, ERRID.FTL_InvalidInputFileName, filePath)
1753AddDiagnostic(diagnostics, ERRID.ERR_InvalidSwitchValue, name, nullStringText)
1782diagnosticBuilder.Add(Diagnostic.Create(VisualBasic.MessageProvider.Instance, ERRID.ERR_InvalidPreprocessorConstantType, symbol.Key, symbol.Value.GetType()))
1868ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
1869ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedEOS),
1892ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
1893ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier),
1921ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
1922ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier),
1938ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
1939ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier),
1992If diag.Code <> ERRID.ERR_ExpectedExpression AndAlso diag.Code <> ERRID.ERR_BadCCExpression Then
1993diagnosticBuilder.Add(New DiagnosticWithInfo(ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, diag, parsedTokensAsString.ToString), Location.None))
2002ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
2003ErrorFactory.ErrorInfo(If(atTheEndOrSeparator, ERRID.ERR_ExpectedExpression, ERRID.ERR_BadCCExpression)),
2017Dim err As ERRID = value.ErrorId
2023ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
2045ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
2046ErrorFactory.ErrorInfo(ERRID.ERR_IllegalChar),
2055ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid,
2056ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedEOS),
2087AddDiagnostic(diagnostics, ERRID.ERR_InvalidInstrumentationKind, instrumentationKindStr)
2129AddDiagnostic(errors, ERRID.ERR_ArgumentRequired, name, ":<string>")
2147AddDiagnostic(errors, ERRID.ERR_InvalidSwitchValue, name, value)
2165AddDiagnostic(errors, ERRID.ERR_ArgumentRequired, name, ":<number>")
2167AddDiagnostic(errors, ERRID.ERR_InvalidSwitchValue, name, value)
2169AddDiagnostic(errors, ERRID.ERR_InvalidSwitchValue, name, value)
2186AddDiagnostic(errors, ERRID.ERR_ArgumentRequired, name, ":<number>")
2202AddDiagnostic(errors, ERRID.ERR_InvalidSwitchValue, name, value.ToString())
2255AddDiagnostic(diagnostics, ERRID.WRN_UnimplementedCommandLineSwitch, "/" + switchName)
2259AddDiagnostic(errors, ERRID.ERR_InvalidSwitchValue, "recurse", path)
2262Private Shared Sub AddDiagnostic(diagnostics As IList(Of Diagnostic), errorCode As ERRID, ParamArray arguments As Object())
2298AddDiagnostic(diagnostics, ERRID.FTL_InvalidInputFileName, outputFileName)
2325AddDiagnostic(diagnostics, ERRID.FTL_InvalidInputFileName, outputFileName)
2339AddDiagnostic(diagnostics, ERRID.ERR_NeedModule)
CommandLine\VisualBasicCompiler.vb (8)
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))
Compilation\ClsComplianceChecker.vb (23)
226Me.AddDiagnostic(symbol, ERRID.WRN_CLSAttrInvalidOnGetSet, attributeLocation, attribute.AttributeClass.Name, attributeUsage.GetValidTargetsErrorArgument())
241Me.AddDiagnostic(symbol, ERRID.WRN_CLSEventMethodInNonCLSType3, attributeLocation, methodKind.TryGetAccessorDisplayName(), symbol.AssociatedSymbol.Name, containingType)
326Me.AddDiagnostic(symbol, ERRID.WRN_NonCLSMemberInCLSInterface1, symbol) ' NOTE: Dev11 actually reports the kind
328Me.AddDiagnostic(symbol, ERRID.WRN_NonCLSMustOverrideInCLSType1, containingType) ' NOTE: Dev11 actually reports the type kind
337Me.AddDiagnostic(symbol, ERRID.WRN_InheritedInterfaceNotCLSCompliant2, symbol, interfaceType)
343Me.AddDiagnostic(symbol, ERRID.WRN_EnumUnderlyingTypeNotCLS1, underlyingType)
349Me.AddDiagnostic(symbol, ERRID.WRN_BaseClassNotCLSCompliant2, symbol, baseType)
359Me.AddDiagnostic(symbol, ERRID.WRN_CLSMemberInNonCLSType3, symbol.GetKindText(), symbol, containingType)
368Me.AddDiagnostic(typeParameter, ERRID.WRN_GenericConstraintNotCLSCompliant1, constraintType)
382Me.AddDiagnostic(parameter, ERRID.WRN_ParamNotCLSCompliant1, parameter.Name)
390Me.AddDiagnostic(parameter, ERRID.WRN_OptionalValueNotCLSCompliant1, parameter.Name)
413Dim code As ERRID
417code = ERRID.WRN_FieldNotCLSCompliant1
420code = ERRID.WRN_ProcTypeNotCLSCompliant1
423code = ERRID.WRN_ProcTypeNotCLSCompliant1
443Me.AddDiagnostic(symbol, ERRID.WRN_EventDelegateTypeNotCLSCompliant2, type, symbol.Name)
528Me.AddDiagnostic(symbol, ERRID.WRN_ArrayOverloadsNonCLS2, symbol, other)
551Me.AddDiagnostic(symbol, ERRID.WRN_RootNamespaceNotCLSCompliant1, rootNamespace)
558Me.AddDiagnostic(symbol, ERRID.WRN_RootNamespaceNotCLSCompliant2, symbol.Name, rootNamespace)
566Me.AddDiagnostic(symbol, ERRID.WRN_NameNotCLSCompliant1, name)
609Me.AddDiagnostic(diagnosticSymbol, ERRID.WRN_TypeNotCLSCompliant1, typeArg)
833Private Sub AddDiagnostic(symbol As Symbol, code As ERRID, ParamArray args As Object())
838Private Sub AddDiagnostic(symbol As Symbol, code As ERRID, location As Location, ParamArray args As Object())
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (22)
162ReportIllegalWellKnownTagIfAny(tag, ERRID.WRN_XMLDocIllegalTagOnElement2,
167errorId As ERRID,
291Me._diagnostics.Add(ERRID.WRN_XMLDocDuplicateXMLNode1, node2.Node.GetLocation(), tagName)
367Me._diagnostics.Add(ERRID.WRN_XMLDocExceptionTagWithoutCRef, element.GetLocation())
383ERRID.WRN_XMLDocBadParamTag2,
384ERRID.WRN_XMLDocParamTagWithoutName,
397ERRID.WRN_XMLDocBadGenericParamTag2,
398ERRID.WRN_XMLDocGenericParamTagWithoutName,
415ERRID.WRN_XMLDocBadGenericParamTag2,
416ERRID.ERR_None)
435Me._diagnostics.Add(ERRID.WRN_XMLDocBadGenericParamTag2,
450badNameValueError As ERRID,
451missingNameValueError As ERRID,
479ReportWarningsForParamOrTypeParamTags(builderRef, symbolName, badNameValueError, ERRID.ERR_None, allowedSymbols, [set])
486badNameValueError As ERRID,
487missingNameValueError As ERRID,
589Me._diagnostics.Add(ERRID.WRN_XMLDocParseError1, trivia.GetLocation(), GetDescription(ex))
636badNameValueError As ERRID, missingNameValueError As ERRID) As XmlNameAttributeSyntax
670If missingNameValueError <> ERRID.ERR_None AndAlso element.SyntaxTree.ReportDocumentationCommentDiagnostics() Then
686Me._diagnostics.Add(ERRID.WRN_XMLDocMoreThanOneCommentBlock, theOnlyDocCommentTrivia.GetLocation())
704Me._diagnostics.Add(ERRID.WRN_XMLDocBadXMLLine, theOnlyDocCommentTrivia.GetLocation())
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (31)
315ERRID.WRN_XMLDocIllegalTagOnElement2,
328commentMessage = GenerateDiagnostic(XmlLocation.Create(element, currentXmlFilePath), ERRID.WRN_XMLDocReturnsOnADeclareSub)
331commentMessage = GenerateDiagnostic(XmlLocation.Create(element, currentXmlFilePath), ERRID.WRN_XMLDocReturnsOnWriteOnlyProperty)
335ERRID.WRN_XMLDocIllegalTagOnElement2,
347ERRID.WRN_XMLDocIllegalTagOnElement2,
355ERRID.WRN_XMLDocIllegalTagOnElement2,
364ERRID.WRN_XMLDocIllegalTagOnElement2,
373ERRID.WRN_XMLDocIllegalTagOnElement2,
400commentMessage = GenerateDiagnostic(XmlLocation.Create(element, currentXmlFilePath), ERRID.WRN_XMLDocExceptionTagWithoutCRef)
410ERRID.WRN_XMLDocParamTagWithoutName,
411ERRID.WRN_XMLDocGenericParamTagWithoutName))
417If(binderType = DocumentationCommentBinder.BinderType.NameInParamOrParamRef, ERRID.WRN_XMLDocBadParamTag2, ERRID.WRN_XMLDocBadGenericParamTag2),
451commentMessage = GenerateDiagnostic(location, ERRID.WRN_XMLDocInvalidXMLFragment, fileAttr.Value, pathAttr.Value)
467commentMessage = GenerateDiagnostic(location, ERRID.WRN_XMLMissingFileOrPathAttribute1, DocumentationCommentXmlNames.FileAttributeName)
472GenerateDiagnostic(location, ERRID.WRN_XMLMissingFileOrPathAttribute1, DocumentationCommentXmlNames.PathAttributeName)
483commentMessage = GenerateDiagnostic(True, location, ERRID.WRN_XMLDocBadFormedXML, filePathValue, xpathValue, New CodeAnalysisResourcesLocalizableErrorArgument(NameOf(CodeAnalysisResources.XmlReferencesNotSupported)))
489commentMessage = GenerateDiagnostic(True, location, ERRID.WRN_XMLDocBadFormedXML, filePathValue, xpathValue, New CodeAnalysisResourcesLocalizableErrorArgument(NameOf(CodeAnalysisResources.FileNotFound)))
503commentMessage = GenerateDiagnostic(True, location, ERRID.WRN_XMLDocBadFormedXML, filePathValue, xpathValue, e.Message)
514commentMessage = GenerateDiagnostic(True, location, ERRID.WRN_XMLDocInvalidXMLFragment, xpathValue, filePathValue)
534commentMessage = GenerateDiagnostic(True, location, ERRID.WRN_XMLDocInvalidXMLFragment, xpathValue, filePathValue)
538commentMessage = GenerateDiagnostic(True, location, ERRID.WRN_XMLDocInvalidXMLFragment, xpathValue, filePathValue)
552Private Function GenerateDiagnostic(suppressDiagnostic As Boolean, loc As Location, id As ERRID, ParamArray arguments As Object()) As String
560Private Function GenerateDiagnostic(loc As Location, id As ERRID, ParamArray arguments As Object()) As String
639ProcessErrorLocations(XmlLocation.Create(attribute, currentXmlFilePath), reference.ToFullString().TrimEnd(), useSiteInfo, errorLocations, ERRID.WRN_XMLDocCrefAttributeNotFound1)
651Dim errid As ERRID = errid.WRN_XMLDocCrefAttributeNotFound1
655errid = errid.WRN_XMLDocCrefToTypeParameter
702Me._diagnostics.Add(ERRID.WRN_XMLDocCrefAttributeNotFound1, XmlLocation.Create(attribute, currentXmlFilePath), value)
713Private Sub ProcessErrorLocations(currentXmlLocation As XmlLocation, referenceName As String, useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), errorLocations As ImmutableArray(Of Location), errid As Nullable(Of ERRID))
734badNameValueError As ERRID,
Compilation\DocumentationComments\DocumentationCommentWalker.vb (8)
167ProcessErrorLocations(crefAttr, errorLocations, Nothing, ERRID.WRN_XMLDocCrefAttributeNotFound1)
171ProcessErrorLocations(crefAttr, errorLocations, Nothing, ERRID.WRN_XMLDocCrefAttributeNotFound1)
186Dim errid As ERRID = ERRID.WRN_XMLDocCrefAttributeNotFound1
190errid = ERRID.WRN_XMLDocCrefToTypeParameter
251Me._diagnostics.Add(ERRID.WRN_XMLDocCrefAttributeNotFound1, node.GetLocation(), strValue.Trim())
277Private Sub ProcessErrorLocations(node As SyntaxNode, errorLocations As ImmutableArray(Of Location), useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), errid As Nullable(Of ERRID))
296Private Sub ProcessBadNameInCrefAttribute(crefAttribute As XmlCrefAttributeSyntax, errorLocation As Location, errid As ERRID)
Compilation\MethodCompiler.vb (17)
285diagnostics.Add(ERRID.ERR_ModuleEmitFailure, NoLocation.Singleton, moduleBeingBuiltOpt.SourceModule.Name,
767Binder.ReportDiagnostic(_diagnostics, location, ERRID.WRN_ExpectedInitComponentCall2, sourceMethod, sourceTypeSymbol)
1136diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_SubNewCycle2, referencingMethod, referencedMethod))
1146New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_SubNewCycle1, referencingMethod,
1928ErrorFactory.ErrorInfo(ERRID.ERR_NoUniqueConstructorOnBase2, containingType, containingType.BaseTypeNoUseSiteDiagnostics),
1933ErrorFactory.ErrorInfo(ERRID.ERR_RequiredNewCallTooMany2, defaultConstructorType, containingType),
1955ErrorFactory.ErrorInfo(ERRID.ERR_NoConstructorOnBase2, containingType, containingType.BaseTypeNoUseSiteDiagnostics),
1960ErrorFactory.ErrorInfo(ERRID.ERR_RequiredNewCall2, defaultConstructorType, containingType),
1969ErrorFactory.ErrorInfo(ERRID.ERR_NoAccessibleConstructorOnBase, containingType.BaseTypeNoUseSiteDiagnostics),
1989diagnostics.Add(If(data.IsError, ERRID.ERR_NoNonObsoleteConstructorOnBase3, ERRID.WRN_NoNonObsoleteConstructorOnBase3),
1995diagnostics.Add(If(data.IsError, ERRID.ERR_NoNonObsoleteConstructorOnBase4, ERRID.WRN_NoNonObsoleteConstructorOnBase4),
2005diagnostics.Add(If(data.IsError, ERRID.ERR_RequiredNonObsoleteNewCall3, ERRID.WRN_RequiredNonObsoleteNewCall3),
2011diagnostics.Add(If(data.IsError, ERRID.ERR_RequiredNonObsoleteNewCall4, ERRID.WRN_RequiredNonObsoleteNewCall4),
Compilation\VisualBasicCompilation.vb (20)
481diagnostics.Add(ERRID.ERR_DebugEntryPointNotSourceMethodDefinition, Location.None)
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,
1649Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_AsyncSubMain)
1711diagnostics.Add(ERRID.HDN_UnusedImportStatement, infoTree.GetLocation(info.StatementSpan))
1733diagnostics.Add(ERRID.HDN_UnusedImportStatement, infoTree.GetLocation(info.StatementSpan))
1736diagnostics.Add(ERRID.HDN_UnusedImportClause, infoTree.GetLocation(clauseSpan))
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)
3132Case ERRID.ERR_UnreferencedAssemblyEvent3,
3133ERRID.ERR_UnreferencedAssembly3
Emit\NoPia\EmbeddedTypesManager.vb (16)
146ERRID.ERR_DuplicateLocalTypes3,
156ERRID.ERR_LocalTypeNameClash2,
176ReportDiagnostic(diagnostics, ERRID.WRN_IndirectRefToLinkedAssembly2, Nothing, indirectRef, assembly)
205Dim id = ERRID.ERR_None
212id = ERRID.ERR_DefaultInterfaceImplementationInNoPIAType
214id = ERRID.ERR_ReAbstractionInNoPIAType
219If id = ERRID.ERR_None Then
234id = ERRID.ERR_NestedInteropType
238id = ERRID.ERR_CannotEmbedInterfaceWithGeneric
244id = ERRID.ERR_CannotLinkClassWithNoPIA1
247If id <> ERRID.ERR_None Then
263Private Shared Sub ReportNotEmbeddableSymbol(id As ERRID, symbol As Symbol, syntaxNodeOpt As SyntaxNode, diagnostics As DiagnosticBag, typeManagerOpt As EmbeddedTypesManager)
272Friend Shared Sub ReportDiagnostic(diagnostics As DiagnosticBag, id As ERRID, syntaxNodeOpt As SyntaxNode, ParamArray args As Object())
373ReportNotEmbeddableSymbol(ERRID.ERR_InvalidStructMemberNoPIA1, type.UnderlyingNamedType.AdaptedNamedTypeSymbol, syntaxNodeOpt, diagnostics, Me)
405ReportNotEmbeddableSymbol(ERRID.ERR_InvalidStructMemberNoPIA1, type.UnderlyingNamedType.AdaptedNamedTypeSymbol, syntaxNodeOpt, diagnostics, Me)
409ReportDiagnostic(diagnostics, ERRID.ERR_InteropMethodWithBody1, syntaxNodeOpt, method.AdaptedMethodSymbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat))
Emit\PEModuleBuilder.vb (8)
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)
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\ErrorFactories.vb (35)
18Private Shared ReadOnly s_categoriesMap As Lazy(Of ImmutableDictionary(Of ERRID, String)) = New Lazy(Of ImmutableDictionary(Of ERRID, String))(AddressOf CreateCategoriesMap)
20Private Shared Function CreateCategoriesMap() As ImmutableDictionary(Of ERRID, String)
21Dim map = New Dictionary(Of ERRID, String) From
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))
58Public Shared Function ErrorInfo(id As ERRID) As DiagnosticInfo
62Public Shared Function ErrorInfo(id As ERRID, ParamArray arguments As Object()) As DiagnosticInfo
66Public Shared Function ObsoleteErrorInfo(id As ERRID, data As ObsoleteAttributeData, ParamArray arguments As Object()) As CustomObsoleteDiagnosticInfo
70Public Shared Function ErrorInfo(id As ERRID, ByRef syntaxToken As SyntaxToken) As DiagnosticInfo
74Public Shared Function ErrorInfo(id As ERRID, ByRef syntaxTokenKind As SyntaxKind) As DiagnosticInfo
78Public Shared Function ErrorInfo(id As ERRID, ByRef syntaxToken As SyntaxToken, type As TypeSymbol) As DiagnosticInfo
82Public Shared Function ErrorInfo(id As ERRID, ByRef syntaxToken As SyntaxToken, type1 As TypeSymbol, type2 As TypeSymbol) As DiagnosticInfo
90s_resourceManager = New Resources.ResourceManager(GetType(VBResources).FullName, GetType(ERRID).GetTypeInfo().Assembly)
98Friend Shared Function IdToString(id As ERRID) As String
103Public Shared Function IdToString(id As ERRID, language As CultureInfo) As String
107Public Shared Function GetMessageFormat(id As ERRID) As LocalizableResourceString
111Public Shared Function GetTitle(id As ERRID) As LocalizableResourceString
115Public Shared Function GetDescription(id As ERRID) As LocalizableResourceString
119Public Shared Function GetHelpLink(id As ERRID) As String
124Public Shared Function GetCategory(id As ERRID) As String
Errors\ErrorFacts.vb (1513)
13Public Function IsBuildOnlyDiagnostic(code As ERRID) As Boolean
14If code >= ERRID.WRN_NextAvailable Then
19Case ERRID.ERR_TypeRefResolutionError3,
20ERRID.ERR_MissingRuntimeHelper,
21ERRID.ERR_CannotGotoNonScopeBlocksWithClosure
25Case ERRID.Void,
26ERRID.Unknown,
27ERRID.ERR_None,
28ERRID.ERR_FileNotFound,
29ERRID.ERR_ArgumentRequired,
30ERRID.WRN_BadSwitch,
31ERRID.ERR_NoSources,
32ERRID.ERR_SwitchNeedsBool,
33ERRID.ERR_NoResponseFile,
34ERRID.ERR_CantOpenFileWrite,
35ERRID.ERR_InvalidSwitchValue,
36ERRID.ERR_BinaryFile,
37ERRID.ERR_BadCodepage,
38ERRID.ERR_LibNotFound,
39ERRID.ERR_IconFileAndWin32ResFile,
40ERRID.WRN_NoConfigInResponseFile,
41ERRID.ERR_NoSourcesOut,
42ERRID.ERR_NeedModule,
43ERRID.ERR_InvalidAssemblyName,
44ERRID.FTL_InvalidInputFileName,
45ERRID.ERR_ConflictingManifestSwitches,
46ERRID.WRN_IgnoreModuleManifest,
47ERRID.WRN_BadUILang,
48ERRID.ERR_VBCoreNetModuleConflict,
49ERRID.ERR_InvalidFormatForGuidForOption,
50ERRID.ERR_MissingGuidForOption,
51ERRID.ERR_BadChecksumAlgorithm,
52ERRID.ERR_MutuallyExclusiveOptions,
53ERRID.ERR_BadSwitchValue,
54ERRID.ERR_InvalidInNamespace,
55ERRID.ERR_UndefinedType1,
56ERRID.ERR_MissingNext,
57ERRID.ERR_IllegalCharConstant,
58ERRID.ERR_UnreferencedAssemblyEvent3,
59ERRID.ERR_UnreferencedModuleEvent3,
60ERRID.ERR_LbExpectedEndIf,
61ERRID.ERR_LbNoMatchingIf,
62ERRID.ERR_LbBadElseif,
63ERRID.ERR_InheritsFromRestrictedType1,
64ERRID.ERR_InvOutsideProc,
65ERRID.ERR_DelegateCantImplement,
66ERRID.ERR_DelegateCantHandleEvents,
67ERRID.ERR_IsOperatorRequiresReferenceTypes1,
68ERRID.ERR_TypeOfRequiresReferenceType1,
69ERRID.ERR_ReadOnlyHasSet,
70ERRID.ERR_WriteOnlyHasGet,
71ERRID.ERR_InvInsideProc,
72ERRID.ERR_EndProp,
73ERRID.ERR_EndSubExpected,
74ERRID.ERR_EndFunctionExpected,
75ERRID.ERR_LbElseNoMatchingIf,
76ERRID.ERR_CantRaiseBaseEvent,
77ERRID.ERR_TryWithoutCatchOrFinally,
78ERRID.ERR_EventsCantBeFunctions,
79ERRID.ERR_MissingEndBrack,
80ERRID.ERR_Syntax,
81ERRID.ERR_Overflow,
82ERRID.ERR_IllegalChar,
83ERRID.ERR_StrictDisallowsObjectOperand1,
84ERRID.ERR_LoopControlMustNotBeProperty,
85ERRID.ERR_MethodBodyNotAtLineStart,
86ERRID.ERR_MaximumNumberOfErrors,
87ERRID.ERR_UseOfKeywordNotInInstanceMethod1,
88ERRID.ERR_UseOfKeywordFromStructure1,
89ERRID.ERR_BadAttributeConstructor1,
90ERRID.ERR_ParamArrayWithOptArgs,
91ERRID.ERR_ExpectedArray1,
92ERRID.ERR_ParamArrayNotArray,
93ERRID.ERR_ParamArrayRank,
94ERRID.ERR_ArrayRankLimit,
95ERRID.ERR_AsNewArray,
96ERRID.ERR_TooManyArgs1,
97ERRID.ERR_ExpectedCase,
98ERRID.ERR_RequiredConstExpr,
99ERRID.ERR_RequiredConstConversion2,
100ERRID.ERR_InvalidMe,
101ERRID.ERR_ReadOnlyAssignment,
102ERRID.ERR_ExitSubOfFunc,
103ERRID.ERR_ExitPropNot,
104ERRID.ERR_ExitFuncOfSub,
105ERRID.ERR_LValueRequired,
106ERRID.ERR_ForIndexInUse1,
107ERRID.ERR_NextForMismatch1,
108ERRID.ERR_CaseElseNoSelect,
109ERRID.ERR_CaseNoSelect,
110ERRID.ERR_CantAssignToConst,
111ERRID.ERR_NamedSubscript,
112ERRID.ERR_ExpectedEndIf,
113ERRID.ERR_ExpectedEndWhile,
114ERRID.ERR_ExpectedLoop,
115ERRID.ERR_ExpectedNext,
116ERRID.ERR_ExpectedEndWith,
117ERRID.ERR_ElseNoMatchingIf,
118ERRID.ERR_EndIfNoMatchingIf,
119ERRID.ERR_EndSelectNoSelect,
120ERRID.ERR_ExitDoNotWithinDo,
121ERRID.ERR_EndWhileNoWhile,
122ERRID.ERR_LoopNoMatchingDo,
123ERRID.ERR_NextNoMatchingFor,
124ERRID.ERR_EndWithWithoutWith,
125ERRID.ERR_MultiplyDefined1,
126ERRID.ERR_ExpectedEndSelect,
127ERRID.ERR_ExitForNotWithinFor,
128ERRID.ERR_ExitWhileNotWithinWhile,
129ERRID.ERR_ReadOnlyProperty1,
130ERRID.ERR_ExitSelectNotWithinSelect,
131ERRID.ERR_BranchOutOfFinally,
132ERRID.ERR_QualNotObjectRecord1,
133ERRID.ERR_TooFewIndices,
134ERRID.ERR_TooManyIndices,
135ERRID.ERR_EnumNotExpression1,
136ERRID.ERR_TypeNotExpression1,
137ERRID.ERR_ClassNotExpression1,
138ERRID.ERR_StructureNotExpression1,
139ERRID.ERR_InterfaceNotExpression1,
140ERRID.ERR_NamespaceNotExpression1,
141ERRID.ERR_BadNamespaceName1,
142ERRID.ERR_XmlPrefixNotExpression,
143ERRID.ERR_MultipleExtends,
144ERRID.ERR_PropMustHaveGetSet,
145ERRID.ERR_WriteOnlyHasNoWrite,
146ERRID.ERR_ReadOnlyHasNoGet,
147ERRID.ERR_BadAttribute1,
148ERRID.ERR_LabelNotDefined1,
149ERRID.ERR_ErrorCreatingWin32ResourceFile,
150ERRID.ERR_UnableToCreateTempFile,
151ERRID.ERR_RequiredNewCall2,
152ERRID.ERR_UnimplementedMember3,
153ERRID.ERR_BadWithRef,
154ERRID.ERR_DuplicateAccessCategoryUsed,
155ERRID.ERR_DuplicateModifierCategoryUsed,
156ERRID.ERR_DuplicateSpecifier,
157ERRID.ERR_TypeConflict6,
158ERRID.ERR_UnrecognizedTypeKeyword,
159ERRID.ERR_ExtraSpecifiers,
160ERRID.ERR_UnrecognizedType,
161ERRID.ERR_InvalidUseOfKeyword,
162ERRID.ERR_InvalidEndEnum,
163ERRID.ERR_MissingEndEnum,
164ERRID.ERR_ExpectedDeclaration,
165ERRID.ERR_ParamArrayMustBeLast,
166ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt,
167ERRID.ERR_ExpectedSpecifier,
168ERRID.ERR_ExpectedComma,
169ERRID.ERR_ExpectedAs,
170ERRID.ERR_ExpectedRparen,
171ERRID.ERR_ExpectedLparen,
172ERRID.ERR_InvalidNewInType,
173ERRID.ERR_ExpectedExpression,
174ERRID.ERR_ExpectedOptional,
175ERRID.ERR_ExpectedIdentifier,
176ERRID.ERR_ExpectedIntLiteral,
177ERRID.ERR_ExpectedEOS,
178ERRID.ERR_ExpectedForOptionStmt,
179ERRID.ERR_InvalidOptionCompare,
180ERRID.ERR_ExpectedOptionCompare,
181ERRID.ERR_StrictDisallowImplicitObject,
182ERRID.ERR_StrictDisallowsImplicitProc,
183ERRID.ERR_StrictDisallowsImplicitArgs,
184ERRID.ERR_InvalidParameterSyntax,
185ERRID.ERR_ExpectedSubFunction,
186ERRID.ERR_ExpectedStringLiteral,
187ERRID.ERR_MissingLibInDeclare,
188ERRID.ERR_DelegateNoInvoke1,
189ERRID.ERR_MissingIsInTypeOf,
190ERRID.ERR_DuplicateOption1,
191ERRID.ERR_ModuleCantInherit,
192ERRID.ERR_ModuleCantImplement,
193ERRID.ERR_BadImplementsType,
194ERRID.ERR_BadConstFlags1,
195ERRID.ERR_BadWithEventsFlags1,
196ERRID.ERR_BadDimFlags1,
197ERRID.ERR_DuplicateParamName1,
198ERRID.ERR_LoopDoubleCondition,
199ERRID.ERR_ExpectedRelational,
200ERRID.ERR_ExpectedExitKind,
201ERRID.ERR_ExpectedNamedArgument,
202ERRID.ERR_BadMethodFlags1,
203ERRID.ERR_BadEventFlags1,
204ERRID.ERR_BadDeclareFlags1,
205ERRID.ERR_BadLocalConstFlags1,
206ERRID.ERR_BadLocalDimFlags1,
207ERRID.ERR_ExpectedConditionalDirective,
208ERRID.ERR_ExpectedEQ,
209ERRID.ERR_ConstructorNotFound1,
210ERRID.ERR_InvalidEndInterface,
211ERRID.ERR_MissingEndInterface,
212ERRID.ERR_InheritsFrom2,
213ERRID.ERR_InheritanceCycle1,
214ERRID.ERR_InheritsFromNonClass,
215ERRID.ERR_MultiplyDefinedType3,
216ERRID.ERR_BadOverrideAccess2,
217ERRID.ERR_CantOverrideNotOverridable2,
218ERRID.ERR_DuplicateProcDef1,
219ERRID.ERR_BadInterfaceMethodFlags1,
220ERRID.ERR_NamedParamNotFound2,
221ERRID.ERR_BadInterfacePropertyFlags1,
222ERRID.ERR_NamedArgUsedTwice2,
223ERRID.ERR_InterfaceCantUseEventSpecifier1,
224ERRID.ERR_TypecharNoMatch2,
225ERRID.ERR_ExpectedSubOrFunction,
226ERRID.ERR_BadEmptyEnum1,
227ERRID.ERR_InvalidConstructorCall,
228ERRID.ERR_CantOverrideConstructor,
229ERRID.ERR_OverrideNotNeeded3,
230ERRID.ERR_ExpectedDot,
231ERRID.ERR_DuplicateLocals1,
232ERRID.ERR_InvInsideEndsProc,
233ERRID.ERR_LocalSameAsFunc,
234ERRID.ERR_RecordEmbeds2,
235ERRID.ERR_RecordCycle2,
236ERRID.ERR_InterfaceCycle1,
237ERRID.ERR_SubNewCycle2,
238ERRID.ERR_SubNewCycle1,
239ERRID.ERR_InheritsFromCantInherit3,
240ERRID.ERR_OverloadWithOptional2,
241ERRID.ERR_OverloadWithReturnType2,
242ERRID.ERR_TypeCharWithType1,
243ERRID.ERR_TypeCharOnSub,
244ERRID.ERR_OverloadWithDefault2,
245ERRID.ERR_MissingSubscript,
246ERRID.ERR_OverrideWithDefault2,
247ERRID.ERR_OverrideWithOptional2,
248ERRID.ERR_FieldOfValueFieldOfMarshalByRef3,
249ERRID.ERR_TypeMismatch2,
250ERRID.ERR_CaseAfterCaseElse,
251ERRID.ERR_ConvertArrayMismatch4,
252ERRID.ERR_ConvertObjectArrayMismatch3,
253ERRID.ERR_ForLoopType1,
254ERRID.ERR_OverloadWithByref2,
255ERRID.ERR_InheritsFromNonInterface,
256ERRID.ERR_BadInterfaceOrderOnInherits,
257ERRID.ERR_DuplicateDefaultProps1,
258ERRID.ERR_DefaultMissingFromProperty2,
259ERRID.ERR_OverridingPropertyKind2,
260ERRID.ERR_NewInInterface,
261ERRID.ERR_BadFlagsOnNew1,
262ERRID.ERR_OverloadingPropertyKind2,
263ERRID.ERR_NoDefaultNotExtend1,
264ERRID.ERR_OverloadWithArrayVsParamArray2,
265ERRID.ERR_BadInstanceMemberAccess,
266ERRID.ERR_ExpectedRbrace,
267ERRID.ERR_ModuleAsType1,
268ERRID.ERR_NewIfNullOnNonClass,
269ERRID.ERR_CatchAfterFinally,
270ERRID.ERR_CatchNoMatchingTry,
271ERRID.ERR_FinallyAfterFinally,
272ERRID.ERR_FinallyNoMatchingTry,
273ERRID.ERR_EndTryNoTry,
274ERRID.ERR_ExpectedEndTry,
275ERRID.ERR_BadDelegateFlags1,
276ERRID.ERR_NoConstructorOnBase2,
277ERRID.ERR_InaccessibleSymbol2,
278ERRID.ERR_InaccessibleMember3,
279ERRID.ERR_CatchNotException1,
280ERRID.ERR_ExitTryNotWithinTry,
281ERRID.ERR_BadRecordFlags1,
282ERRID.ERR_BadEnumFlags1,
283ERRID.ERR_BadInterfaceFlags1,
284ERRID.ERR_OverrideWithByref2,
285ERRID.ERR_MyBaseAbstractCall1,
286ERRID.ERR_IdentNotMemberOfInterface4,
287ERRID.ERR_ImplementingInterfaceWithDifferentTupleNames5,
288ERRID.ERR_WithEventsRequiresClass,
289ERRID.ERR_WithEventsAsStruct,
290ERRID.ERR_ConvertArrayRankMismatch2,
291ERRID.ERR_RedimRankMismatch,
292ERRID.ERR_StartupCodeNotFound1,
293ERRID.ERR_ConstAsNonConstant,
294ERRID.ERR_InvalidEndSub,
295ERRID.ERR_InvalidEndFunction,
296ERRID.ERR_InvalidEndProperty,
297ERRID.ERR_ModuleCantUseMethodSpecifier1,
298ERRID.ERR_ModuleCantUseEventSpecifier1,
299ERRID.ERR_StructCantUseVarSpecifier1,
300ERRID.ERR_InvalidOverrideDueToReturn2,
301ERRID.ERR_ConstantWithNoValue,
302ERRID.ERR_ExpressionOverflow1,
303ERRID.ERR_DuplicatePropertyGet,
304ERRID.ERR_DuplicatePropertySet,
305ERRID.ERR_NameNotDeclared1,
306ERRID.ERR_BinaryOperands3,
307ERRID.ERR_ExpectedProcedure,
308ERRID.ERR_OmittedArgument2,
309ERRID.ERR_NameNotMember2,
310ERRID.ERR_EndClassNoClass,
311ERRID.ERR_BadClassFlags1,
312ERRID.ERR_ImportsMustBeFirst,
313ERRID.ERR_NonNamespaceOrClassOnImport2,
314ERRID.ERR_TypecharNotallowed,
315ERRID.ERR_ObjectReferenceNotSupplied,
316ERRID.ERR_MyClassNotInClass,
317ERRID.ERR_IndexedNotArrayOrProc,
318ERRID.ERR_EventSourceIsArray,
319ERRID.ERR_SharedConstructorWithParams,
320ERRID.ERR_SharedConstructorIllegalSpec1,
321ERRID.ERR_ExpectedEndClass,
322ERRID.ERR_UnaryOperand2,
323ERRID.ERR_BadFlagsWithDefault1,
324ERRID.ERR_VoidValue,
325ERRID.ERR_ConstructorFunction,
326ERRID.ERR_InvalidLiteralExponent,
327ERRID.ERR_NewCannotHandleEvents,
328ERRID.ERR_CircularEvaluation1,
329ERRID.ERR_BadFlagsOnSharedMeth1,
330ERRID.ERR_BadFlagsOnSharedProperty1,
331ERRID.ERR_BadFlagsOnStdModuleProperty1,
332ERRID.ERR_SharedOnProcThatImpl,
333ERRID.ERR_NoWithEventsVarOnHandlesList,
334ERRID.ERR_AccessMismatch6,
335ERRID.ERR_InheritanceAccessMismatch5,
336ERRID.ERR_NarrowingConversionDisallowed2,
337ERRID.ERR_NoArgumentCountOverloadCandidates1,
338ERRID.ERR_NoViableOverloadCandidates1,
339ERRID.ERR_NoCallableOverloadCandidates2,
340ERRID.ERR_NoNonNarrowingOverloadCandidates2,
341ERRID.ERR_ArgumentNarrowing3,
342ERRID.ERR_NoMostSpecificOverload2,
343ERRID.ERR_NotMostSpecificOverload,
344ERRID.ERR_OverloadCandidate2,
345ERRID.ERR_NoGetProperty1,
346ERRID.ERR_NoSetProperty1,
347ERRID.ERR_ParamTypingInconsistency,
348ERRID.ERR_ParamNameFunctionNameCollision,
349ERRID.ERR_DateToDoubleConversion,
350ERRID.ERR_DoubleToDateConversion,
351ERRID.ERR_ZeroDivide,
352ERRID.ERR_TryAndOnErrorDoNotMix,
353ERRID.ERR_PropertyAccessIgnored,
354ERRID.ERR_InterfaceNoDefault1,
355ERRID.ERR_InvalidAssemblyAttribute1,
356ERRID.ERR_InvalidModuleAttribute1,
357ERRID.ERR_AmbiguousInUnnamedNamespace1,
358ERRID.ERR_DefaultMemberNotProperty1,
359ERRID.ERR_AmbiguousInNamespace2,
360ERRID.ERR_AmbiguousInImports2,
361ERRID.ERR_AmbiguousInModules2,
362ERRID.ERR_ArrayInitializerTooFewDimensions,
363ERRID.ERR_ArrayInitializerTooManyDimensions,
364ERRID.ERR_InitializerTooFewElements1,
365ERRID.ERR_InitializerTooManyElements1,
366ERRID.ERR_NewOnAbstractClass,
367ERRID.ERR_DuplicateNamedImportAlias1,
368ERRID.ERR_DuplicatePrefix,
369ERRID.ERR_StrictDisallowsLateBinding,
370ERRID.ERR_AddressOfOperandNotMethod,
371ERRID.ERR_EndExternalSource,
372ERRID.ERR_ExpectedEndExternalSource,
373ERRID.ERR_NestedExternalSource,
374ERRID.ERR_AddressOfNotDelegate1,
375ERRID.ERR_SyncLockRequiresReferenceType1,
376ERRID.ERR_MethodAlreadyImplemented2,
377ERRID.ERR_DuplicateInInherits1,
378ERRID.ERR_NamedParamArrayArgument,
379ERRID.ERR_OmittedParamArrayArgument,
380ERRID.ERR_ParamArrayArgumentMismatch,
381ERRID.ERR_EventNotFound1,
382ERRID.ERR_ModuleCantUseVariableSpecifier1,
383ERRID.ERR_SharedEventNeedsSharedHandler,
384ERRID.ERR_ExpectedMinus,
385ERRID.ERR_InterfaceMemberSyntax,
386ERRID.ERR_InvInsideInterface,
387ERRID.ERR_InvInsideEndsInterface,
388ERRID.ERR_BadFlagsInNotInheritableClass1,
389ERRID.ERR_UnimplementedMustOverride,
390ERRID.ERR_BaseOnlyClassesMustBeExplicit2,
391ERRID.ERR_NegativeArraySize,
392ERRID.ERR_MyClassAbstractCall1,
393ERRID.ERR_EndDisallowedInDllProjects,
394ERRID.ERR_BlockLocalShadowing1,
395ERRID.ERR_ModuleNotAtNamespace,
396ERRID.ERR_NamespaceNotAtNamespace,
397ERRID.ERR_InvInsideEndsEnum,
398ERRID.ERR_InvalidOptionStrict,
399ERRID.ERR_EndStructureNoStructure,
400ERRID.ERR_EndModuleNoModule,
401ERRID.ERR_EndNamespaceNoNamespace,
402ERRID.ERR_ExpectedEndStructure,
403ERRID.ERR_ExpectedEndModule,
404ERRID.ERR_ExpectedEndNamespace,
405ERRID.ERR_OptionStmtWrongOrder,
406ERRID.ERR_StructCantInherit,
407ERRID.ERR_NewInStruct,
408ERRID.ERR_InvalidEndGet,
409ERRID.ERR_MissingEndGet,
410ERRID.ERR_InvalidEndSet,
411ERRID.ERR_MissingEndSet,
412ERRID.ERR_InvInsideEndsProperty,
413ERRID.ERR_DuplicateWriteabilityCategoryUsed,
414ERRID.ERR_ExpectedGreater,
415ERRID.ERR_AttributeStmtWrongOrder,
416ERRID.ERR_NoExplicitArraySizes,
417ERRID.ERR_BadPropertyFlags1,
418ERRID.ERR_InvalidOptionExplicit,
419ERRID.ERR_MultipleParameterSpecifiers,
420ERRID.ERR_MultipleOptionalParameterSpecifiers,
421ERRID.ERR_UnsupportedProperty1,
422ERRID.ERR_InvalidOptionalParameterUsage1,
423ERRID.ERR_ReturnFromNonFunction,
424ERRID.ERR_UnterminatedStringLiteral,
425ERRID.ERR_UnsupportedType1,
426ERRID.ERR_InvalidEnumBase,
427ERRID.ERR_ByRefIllegal1,
428ERRID.ERR_UnreferencedAssembly3,
429ERRID.ERR_UnreferencedModule3,
430ERRID.ERR_ReturnWithoutValue,
431ERRID.ERR_UnsupportedField1,
432ERRID.ERR_UnsupportedMethod1,
433ERRID.ERR_NoNonIndexProperty1,
434ERRID.ERR_BadAttributePropertyType1,
435ERRID.ERR_LocalsCannotHaveAttributes,
436ERRID.ERR_PropertyOrFieldNotDefined1,
437ERRID.ERR_InvalidAttributeUsage2,
438ERRID.ERR_InvalidMultipleAttributeUsage1,
439ERRID.ERR_CantThrowNonException,
440ERRID.ERR_MustBeInCatchToRethrow,
441ERRID.ERR_ParamArrayMustBeByVal,
442ERRID.ERR_UseOfObsoleteSymbol2,
443ERRID.ERR_RedimNoSizes,
444ERRID.ERR_InitWithMultipleDeclarators,
445ERRID.ERR_InitWithExplicitArraySizes,
446ERRID.ERR_EndSyncLockNoSyncLock,
447ERRID.ERR_ExpectedEndSyncLock,
448ERRID.ERR_NameNotEvent2,
449ERRID.ERR_AddOrRemoveHandlerEvent,
450ERRID.ERR_UnrecognizedEnd,
451ERRID.ERR_ArrayInitForNonArray2,
452ERRID.ERR_EndRegionNoRegion,
453ERRID.ERR_ExpectedEndRegion,
454ERRID.ERR_InheritsStmtWrongOrder,
455ERRID.ERR_AmbiguousAcrossInterfaces3,
456ERRID.ERR_DefaultPropertyAmbiguousAcrossInterfaces4,
457ERRID.ERR_InterfaceEventCantUse1,
458ERRID.ERR_ExecutableAsDeclaration,
459ERRID.ERR_StructureNoDefault1,
460ERRID.ERR_MustShadow2,
461ERRID.ERR_OverrideWithOptionalTypes2,
462ERRID.ERR_ExpectedEndOfExpression,
463ERRID.ERR_StructsCannotHandleEvents,
464ERRID.ERR_OverridesImpliesOverridable,
465ERRID.ERR_LocalNamedSameAsParam1,
466ERRID.ERR_ModuleCantUseTypeSpecifier1,
467ERRID.ERR_InValidSubMainsFound1,
468ERRID.ERR_MoreThanOneValidMainWasFound2,
469ERRID.ERR_CannotConvertValue2,
470ERRID.ERR_OnErrorInSyncLock,
471ERRID.ERR_NarrowingConversionCollection2,
472ERRID.ERR_GotoIntoTryHandler,
473ERRID.ERR_GotoIntoSyncLock,
474ERRID.ERR_GotoIntoWith,
475ERRID.ERR_GotoIntoFor,
476ERRID.ERR_BadAttributeNonPublicConstructor,
477ERRID.ERR_DefaultEventNotFound1,
478ERRID.ERR_InvalidNonSerializedUsage,
479ERRID.ERR_ExpectedContinueKind,
480ERRID.ERR_ContinueDoNotWithinDo,
481ERRID.ERR_ContinueForNotWithinFor,
482ERRID.ERR_ContinueWhileNotWithinWhile,
483ERRID.ERR_DuplicateParameterSpecifier,
484ERRID.ERR_ModuleCantUseDLLDeclareSpecifier1,
485ERRID.ERR_StructCantUseDLLDeclareSpecifier1,
486ERRID.ERR_TryCastOfValueType1,
487ERRID.ERR_TryCastOfUnconstrainedTypeParam1,
488ERRID.ERR_AmbiguousDelegateBinding2,
489ERRID.ERR_SharedStructMemberCannotSpecifyNew,
490ERRID.ERR_GenericSubMainsFound1,
491ERRID.ERR_GeneralProjectImportsError3,
492ERRID.ERR_InvalidTypeForAliasesImport2,
493ERRID.ERR_UnsupportedConstant2,
494ERRID.ERR_ObsoleteArgumentsNeedParens,
495ERRID.ERR_ObsoleteLineNumbersAreLabels,
496ERRID.ERR_ObsoleteStructureNotType,
497ERRID.ERR_ObsoleteObjectNotVariant,
498ERRID.ERR_ObsoleteLetSetNotNeeded,
499ERRID.ERR_ObsoletePropertyGetLetSet,
500ERRID.ERR_ObsoleteWhileWend,
501ERRID.ERR_ObsoleteRedimAs,
502ERRID.ERR_ObsoleteOptionalWithoutValue,
503ERRID.ERR_ObsoleteGosub,
504ERRID.ERR_ObsoleteOnGotoGosub,
505ERRID.ERR_ObsoleteEndIf,
506ERRID.ERR_ObsoleteExponent,
507ERRID.ERR_ObsoleteAsAny,
508ERRID.ERR_ObsoleteGetStatement,
509ERRID.ERR_OverrideWithArrayVsParamArray2,
510ERRID.ERR_CircularBaseDependencies4,
511ERRID.ERR_NestedBase2,
512ERRID.ERR_AccessMismatchOutsideAssembly4,
513ERRID.ERR_InheritanceAccessMismatchOutside3,
514ERRID.ERR_UseOfObsoletePropertyAccessor3,
515ERRID.ERR_UseOfObsoletePropertyAccessor2,
516ERRID.ERR_AccessMismatchImplementedEvent6,
517ERRID.ERR_AccessMismatchImplementedEvent4,
518ERRID.ERR_InheritanceCycleInImportedType1,
519ERRID.ERR_NoNonObsoleteConstructorOnBase3,
520ERRID.ERR_NoNonObsoleteConstructorOnBase4,
521ERRID.ERR_RequiredNonObsoleteNewCall3,
522ERRID.ERR_RequiredNonObsoleteNewCall4,
523ERRID.ERR_InheritsTypeArgAccessMismatch7,
524ERRID.ERR_InheritsTypeArgAccessMismatchOutside5,
525ERRID.ERR_PartialTypeAccessMismatch3,
526ERRID.ERR_PartialTypeBadMustInherit1,
527ERRID.ERR_MustOverOnNotInheritPartClsMem1,
528ERRID.ERR_BaseMismatchForPartialClass3,
529ERRID.ERR_PartialTypeTypeParamNameMismatch3,
530ERRID.ERR_PartialTypeConstraintMismatch1,
531ERRID.ERR_LateBoundOverloadInterfaceCall1,
532ERRID.ERR_RequiredAttributeConstConversion2,
533ERRID.ERR_AmbiguousOverrides3,
534ERRID.ERR_OverriddenCandidate1,
535ERRID.ERR_AmbiguousImplements3,
536ERRID.ERR_AddressOfNotCreatableDelegate1,
537ERRID.ERR_ComClassGenericMethod,
538ERRID.ERR_SyntaxInCastOp,
539ERRID.ERR_ArrayInitializerForNonConstDim,
540ERRID.ERR_DelegateBindingFailure3,
541ERRID.ERR_StructLayoutAttributeNotAllowed,
542ERRID.ERR_IterationVariableShadowLocal1,
543ERRID.ERR_InvalidOptionInfer,
544ERRID.ERR_CircularInference1,
545ERRID.ERR_InAccessibleOverridingMethod5,
546ERRID.ERR_NoSuitableWidestType1,
547ERRID.ERR_AmbiguousWidestType3,
548ERRID.ERR_ExpectedAssignmentOperatorInInit,
549ERRID.ERR_ExpectedQualifiedNameInInit,
550ERRID.ERR_ExpectedLbrace,
551ERRID.ERR_UnrecognizedTypeOrWith,
552ERRID.ERR_DuplicateAggrMemberInit1,
553ERRID.ERR_NonFieldPropertyAggrMemberInit1,
554ERRID.ERR_SharedMemberAggrMemberInit1,
555ERRID.ERR_ParameterizedPropertyInAggrInit1,
556ERRID.ERR_NoZeroCountArgumentInitCandidates1,
557ERRID.ERR_AggrInitInvalidForObject,
558ERRID.ERR_InitializerExpected,
559ERRID.ERR_LineContWithCommentOrNoPrecSpace,
560ERRID.ERR_InvInsideEnum,
561ERRID.ERR_InvInsideBlock,
562ERRID.ERR_UnexpectedExpressionStatement,
563ERRID.ERR_WinRTEventWithoutDelegate,
564ERRID.ERR_SecurityCriticalAsyncInClassOrStruct,
565ERRID.ERR_SecurityCriticalAsync,
566ERRID.ERR_BadModuleFile1,
567ERRID.ERR_BadRefLib1,
568ERRID.ERR_EventHandlerSignatureIncompatible2,
569ERRID.ERR_ConditionalCompilationConstantNotValid,
570ERRID.ERR_InterfaceImplementedTwice1,
571ERRID.ERR_InterfaceNotImplemented1,
572ERRID.ERR_AmbiguousImplementsMember3,
573ERRID.ERR_ImplementsOnNew,
574ERRID.ERR_ArrayInitInStruct,
575ERRID.ERR_EventTypeNotDelegate,
576ERRID.ERR_ProtectedTypeOutsideClass,
577ERRID.ERR_DefaultPropertyWithNoParams,
578ERRID.ERR_InitializerInStruct,
579ERRID.ERR_DuplicateImport1,
580ERRID.ERR_BadModuleFlags1,
581ERRID.ERR_ImplementsStmtWrongOrder,
582ERRID.ERR_MemberConflictWithSynth4,
583ERRID.ERR_SynthMemberClashesWithSynth7,
584ERRID.ERR_SynthMemberClashesWithMember5,
585ERRID.ERR_MemberClashesWithSynth6,
586ERRID.ERR_SetHasOnlyOneParam,
587ERRID.ERR_SetValueNotPropertyType,
588ERRID.ERR_SetHasToBeByVal1,
589ERRID.ERR_StructureCantUseProtected,
590ERRID.ERR_BadInterfaceDelegateSpecifier1,
591ERRID.ERR_BadInterfaceEnumSpecifier1,
592ERRID.ERR_BadInterfaceClassSpecifier1,
593ERRID.ERR_BadInterfaceStructSpecifier1,
594ERRID.ERR_UseOfObsoleteSymbolNoMessage1,
595ERRID.ERR_MetaDataIsNotAssembly,
596ERRID.ERR_MetaDataIsNotModule,
597ERRID.ERR_ReferenceComparison3,
598ERRID.ERR_CatchVariableNotLocal1,
599ERRID.ERR_ModuleMemberCantImplement,
600ERRID.ERR_EventDelegatesCantBeFunctions,
601ERRID.ERR_InvalidDate,
602ERRID.ERR_CantOverride4,
603ERRID.ERR_CantSpecifyArraysOnBoth,
604ERRID.ERR_NotOverridableRequiresOverrides,
605ERRID.ERR_PrivateTypeOutsideType,
606ERRID.ERR_ParamArrayWrongType,
607ERRID.ERR_CoClassMissing2,
608ERRID.ERR_InvalidMeReference,
609ERRID.ERR_InvalidImplicitMeReference,
610ERRID.ERR_RuntimeMemberNotFound2,
611ERRID.ERR_BadPropertyAccessorFlags,
612ERRID.ERR_BadPropertyAccessorFlagsRestrict,
613ERRID.ERR_OnlyOneAccessorForGetSet,
614ERRID.ERR_NoAccessibleSet,
615ERRID.ERR_NoAccessibleGet,
616ERRID.ERR_WriteOnlyNoAccessorFlag,
617ERRID.ERR_ReadOnlyNoAccessorFlag,
618ERRID.ERR_BadPropertyAccessorFlags1,
619ERRID.ERR_BadPropertyAccessorFlags2,
620ERRID.ERR_BadPropertyAccessorFlags3,
621ERRID.ERR_InAccessibleCoClass3,
622ERRID.ERR_MissingValuesForArraysInApplAttrs,
623ERRID.ERR_ExitEventMemberNotInvalid,
624ERRID.ERR_InvInsideEndsEvent,
625ERRID.ERR_MissingEndEvent,
626ERRID.ERR_MissingEndAddHandler,
627ERRID.ERR_MissingEndRemoveHandler,
628ERRID.ERR_MissingEndRaiseEvent,
629ERRID.ERR_CustomEventInvInInterface,
630ERRID.ERR_CustomEventRequiresAs,
631ERRID.ERR_InvalidEndEvent,
632ERRID.ERR_InvalidEndAddHandler,
633ERRID.ERR_InvalidEndRemoveHandler,
634ERRID.ERR_InvalidEndRaiseEvent,
635ERRID.ERR_DuplicateAddHandlerDef,
636ERRID.ERR_DuplicateRemoveHandlerDef,
637ERRID.ERR_DuplicateRaiseEventDef,
638ERRID.ERR_MissingAddHandlerDef1,
639ERRID.ERR_MissingRemoveHandlerDef1,
640ERRID.ERR_MissingRaiseEventDef1,
641ERRID.ERR_EventAddRemoveHasOnlyOneParam,
642ERRID.ERR_EventAddRemoveByrefParamIllegal,
643ERRID.ERR_SpecifiersInvOnEventMethod,
644ERRID.ERR_AddRemoveParamNotEventType,
645ERRID.ERR_RaiseEventShapeMismatch1,
646ERRID.ERR_EventMethodOptionalParamIllegal1,
647ERRID.ERR_CantReferToMyGroupInsideGroupType1,
648ERRID.ERR_InvalidUseOfCustomModifier,
649ERRID.ERR_InvalidOptionStrictCustom,
650ERRID.ERR_ObsoleteInvalidOnEventMember,
651ERRID.ERR_DelegateBindingIncompatible2,
652ERRID.ERR_ExpectedXmlName,
653ERRID.ERR_UndefinedXmlPrefix,
654ERRID.ERR_DuplicateXmlAttribute,
655ERRID.ERR_MismatchedXmlEndTag,
656ERRID.ERR_MissingXmlEndTag,
657ERRID.ERR_ReservedXmlPrefix,
658ERRID.ERR_MissingVersionInXmlDecl,
659ERRID.ERR_IllegalAttributeInXmlDecl,
660ERRID.ERR_QuotedEmbeddedExpression,
661ERRID.ERR_VersionMustBeFirstInXmlDecl,
662ERRID.ERR_AttributeOrder,
663ERRID.ERR_ExpectedXmlEndEmbedded,
664ERRID.ERR_ExpectedXmlEndPI,
665ERRID.ERR_ExpectedXmlEndComment,
666ERRID.ERR_ExpectedXmlEndCData,
667ERRID.ERR_ExpectedSQuote,
668ERRID.ERR_ExpectedQuote,
669ERRID.ERR_ExpectedLT,
670ERRID.ERR_StartAttributeValue,
671ERRID.ERR_ExpectedDiv,
672ERRID.ERR_NoXmlAxesLateBinding,
673ERRID.ERR_IllegalXmlStartNameChar,
674ERRID.ERR_IllegalXmlNameChar,
675ERRID.ERR_IllegalXmlCommentChar,
676ERRID.ERR_EmbeddedExpression,
677ERRID.ERR_ExpectedXmlWhiteSpace,
678ERRID.ERR_IllegalProcessingInstructionName,
679ERRID.ERR_DTDNotSupported,
680ERRID.ERR_IllegalXmlWhiteSpace,
681ERRID.ERR_ExpectedSColon,
682ERRID.ERR_ExpectedXmlBeginEmbedded,
683ERRID.ERR_XmlEntityReference,
684ERRID.ERR_InvalidAttributeValue1,
685ERRID.ERR_InvalidAttributeValue2,
686ERRID.ERR_ReservedXmlNamespace,
687ERRID.ERR_IllegalDefaultNamespace,
688ERRID.ERR_QualifiedNameNotAllowed,
689ERRID.ERR_ExpectedXmlns,
690ERRID.ERR_IllegalXmlnsPrefix,
691ERRID.ERR_XmlFeaturesNotAvailable,
692ERRID.ERR_UnableToReadUacManifest2,
693ERRID.ERR_TypeMismatchForXml3,
694ERRID.ERR_BinaryOperandsForXml4,
695ERRID.ERR_FullWidthAsXmlDelimiter,
696ERRID.ERR_XmlEndCDataNotAllowedInContent,
697ERRID.ERR_EventImplRemoveHandlerParamWrong,
698ERRID.ERR_MixingWinRTAndNETEvents,
699ERRID.ERR_AddParamWrongForWinRT,
700ERRID.ERR_RemoveParamWrongForWinRT,
701ERRID.ERR_ReImplementingWinRTInterface5,
702ERRID.ERR_ReImplementingWinRTInterface4,
703ERRID.ERR_XmlEndElementNoMatchingStart,
704ERRID.ERR_UndefinedTypeOrNamespace1,
705ERRID.ERR_BadInterfaceInterfaceSpecifier1,
706ERRID.ERR_TypeClashesWithVbCoreType4,
707ERRID.ERR_SecurityAttributeMissingAction,
708ERRID.ERR_SecurityAttributeInvalidAction,
709ERRID.ERR_SecurityAttributeInvalidActionAssembly,
710ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod,
711ERRID.ERR_PrincipalPermissionInvalidAction,
712ERRID.ERR_PermissionSetAttributeInvalidFile,
713ERRID.ERR_PermissionSetAttributeFileReadError,
714ERRID.ERR_ExpectedWarningKeyword,
715ERRID.ERR_InvalidHashAlgorithmName,
716ERRID.ERR_InvalidSubsystemVersion,
717ERRID.ERR_LibAnycpu32bitPreferredConflict,
718ERRID.ERR_RestrictedAccess,
719ERRID.ERR_RestrictedConversion1,
720ERRID.ERR_NoTypecharInLabel,
721ERRID.ERR_RestrictedType1,
722ERRID.ERR_NoTypecharInAlias,
723ERRID.ERR_NoAccessibleConstructorOnBase,
724ERRID.ERR_BadStaticLocalInStruct,
725ERRID.ERR_DuplicateLocalStatic1,
726ERRID.ERR_ImportAliasConflictsWithType2,
727ERRID.ERR_CantShadowAMustOverride1,
728ERRID.ERR_MultipleEventImplMismatch3,
729ERRID.ERR_BadSpecifierCombo2,
730ERRID.ERR_MustBeOverloads2,
731ERRID.ERR_MustOverridesInClass1,
732ERRID.ERR_HandlesSyntaxInClass,
733ERRID.ERR_SynthMemberShadowsMustOverride5,
734ERRID.ERR_CannotOverrideInAccessibleMember,
735ERRID.ERR_HandlesSyntaxInModule,
736ERRID.ERR_IsNotOpRequiresReferenceTypes1,
737ERRID.ERR_ClashWithReservedEnumMember1,
738ERRID.ERR_MultiplyDefinedEnumMember2,
739ERRID.ERR_BadUseOfVoid,
740ERRID.ERR_EventImplMismatch5,
741ERRID.ERR_ForwardedTypeUnavailable3,
742ERRID.ERR_TypeFwdCycle2,
743ERRID.ERR_BadTypeInCCExpression,
744ERRID.ERR_BadCCExpression,
745ERRID.ERR_VoidArrayDisallowed,
746ERRID.ERR_MetadataMembersAmbiguous3,
747ERRID.ERR_TypeOfExprAlwaysFalse2,
748ERRID.ERR_OnlyPrivatePartialMethods1,
749ERRID.ERR_PartialMethodsMustBePrivate,
750ERRID.ERR_OnlyOnePartialMethodAllowed2,
751ERRID.ERR_OnlyOneImplementingMethodAllowed3,
752ERRID.ERR_PartialMethodMustBeEmpty,
753ERRID.ERR_PartialMethodsMustBeSub1,
754ERRID.ERR_PartialMethodGenericConstraints2,
755ERRID.ERR_PartialDeclarationImplements1,
756ERRID.ERR_NoPartialMethodInAddressOf1,
757ERRID.ERR_ImplementationMustBePrivate2,
758ERRID.ERR_PartialMethodParamNamesMustMatch3,
759ERRID.ERR_PartialMethodTypeParamNameMismatch3,
760ERRID.ERR_PropertyDoesntImplementAllAccessors,
761ERRID.ERR_InvalidAttributeUsageOnAccessor,
762ERRID.ERR_NestedTypeInInheritsClause2,
763ERRID.ERR_TypeInItsInheritsClause1,
764ERRID.ERR_BaseTypeReferences2,
765ERRID.ERR_IllegalBaseTypeReferences3,
766ERRID.ERR_InvalidCoClass1,
767ERRID.ERR_InvalidOutputName,
768ERRID.ERR_InvalidFileAlignment,
769ERRID.ERR_InvalidDebugInformationFormat,
770ERRID.ERR_ConstantStringTooLong,
771ERRID.ERR_MustInheritEventNotOverridden,
772ERRID.ERR_BadAttributeSharedProperty1,
773ERRID.ERR_BadAttributeReadOnlyProperty1,
774ERRID.ERR_DuplicateResourceName1,
775ERRID.ERR_AttributeMustBeClassNotStruct1,
776ERRID.ERR_AttributeMustInheritSysAttr,
777ERRID.ERR_AttributeCannotBeAbstract,
778ERRID.ERR_UnableToOpenResourceFile1,
779ERRID.ERR_BadAttributeNonPublicProperty1,
780ERRID.ERR_STAThreadAndMTAThread0,
781ERRID.ERR_IndirectUnreferencedAssembly4,
782ERRID.ERR_BadAttributeNonPublicType1,
783ERRID.ERR_BadAttributeNonPublicContType2,
784ERRID.ERR_BadMetaDataReference1,
785ERRID.ERR_DllImportOnNonEmptySubOrFunction,
786ERRID.ERR_DllImportNotLegalOnDeclare,
787ERRID.ERR_DllImportNotLegalOnGetOrSet,
788ERRID.ERR_DllImportOnGenericSubOrFunction,
789ERRID.ERR_ComClassOnGeneric,
790ERRID.ERR_DllImportOnInstanceMethod,
791ERRID.ERR_DllImportOnInterfaceMethod,
792ERRID.ERR_DllImportNotLegalOnEventMethod,
793ERRID.ERR_FriendAssemblyBadArguments,
794ERRID.ERR_FriendAssemblyStrongNameRequired,
795ERRID.ERR_FriendAssemblyNameInvalid,
796ERRID.ERR_FriendAssemblyBadAccessOverride2,
797ERRID.ERR_AbsentReferenceToPIA1,
798ERRID.ERR_CannotLinkClassWithNoPIA1,
799ERRID.ERR_InvalidStructMemberNoPIA1,
800ERRID.ERR_NoPIAAttributeMissing2,
801ERRID.ERR_NestedGlobalNamespace,
802ERRID.ERR_PIAHasNoAssemblyGuid1,
803ERRID.ERR_DuplicateLocalTypes3,
804ERRID.ERR_PIAHasNoTypeLibAttribute1,
805ERRID.ERR_SourceInterfaceMustBeInterface,
806ERRID.ERR_EventNoPIANoBackingMember,
807ERRID.ERR_NestedInteropType,
808ERRID.ERR_IsNestedIn2,
809ERRID.ERR_LocalTypeNameClash2,
810ERRID.ERR_InteropMethodWithBody1,
811ERRID.ERR_UseOfLocalBeforeDeclaration1,
812ERRID.ERR_UseOfKeywordFromModule1,
813ERRID.ERR_BogusWithinLineIf,
814ERRID.ERR_CharToIntegralTypeMismatch1,
815ERRID.ERR_IntegralToCharTypeMismatch1,
816ERRID.ERR_NoDirectDelegateConstruction1,
817ERRID.ERR_MethodMustBeFirstStatementOnLine,
818ERRID.ERR_AttrAssignmentNotFieldOrProp1,
819ERRID.ERR_StrictDisallowsObjectComparison1,
820ERRID.ERR_NoConstituentArraySizes,
821ERRID.ERR_FileAttributeNotAssemblyOrModule,
822ERRID.ERR_FunctionResultCannotBeIndexed1,
823ERRID.ERR_ArgumentSyntax,
824ERRID.ERR_ExpectedResumeOrGoto,
825ERRID.ERR_ExpectedAssignmentOperator,
826ERRID.ERR_NamedArgAlsoOmitted2,
827ERRID.ERR_CannotCallEvent1,
828ERRID.ERR_ForEachCollectionDesignPattern1,
829ERRID.ERR_DefaultValueForNonOptionalParam,
830ERRID.ERR_ExpectedDotAfterMyBase,
831ERRID.ERR_ExpectedDotAfterMyClass,
832ERRID.ERR_StrictArgumentCopyBackNarrowing3,
833ERRID.ERR_LbElseifAfterElse,
834ERRID.ERR_StandaloneAttribute,
835ERRID.ERR_NoUniqueConstructorOnBase2,
836ERRID.ERR_ExtraNextVariable,
837ERRID.ERR_RequiredNewCallTooMany2,
838ERRID.ERR_ForCtlVarArraySizesSpecified,
839ERRID.ERR_BadFlagsOnNewOverloads,
840ERRID.ERR_TypeCharOnGenericParam,
841ERRID.ERR_TooFewGenericArguments1,
842ERRID.ERR_TooManyGenericArguments1,
843ERRID.ERR_GenericConstraintNotSatisfied2,
844ERRID.ERR_TypeOrMemberNotGeneric1,
845ERRID.ERR_NewIfNullOnGenericParam,
846ERRID.ERR_MultipleClassConstraints1,
847ERRID.ERR_ConstNotClassInterfaceOrTypeParam1,
848ERRID.ERR_DuplicateTypeParamName1,
849ERRID.ERR_UnboundTypeParam2,
850ERRID.ERR_IsOperatorGenericParam1,
851ERRID.ERR_ArgumentCopyBackNarrowing3,
852ERRID.ERR_ShadowingGenericParamWithMember1,
853ERRID.ERR_GenericParamBase2,
854ERRID.ERR_ImplementsGenericParam,
855ERRID.ERR_OnlyNullLowerBound,
856ERRID.ERR_ClassConstraintNotInheritable1,
857ERRID.ERR_ConstraintIsRestrictedType1,
858ERRID.ERR_GenericParamsOnInvalidMember,
859ERRID.ERR_GenericArgsOnAttributeSpecifier,
860ERRID.ERR_AttrCannotBeGenerics,
861ERRID.ERR_BadStaticLocalInGenericMethod,
862ERRID.ERR_SyntMemberShadowsGenericParam3,
863ERRID.ERR_ConstraintAlreadyExists1,
864ERRID.ERR_InterfacePossiblyImplTwice2,
865ERRID.ERR_ModulesCannotBeGeneric,
866ERRID.ERR_GenericClassCannotInheritAttr,
867ERRID.ERR_DeclaresCantBeInGeneric,
868ERRID.ERR_OverrideWithConstraintMismatch2,
869ERRID.ERR_ImplementsWithConstraintMismatch3,
870ERRID.ERR_OpenTypeDisallowed,
871ERRID.ERR_HandlesInvalidOnGenericMethod,
872ERRID.ERR_MultipleNewConstraints,
873ERRID.ERR_MustInheritForNewConstraint2,
874ERRID.ERR_NoSuitableNewForNewConstraint2,
875ERRID.ERR_BadGenericParamForNewConstraint2,
876ERRID.ERR_NewArgsDisallowedForTypeParam,
877ERRID.ERR_DuplicateRawGenericTypeImport1,
878ERRID.ERR_NoTypeArgumentCountOverloadCand1,
879ERRID.ERR_TypeArgsUnexpected,
880ERRID.ERR_NameSameAsMethodTypeParam1,
881ERRID.ERR_TypeParamNameFunctionNameCollision,
882ERRID.ERR_BadConstraintSyntax,
883ERRID.ERR_OfExpected,
884ERRID.ERR_ArrayOfRawGenericInvalid,
885ERRID.ERR_ForEachAmbiguousIEnumerable1,
886ERRID.ERR_IsNotOperatorGenericParam1,
887ERRID.ERR_TypeParamQualifierDisallowed,
888ERRID.ERR_TypeParamMissingCommaOrRParen,
889ERRID.ERR_TypeParamMissingAsCommaOrRParen,
890ERRID.ERR_MultipleReferenceConstraints,
891ERRID.ERR_MultipleValueConstraints,
892ERRID.ERR_NewAndValueConstraintsCombined,
893ERRID.ERR_RefAndValueConstraintsCombined,
894ERRID.ERR_BadTypeArgForStructConstraint2,
895ERRID.ERR_BadTypeArgForRefConstraint2,
896ERRID.ERR_RefAndClassTypeConstrCombined,
897ERRID.ERR_ValueAndClassTypeConstrCombined,
898ERRID.ERR_ConstraintClashIndirectIndirect4,
899ERRID.ERR_ConstraintClashDirectIndirect3,
900ERRID.ERR_ConstraintClashIndirectDirect3,
901ERRID.ERR_ConstraintCycleLink2,
902ERRID.ERR_ConstraintCycle2,
903ERRID.ERR_TypeParamWithStructConstAsConst,
904ERRID.ERR_NullableDisallowedForStructConstr1,
905ERRID.ERR_ConflictingDirectConstraints3,
906ERRID.ERR_InterfaceUnifiesWithInterface2,
907ERRID.ERR_BaseUnifiesWithInterfaces3,
908ERRID.ERR_InterfaceBaseUnifiesWithBase4,
909ERRID.ERR_InterfaceUnifiesWithBase3,
910ERRID.ERR_OptionalsCantBeStructGenericParams,
911ERRID.ERR_AddressOfNullableMethod,
912ERRID.ERR_IsOperatorNullable1,
913ERRID.ERR_IsNotOperatorNullable1,
914ERRID.ERR_ClassInheritsBaseUnifiesWithInterfaces3,
915ERRID.ERR_ClassInheritsInterfaceBaseUnifiesWithBase4,
916ERRID.ERR_ClassInheritsInterfaceUnifiesWithBase3,
917ERRID.ERR_ShadowingTypeOutsideClass1,
918ERRID.ERR_PropertySetParamCollisionWithValue,
919ERRID.ERR_SxSIndirectRefHigherThanDirectRef3,
920ERRID.ERR_DuplicateReference2,
921ERRID.ERR_DuplicateReferenceStrong,
922ERRID.ERR_IllegalCallOrIndex,
923ERRID.ERR_ConflictDefaultPropertyAttribute,
924ERRID.ERR_BadAttributeUuid2,
925ERRID.ERR_ComClassAndReservedAttribute1,
926ERRID.ERR_ComClassRequiresPublicClass2,
927ERRID.ERR_ComClassReservedDispIdZero1,
928ERRID.ERR_ComClassReservedDispId1,
929ERRID.ERR_ComClassDuplicateGuids1,
930ERRID.ERR_ComClassCantBeAbstract0,
931ERRID.ERR_ComClassRequiresPublicClass1,
932ERRID.ERR_UnknownOperator,
933ERRID.ERR_DuplicateConversionCategoryUsed,
934ERRID.ERR_OperatorNotOverloadable,
935ERRID.ERR_InvalidHandles,
936ERRID.ERR_InvalidImplements,
937ERRID.ERR_EndOperatorExpected,
938ERRID.ERR_EndOperatorNotAtLineStart,
939ERRID.ERR_InvalidEndOperator,
940ERRID.ERR_ExitOperatorNotValid,
941ERRID.ERR_ParamArrayIllegal1,
942ERRID.ERR_OptionalIllegal1,
943ERRID.ERR_OperatorMustBePublic,
944ERRID.ERR_OperatorMustBeShared,
945ERRID.ERR_BadOperatorFlags1,
946ERRID.ERR_OneParameterRequired1,
947ERRID.ERR_TwoParametersRequired1,
948ERRID.ERR_OneOrTwoParametersRequired1,
949ERRID.ERR_ConvMustBeWideningOrNarrowing,
950ERRID.ERR_OperatorDeclaredInModule,
951ERRID.ERR_InvalidSpecifierOnNonConversion1,
952ERRID.ERR_UnaryParamMustBeContainingType1,
953ERRID.ERR_BinaryParamMustBeContainingType1,
954ERRID.ERR_ConvParamMustBeContainingType1,
955ERRID.ERR_OperatorRequiresBoolReturnType1,
956ERRID.ERR_ConversionToSameType,
957ERRID.ERR_ConversionToInterfaceType,
958ERRID.ERR_ConversionToBaseType,
959ERRID.ERR_ConversionToDerivedType,
960ERRID.ERR_ConversionToObject,
961ERRID.ERR_ConversionFromInterfaceType,
962ERRID.ERR_ConversionFromBaseType,
963ERRID.ERR_ConversionFromDerivedType,
964ERRID.ERR_ConversionFromObject,
965ERRID.ERR_MatchingOperatorExpected2,
966ERRID.ERR_UnacceptableLogicalOperator3,
967ERRID.ERR_ConditionOperatorRequired3,
968ERRID.ERR_CopyBackTypeMismatch3,
969ERRID.ERR_ForLoopOperatorRequired2,
970ERRID.ERR_UnacceptableForLoopOperator2,
971ERRID.ERR_UnacceptableForLoopRelOperator2,
972ERRID.ERR_OperatorRequiresIntegerParameter1,
973ERRID.ERR_CantSpecifyNullableOnBoth,
974ERRID.ERR_BadTypeArgForStructConstraintNull,
975ERRID.ERR_CantSpecifyArrayAndNullableOnBoth,
976ERRID.ERR_CantSpecifyTypeCharacterOnIIF,
977ERRID.ERR_IllegalOperandInIIFCount,
978ERRID.ERR_IllegalOperandInIIFName,
979ERRID.ERR_IllegalOperandInIIFConversion,
980ERRID.ERR_IllegalCondTypeInIIF,
981ERRID.ERR_CantCallIIF,
982ERRID.ERR_CantSpecifyAsNewAndNullable,
983ERRID.ERR_IllegalOperandInIIFConversion2,
984ERRID.ERR_BadNullTypeInCCExpression,
985ERRID.ERR_NullableImplicit,
986ERRID.ERR_DuplicateResourceFileName1,
987ERRID.ERR_ExpectedDotAfterGlobalNameSpace,
988ERRID.ERR_NoGlobalExpectedIdentifier,
989ERRID.ERR_NoGlobalInHandles,
990ERRID.ERR_ElseIfNoMatchingIf,
991ERRID.ERR_BadAttributeConstructor2,
992ERRID.ERR_EndUsingWithoutUsing,
993ERRID.ERR_ExpectedEndUsing,
994ERRID.ERR_GotoIntoUsing,
995ERRID.ERR_UsingRequiresDisposePattern,
996ERRID.ERR_UsingResourceVarNeedsInitializer,
997ERRID.ERR_UsingResourceVarCantBeArray,
998ERRID.ERR_OnErrorInUsing,
999ERRID.ERR_PropertyNameConflictInMyCollection,
1000ERRID.ERR_InvalidImplicitVar,
1001ERRID.ERR_ObjectInitializerRequiresFieldName,
1002ERRID.ERR_ExpectedFrom,
1003ERRID.ERR_LambdaBindingMismatch1,
1004ERRID.ERR_CannotLiftByRefParamQuery1,
1005ERRID.ERR_ExpressionTreeNotSupported,
1006ERRID.ERR_CannotLiftStructureMeQuery,
1007ERRID.ERR_InferringNonArrayType1,
1008ERRID.ERR_ByRefParamInExpressionTree,
1009ERRID.ERR_DuplicateAnonTypeMemberName1,
1010ERRID.ERR_BadAnonymousTypeForExprTree,
1011ERRID.ERR_CannotLiftAnonymousType1,
1012ERRID.ERR_ExtensionOnlyAllowedOnModuleSubOrFunction,
1013ERRID.ERR_ExtensionMethodNotInModule,
1014ERRID.ERR_ExtensionMethodNoParams,
1015ERRID.ERR_ExtensionMethodOptionalFirstArg,
1016ERRID.ERR_ExtensionMethodParamArrayFirstArg,
1017ERRID.ERR_AnonymousTypeFieldNameInference,
1018ERRID.ERR_NameNotMemberOfAnonymousType2,
1019ERRID.ERR_ExtensionAttributeInvalid,
1020ERRID.ERR_AnonymousTypePropertyOutOfOrder1,
1021ERRID.ERR_AnonymousTypeDisallowsTypeChar,
1022ERRID.ERR_ExtensionMethodUncallable1,
1023ERRID.ERR_ExtensionMethodOverloadCandidate3,
1024ERRID.ERR_DelegateBindingMismatch,
1025ERRID.ERR_DelegateBindingTypeInferenceFails,
1026ERRID.ERR_TooManyArgs,
1027ERRID.ERR_NamedArgAlsoOmitted1,
1028ERRID.ERR_NamedArgUsedTwice1,
1029ERRID.ERR_NamedParamNotFound1,
1030ERRID.ERR_OmittedArgument1,
1031ERRID.ERR_UnboundTypeParam1,
1032ERRID.ERR_ExtensionMethodOverloadCandidate2,
1033ERRID.ERR_AnonymousTypeNeedField,
1034ERRID.ERR_AnonymousTypeNameWithoutPeriod,
1035ERRID.ERR_AnonymousTypeExpectedIdentifier,
1036ERRID.ERR_TooManyArgs2,
1037ERRID.ERR_NamedArgAlsoOmitted3,
1038ERRID.ERR_NamedArgUsedTwice3,
1039ERRID.ERR_NamedParamNotFound3,
1040ERRID.ERR_OmittedArgument3,
1041ERRID.ERR_UnboundTypeParam3,
1042ERRID.ERR_TooFewGenericArguments2,
1043ERRID.ERR_TooManyGenericArguments2,
1044ERRID.ERR_ExpectedInOrEq,
1045ERRID.ERR_ExpectedQueryableSource,
1046ERRID.ERR_QueryOperatorNotFound,
1047ERRID.ERR_CannotUseOnErrorGotoWithClosure,
1048ERRID.ERR_CannotLiftRestrictedTypeQuery,
1049ERRID.ERR_QueryAnonymousTypeFieldNameInference,
1050ERRID.ERR_QueryDuplicateAnonTypeMemberName1,
1051ERRID.ERR_QueryAnonymousTypeDisallowsTypeChar,
1052ERRID.ERR_ReadOnlyInClosure,
1053ERRID.ERR_ExprTreeNoMultiDimArrayCreation,
1054ERRID.ERR_ExprTreeNoLateBind,
1055ERRID.ERR_ExpectedBy,
1056ERRID.ERR_QueryInvalidControlVariableName1,
1057ERRID.ERR_ExpectedIn,
1058ERRID.ERR_QueryNameNotDeclared,
1059ERRID.ERR_SharedEventNeedsHandlerInTheSameType,
1060ERRID.ERR_NestedFunctionArgumentNarrowing3,
1061ERRID.ERR_AnonTypeFieldXMLNameInference,
1062ERRID.ERR_QueryAnonTypeFieldXMLNameInference,
1063ERRID.ERR_ExpectedInto,
1064ERRID.ERR_TypeCharOnAggregation,
1065ERRID.ERR_ExpectedOn,
1066ERRID.ERR_ExpectedEquals,
1067ERRID.ERR_ExpectedAnd,
1068ERRID.ERR_EqualsTypeMismatch,
1069ERRID.ERR_EqualsOperandIsBad,
1070ERRID.ERR_LambdaNotDelegate1,
1071ERRID.ERR_LambdaNotCreatableDelegate1,
1072ERRID.ERR_CannotInferNullableForVariable1,
1073ERRID.ERR_NullableTypeInferenceNotSupported,
1074ERRID.ERR_ExpectedJoin,
1075ERRID.ERR_NullableParameterMustSpecifyType,
1076ERRID.ERR_IterationVariableShadowLocal2,
1077ERRID.ERR_LambdasCannotHaveAttributes,
1078ERRID.ERR_LambdaInSelectCaseExpr,
1079ERRID.ERR_AddressOfInSelectCaseExpr,
1080ERRID.ERR_NullableCharNotSupported,
1081ERRID.ERR_CannotLiftStructureMeLambda,
1082ERRID.ERR_CannotLiftByRefParamLambda1,
1083ERRID.ERR_CannotLiftRestrictedTypeLambda,
1084ERRID.ERR_LambdaParamShadowLocal1,
1085ERRID.ERR_StrictDisallowImplicitObjectLambda,
1086ERRID.ERR_CantSpecifyParamsOnLambdaParamNoType,
1087ERRID.ERR_TypeInferenceFailure1,
1088ERRID.ERR_TypeInferenceFailure2,
1089ERRID.ERR_TypeInferenceFailure3,
1090ERRID.ERR_TypeInferenceFailureNoExplicit1,
1091ERRID.ERR_TypeInferenceFailureNoExplicit2,
1092ERRID.ERR_TypeInferenceFailureNoExplicit3,
1093ERRID.ERR_TypeInferenceFailureAmbiguous1,
1094ERRID.ERR_TypeInferenceFailureAmbiguous2,
1095ERRID.ERR_TypeInferenceFailureAmbiguous3,
1096ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous1,
1097ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous2,
1098ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous3,
1099ERRID.ERR_TypeInferenceFailureNoBest1,
1100ERRID.ERR_TypeInferenceFailureNoBest2,
1101ERRID.ERR_TypeInferenceFailureNoBest3,
1102ERRID.ERR_TypeInferenceFailureNoExplicitNoBest1,
1103ERRID.ERR_TypeInferenceFailureNoExplicitNoBest2,
1104ERRID.ERR_TypeInferenceFailureNoExplicitNoBest3,
1105ERRID.ERR_DelegateBindingMismatchStrictOff2,
1106ERRID.ERR_InaccessibleReturnTypeOfMember2,
1107ERRID.ERR_LocalNamedSameAsParamInLambda1,
1108ERRID.ERR_MultilineLambdasCannotContainOnError,
1109ERRID.ERR_LambdaBindingMismatch2,
1110ERRID.ERR_StaticInLambda,
1111ERRID.ERR_MultilineLambdaMissingSub,
1112ERRID.ERR_MultilineLambdaMissingFunction,
1113ERRID.ERR_StatementLambdaInExpressionTree,
1114ERRID.ERR_AttributeOnLambdaReturnType,
1115ERRID.ERR_ExpectedIdentifierOrGroup,
1116ERRID.ERR_UnexpectedGroup,
1117ERRID.ERR_DelegateBindingMismatchStrictOff3,
1118ERRID.ERR_DelegateBindingIncompatible3,
1119ERRID.ERR_ArgumentNarrowing2,
1120ERRID.ERR_OverloadCandidate1,
1121ERRID.ERR_AutoPropertyInitializedInStructure,
1122ERRID.ERR_InitializedExpandedProperty,
1123ERRID.ERR_LanguageVersion,
1124ERRID.ERR_ArrayInitNoType,
1125ERRID.ERR_NotACollection1,
1126ERRID.ERR_NoAddMethod1,
1127ERRID.ERR_CantCombineInitializers,
1128ERRID.ERR_EmptyAggregateInitializer,
1129ERRID.ERR_VarianceDisallowedHere,
1130ERRID.ERR_VarianceInterfaceNesting,
1131ERRID.ERR_VarianceOutParamDisallowed1,
1132ERRID.ERR_VarianceInParamDisallowed1,
1133ERRID.ERR_VarianceOutParamDisallowedForGeneric3,
1134ERRID.ERR_VarianceInParamDisallowedForGeneric3,
1135ERRID.ERR_VarianceOutParamDisallowedHere2,
1136ERRID.ERR_VarianceInParamDisallowedHere2,
1137ERRID.ERR_VarianceOutParamDisallowedHereForGeneric4,
1138ERRID.ERR_VarianceInParamDisallowedHereForGeneric4,
1139ERRID.ERR_VarianceTypeDisallowed2,
1140ERRID.ERR_VarianceTypeDisallowedForGeneric4,
1141ERRID.ERR_LambdaTooManyTypesObjectDisallowed,
1142ERRID.ERR_VarianceTypeDisallowedHere3,
1143ERRID.ERR_VarianceTypeDisallowedHereForGeneric5,
1144ERRID.ERR_AmbiguousCastConversion2,
1145ERRID.ERR_VariancePreventsSynthesizedEvents2,
1146ERRID.ERR_NestingViolatesCLS1,
1147ERRID.ERR_VarianceOutNullableDisallowed2,
1148ERRID.ERR_VarianceInNullableDisallowed2,
1149ERRID.ERR_VarianceOutByValDisallowed1,
1150ERRID.ERR_VarianceInReturnDisallowed1,
1151ERRID.ERR_VarianceOutConstraintDisallowed1,
1152ERRID.ERR_VarianceInReadOnlyPropertyDisallowed1,
1153ERRID.ERR_VarianceOutWriteOnlyPropertyDisallowed1,
1154ERRID.ERR_VarianceOutPropertyDisallowed1,
1155ERRID.ERR_VarianceInPropertyDisallowed1,
1156ERRID.ERR_VarianceOutByRefDisallowed1,
1157ERRID.ERR_VarianceInByRefDisallowed1,
1158ERRID.ERR_LambdaNoType,
1159ERRID.ERR_VarianceConversionFailedOut6,
1160ERRID.ERR_VarianceConversionFailedIn6,
1161ERRID.ERR_VarianceIEnumerableSuggestion3,
1162ERRID.ERR_VarianceConversionFailedTryOut4,
1163ERRID.ERR_VarianceConversionFailedTryIn4,
1164ERRID.ERR_AutoPropertyCantHaveParams,
1165ERRID.ERR_IdentityDirectCastForFloat,
1166ERRID.ERR_TypeDisallowsElements,
1167ERRID.ERR_TypeDisallowsAttributes,
1168ERRID.ERR_TypeDisallowsDescendants,
1169ERRID.ERR_TypeOrMemberNotGeneric2,
1170ERRID.ERR_ExtensionMethodCannotBeLateBound,
1171ERRID.ERR_TypeInferenceArrayRankMismatch1,
1172ERRID.ERR_QueryStrictDisallowImplicitObject,
1173ERRID.ERR_IfNoType,
1174ERRID.ERR_IfNoTypeObjectDisallowed,
1175ERRID.ERR_IfTooManyTypesObjectDisallowed,
1176ERRID.ERR_ArrayInitNoTypeObjectDisallowed,
1177ERRID.ERR_ArrayInitTooManyTypesObjectDisallowed,
1178ERRID.ERR_LambdaNoTypeObjectDisallowed,
1179ERRID.ERR_OverloadsModifierInModule,
1180ERRID.ERR_SubRequiresSingleStatement,
1181ERRID.ERR_SubDisallowsStatement,
1182ERRID.ERR_SubRequiresParenthesesLParen,
1183ERRID.ERR_SubRequiresParenthesesDot,
1184ERRID.ERR_SubRequiresParenthesesBang,
1185ERRID.ERR_CannotEmbedInterfaceWithGeneric,
1186ERRID.ERR_CannotUseGenericTypeAcrossAssemblyBoundaries,
1187ERRID.ERR_CannotUseGenericBaseTypeAcrossAssemblyBoundaries,
1188ERRID.ERR_BadAsyncByRefParam,
1189ERRID.ERR_BadIteratorByRefParam,
1190ERRID.ERR_BadAsyncInQuery,
1191ERRID.ERR_BadGetAwaiterMethod1,
1192ERRID.ERR_RestrictedResumableType1,
1193ERRID.ERR_BadAwaitNothing,
1194ERRID.ERR_AsyncSubMain,
1195ERRID.ERR_PartialMethodsMustNotBeAsync1,
1196ERRID.ERR_InvalidAsyncIteratorModifiers,
1197ERRID.ERR_BadAwaitNotInAsyncMethodOrLambda,
1198ERRID.ERR_BadIteratorReturn,
1199ERRID.ERR_BadYieldInTryHandler,
1200ERRID.ERR_BadYieldInNonIteratorMethod,
1201ERRID.ERR_BadReturnValueInIterator,
1202ERRID.ERR_BadAwaitInTryHandler,
1203ERRID.ERR_BadAsyncReturn,
1204ERRID.ERR_BadResumableAccessReturnVariable,
1205ERRID.ERR_BadIteratorExpressionLambda,
1206ERRID.ERR_ConstructorAsync,
1207ERRID.ERR_InvalidLambdaModifier,
1208ERRID.ERR_ReturnFromNonGenericTaskAsync,
1209ERRID.ERR_BadOverloadCandidates2,
1210ERRID.ERR_BadStaticInitializerInResumable,
1211ERRID.ERR_ResumablesCannotContainOnError,
1212ERRID.ERR_FriendRefNotEqualToThis,
1213ERRID.ERR_FriendRefSigningMismatch,
1214ERRID.ERR_FailureSigningAssembly,
1215ERRID.ERR_SignButNoPrivateKey,
1216ERRID.ERR_InvalidVersionFormat,
1217ERRID.ERR_ExpectedSingleScript,
1218ERRID.ERR_ReferenceDirectiveOnlyAllowedInScripts,
1219ERRID.ERR_NamespaceNotAllowedInScript,
1220ERRID.ERR_KeywordNotAllowedInScript,
1221ERRID.ERR_ReservedAssemblyName,
1222ERRID.ERR_ConstructorCannotBeDeclaredPartial,
1223ERRID.ERR_ModuleEmitFailure,
1224ERRID.ERR_ParameterNotValidForType,
1225ERRID.ERR_MarshalUnmanagedTypeNotValidForFields,
1226ERRID.ERR_MarshalUnmanagedTypeOnlyValidForFields,
1227ERRID.ERR_AttributeParameterRequired1,
1228ERRID.ERR_AttributeParameterRequired2,
1229ERRID.ERR_InvalidVersionFormat2,
1230ERRID.ERR_InvalidAssemblyCultureForExe,
1231ERRID.ERR_InvalidMultipleAttributeUsageInNetModule2,
1232ERRID.ERR_SecurityAttributeInvalidTarget,
1233ERRID.ERR_PublicKeyFileFailure,
1234ERRID.ERR_PublicKeyContainerFailure,
1235ERRID.ERR_InvalidAssemblyCulture,
1236ERRID.ERR_EncUpdateFailedMissingAttribute,
1237ERRID.ERR_CantAwaitAsyncSub1,
1238ERRID.ERR_ResumableLambdaInExpressionTree,
1239ERRID.ERR_DllImportOnResumableMethod,
1240ERRID.ERR_CannotLiftRestrictedTypeResumable1,
1241ERRID.ERR_BadIsCompletedOnCompletedGetResult2,
1242ERRID.ERR_SynchronizedAsyncMethod,
1243ERRID.ERR_BadAsyncReturnOperand1,
1244ERRID.ERR_DoesntImplementAwaitInterface2,
1245ERRID.ERR_BadAwaitInNonAsyncMethod,
1246ERRID.ERR_BadAwaitInNonAsyncVoidMethod,
1247ERRID.ERR_BadAwaitInNonAsyncLambda,
1248ERRID.ERR_LoopControlMustNotAwait,
1249ERRID.ERR_MyGroupCollectionAttributeCycle,
1250ERRID.ERR_LiteralExpected,
1251ERRID.ERR_PartialMethodDefaultParameterValueMismatch2,
1252ERRID.ERR_PartialMethodParamArrayMismatch2,
1253ERRID.ERR_NetModuleNameMismatch,
1254ERRID.ERR_BadModuleName,
1255ERRID.ERR_CmdOptionConflictsSource,
1256ERRID.ERR_TypeForwardedToMultipleAssemblies,
1257ERRID.ERR_InvalidSignaturePublicKey,
1258ERRID.ERR_CollisionWithPublicTypeInModule,
1259ERRID.ERR_ExportedTypeConflictsWithDeclaration,
1260ERRID.ERR_ExportedTypesConflict,
1261ERRID.ERR_AgnosticToMachineModule,
1262ERRID.ERR_ConflictingMachineModule,
1263ERRID.ERR_CryptoHashFailed,
1264ERRID.ERR_CantHaveWin32ResAndManifest,
1265ERRID.ERR_ForwardedTypeConflictsWithDeclaration,
1266ERRID.ERR_ForwardedTypeConflictsWithExportedType,
1267ERRID.ERR_ForwardedTypesConflict,
1268ERRID.ERR_TooLongMetadataName,
1269ERRID.ERR_MissingNetModuleReference,
1270ERRID.ERR_UnsupportedModule1,
1271ERRID.ERR_UnsupportedEvent1,
1272ERRID.ERR_NetModuleNameMustBeUnique,
1273ERRID.ERR_PDBWritingFailed,
1274ERRID.ERR_ParamDefaultValueDiffersFromAttribute,
1275ERRID.ERR_ResourceInModule,
1276ERRID.ERR_FieldHasMultipleDistinctConstantValues,
1277ERRID.ERR_AmbiguousInNamespaces2,
1278ERRID.ERR_EncNoPIAReference,
1279ERRID.ERR_LinkedNetmoduleMetadataMustProvideFullPEImage,
1280ERRID.ERR_CantReadRulesetFile,
1281ERRID.ERR_MetadataReferencesNotSupported,
1282ERRID.ERR_PlatformDoesntSupport,
1283ERRID.ERR_CantUseRequiredAttribute,
1284ERRID.ERR_EncodinglessSyntaxTree,
1285ERRID.ERR_InvalidFormatSpecifier,
1286ERRID.ERR_CannotBeMadeNullable1,
1287ERRID.ERR_BadConditionalWithRef,
1288ERRID.ERR_NullPropagatingOpInExpressionTree,
1289ERRID.ERR_TooLongOrComplexExpression,
1290ERRID.ERR_BadPdbData,
1291ERRID.ERR_AutoPropertyCantBeWriteOnly,
1292ERRID.ERR_ExpressionDoesntHaveName,
1293ERRID.ERR_InvalidNameOfSubExpression,
1294ERRID.ERR_MethodTypeArgsUnexpected,
1295ERRID.ERR_InReferencedAssembly,
1296ERRID.ERR_EncReferenceToAddedMember,
1297ERRID.ERR_InterpolationFormatWhitespace,
1298ERRID.ERR_InterpolationAlignmentOutOfRange,
1299ERRID.ERR_InterpolatedStringFactoryError,
1300ERRID.ERR_DebugEntryPointNotSourceMethodDefinition,
1301ERRID.ERR_InvalidPathMap,
1302ERRID.ERR_PublicSignNoKey,
1303ERRID.ERR_TooManyUserStrings,
1304ERRID.ERR_PeWritingFailure,
1305ERRID.ERR_OptionMustBeAbsolutePath,
1306ERRID.ERR_DocFileGen,
1307ERRID.ERR_TupleTooFewElements,
1308ERRID.ERR_TupleReservedElementNameAnyPosition,
1309ERRID.ERR_TupleReservedElementName,
1310ERRID.ERR_TupleDuplicateElementName,
1311ERRID.ERR_RefReturningCallInExpressionTree,
1312ERRID.ERR_SourceLinkRequiresPdb,
1313ERRID.ERR_CannotEmbedWithoutPdb,
1314ERRID.ERR_InvalidInstrumentationKind,
1315ERRID.ERR_ValueTupleTypeRefResolutionError1,
1316ERRID.ERR_TupleElementNamesAttributeMissing,
1317ERRID.ERR_ExplicitTupleElementNamesAttribute,
1318ERRID.ERR_TupleLiteralDisallowsTypeChar,
1319ERRID.ERR_DuplicateProcDefWithDifferentTupleNames2,
1320ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames2,
1321ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames3,
1322ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNamesReverse3,
1323ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames4,
1324ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames2,
1325ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames3,
1326ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNamesReverse3,
1327ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames4,
1328ERRID.ERR_NewWithTupleTypeSyntax,
1329ERRID.ERR_PredefinedValueTupleTypeMustBeStruct,
1330ERRID.ERR_PublicSignNetModule,
1331ERRID.ERR_BadAssemblyName,
1332ERRID.ERR_Merge_conflict_marker_encountered,
1333ERRID.ERR_BadSourceCodeKind,
1334ERRID.ERR_BadDocumentationMode,
1335ERRID.ERR_BadLanguageVersion,
1336ERRID.ERR_InvalidPreprocessorConstantType,
1337ERRID.ERR_TupleInferredNamesNotAvailable,
1338ERRID.ERR_InvalidDebugInfo,
1339ERRID.ERR_NoRefOutWhenRefOnly,
1340ERRID.ERR_NoNetModuleOutputWhenRefOutOrRefOnly,
1341ERRID.ERR_BadNonTrailingNamedArgument,
1342ERRID.ERR_ExpectedNamedArgumentInAttributeList,
1343ERRID.ERR_NamedArgumentSpecificationBeforeFixedArgumentInLateboundInvocation,
1344ERRID.ERR_ValueTupleResolutionAmbiguous3,
1345ERRID.ERR_CommentsAfterLineContinuationNotAvailable1,
1346ERRID.ERR_DefaultInterfaceImplementationInNoPIAType,
1347ERRID.ERR_ReAbstractionInNoPIAType,
1348ERRID.ERR_RuntimeDoesNotSupportDefaultInterfaceImplementation,
1349ERRID.ERR_RuntimeDoesNotSupportProtectedAccessForInterfaceMember,
1350ERRID.ERR_AssignmentInitOnly,
1351ERRID.ERR_OverridingInitOnlyProperty,
1352ERRID.ERR_PropertyDoesntImplementInitOnly,
1353ERRID.ERR_BadAbstractStaticMemberAccess,
1354ERRID.ERR_UnimplementedSharedMember,
1355ERRID.ERR_UnmanagedCallersOnlyNotSupported,
1356ERRID.ERR_MultipleAnalyzerConfigsInSameDir,
1357ERRID.ERR_StdInOptionProvidedButConsoleInputIsNotRedirected,
1358ERRID.ERR_UnsupportedCompilerFeature,
1359ERRID.ERR_DoNotUseCompilerFeatureRequired,
1360ERRID.ERR_NextAvailable,
1361ERRID.WRN_UseOfObsoleteSymbol2,
1362ERRID.WRN_InvalidOverrideDueToTupleNames2,
1363ERRID.WRN_MustOverloadBase4,
1364ERRID.WRN_OverrideType5,
1365ERRID.WRN_MustOverride2,
1366ERRID.WRN_DefaultnessShadowed4,
1367ERRID.WRN_UseOfObsoleteSymbolNoMessage1,
1368ERRID.WRN_AssemblyGeneration0,
1369ERRID.WRN_AssemblyGeneration1,
1370ERRID.WRN_ComClassNoMembers1,
1371ERRID.WRN_SynthMemberShadowsMember5,
1372ERRID.WRN_MemberShadowsSynthMember6,
1373ERRID.WRN_SynthMemberShadowsSynthMember7,
1374ERRID.WRN_UseOfObsoletePropertyAccessor3,
1375ERRID.WRN_UseOfObsoletePropertyAccessor2,
1376ERRID.WRN_FieldNotCLSCompliant1,
1377ERRID.WRN_BaseClassNotCLSCompliant2,
1378ERRID.WRN_ProcTypeNotCLSCompliant1,
1379ERRID.WRN_ParamNotCLSCompliant1,
1380ERRID.WRN_InheritedInterfaceNotCLSCompliant2,
1381ERRID.WRN_CLSMemberInNonCLSType3,
1382ERRID.WRN_NameNotCLSCompliant1,
1383ERRID.WRN_EnumUnderlyingTypeNotCLS1,
1384ERRID.WRN_NonCLSMemberInCLSInterface1,
1385ERRID.WRN_NonCLSMustOverrideInCLSType1,
1386ERRID.WRN_ArrayOverloadsNonCLS2,
1387ERRID.WRN_RootNamespaceNotCLSCompliant1,
1388ERRID.WRN_RootNamespaceNotCLSCompliant2,
1389ERRID.WRN_GenericConstraintNotCLSCompliant1,
1390ERRID.WRN_TypeNotCLSCompliant1,
1391ERRID.WRN_OptionalValueNotCLSCompliant1,
1392ERRID.WRN_CLSAttrInvalidOnGetSet,
1393ERRID.WRN_TypeConflictButMerged6,
1394ERRID.WRN_ShadowingGenericParamWithParam1,
1395ERRID.WRN_CannotFindStandardLibrary1,
1396ERRID.WRN_EventDelegateTypeNotCLSCompliant2,
1397ERRID.WRN_DebuggerHiddenIgnoredOnProperties,
1398ERRID.WRN_SelectCaseInvalidRange,
1399ERRID.WRN_CLSEventMethodInNonCLSType3,
1400ERRID.WRN_ExpectedInitComponentCall2,
1401ERRID.WRN_NamespaceCaseMismatch3,
1402ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1,
1403ERRID.WRN_UndefinedOrEmptyProjectNamespaceOrClass1,
1404ERRID.WRN_IndirectRefToLinkedAssembly2,
1405ERRID.WRN_DelaySignButNoKey,
1406ERRID.WRN_UnimplementedCommandLineSwitch,
1407ERRID.WRN_NoNonObsoleteConstructorOnBase3,
1408ERRID.WRN_NoNonObsoleteConstructorOnBase4,
1409ERRID.WRN_RequiredNonObsoleteNewCall3,
1410ERRID.WRN_RequiredNonObsoleteNewCall4,
1411ERRID.WRN_MissingAsClauseinOperator,
1412ERRID.WRN_ConstraintsFailedForInferredArgs2,
1413ERRID.WRN_ConditionalNotValidOnFunction,
1414ERRID.WRN_UseSwitchInsteadOfAttribute,
1415ERRID.WRN_TupleLiteralNameMismatch,
1416ERRID.WRN_ReferencedAssemblyDoesNotHaveStrongName,
1417ERRID.WRN_RecursiveAddHandlerCall,
1418ERRID.WRN_ImplicitConversionCopyBack,
1419ERRID.WRN_MustShadowOnMultipleInheritance2,
1420ERRID.WRN_RecursiveOperatorCall,
1421ERRID.WRN_ImplicitConversionSubst1,
1422ERRID.WRN_LateBindingResolution,
1423ERRID.WRN_ObjectMath1,
1424ERRID.WRN_ObjectMath2,
1425ERRID.WRN_ObjectAssumedVar1,
1426ERRID.WRN_ObjectAssumed1,
1427ERRID.WRN_ObjectAssumedProperty1,
1428ERRID.WRN_UnusedLocal,
1429ERRID.WRN_SharedMemberThroughInstance,
1430ERRID.WRN_RecursivePropertyCall,
1431ERRID.WRN_OverlappingCatch,
1432ERRID.WRN_DefAsgUseNullRefByRef,
1433ERRID.WRN_DuplicateCatch,
1434ERRID.WRN_ObjectMath1Not,
1435ERRID.WRN_BadChecksumValExtChecksum,
1436ERRID.WRN_MultipleDeclFileExtChecksum,
1437ERRID.WRN_BadGUIDFormatExtChecksum,
1438ERRID.WRN_ObjectMathSelectCase,
1439ERRID.WRN_EqualToLiteralNothing,
1440ERRID.WRN_NotEqualToLiteralNothing,
1441ERRID.WRN_UnusedLocalConst,
1442ERRID.WRN_ComClassInterfaceShadows5,
1443ERRID.WRN_ComClassPropertySetObject1,
1444ERRID.WRN_DefAsgUseNullRef,
1445ERRID.WRN_DefAsgNoRetValFuncRef1,
1446ERRID.WRN_DefAsgNoRetValOpRef1,
1447ERRID.WRN_DefAsgNoRetValPropRef1,
1448ERRID.WRN_DefAsgUseNullRefByRefStr,
1449ERRID.WRN_DefAsgUseNullRefStr,
1450ERRID.WRN_StaticLocalNoInference,
1451ERRID.WRN_InvalidAssemblyName,
1452ERRID.WRN_XMLDocBadXMLLine,
1453ERRID.WRN_XMLDocMoreThanOneCommentBlock,
1454ERRID.WRN_XMLDocNotFirstOnLine,
1455ERRID.WRN_XMLDocInsideMethod,
1456ERRID.WRN_XMLDocParseError1,
1457ERRID.WRN_XMLDocDuplicateXMLNode1,
1458ERRID.WRN_XMLDocIllegalTagOnElement2,
1459ERRID.WRN_XMLDocBadParamTag2,
1460ERRID.WRN_XMLDocParamTagWithoutName,
1461ERRID.WRN_XMLDocCrefAttributeNotFound1,
1462ERRID.WRN_XMLMissingFileOrPathAttribute1,
1463ERRID.WRN_XMLCannotWriteToXMLDocFile2,
1464ERRID.WRN_XMLDocWithoutLanguageElement,
1465ERRID.WRN_XMLDocReturnsOnWriteOnlyProperty,
1466ERRID.WRN_XMLDocOnAPartialType,
1467ERRID.WRN_XMLDocReturnsOnADeclareSub,
1468ERRID.WRN_XMLDocStartTagWithNoEndTag,
1469ERRID.WRN_XMLDocBadGenericParamTag2,
1470ERRID.WRN_XMLDocGenericParamTagWithoutName,
1471ERRID.WRN_XMLDocExceptionTagWithoutCRef,
1472ERRID.WRN_XMLDocInvalidXMLFragment,
1473ERRID.WRN_XMLDocBadFormedXML,
1474ERRID.WRN_InterfaceConversion2,
1475ERRID.WRN_LiftControlVariableLambda,
1476ERRID.WRN_LambdaPassedToRemoveHandler,
1477ERRID.WRN_LiftControlVariableQuery,
1478ERRID.WRN_RelDelegatePassedToRemoveHandler,
1479ERRID.WRN_AmbiguousCastConversion2,
1480ERRID.WRN_VarianceDeclarationAmbiguous3,
1481ERRID.WRN_ArrayInitNoTypeObjectAssumed,
1482ERRID.WRN_TypeInferenceAssumed3,
1483ERRID.WRN_VarianceConversionFailedOut6,
1484ERRID.WRN_VarianceConversionFailedIn6,
1485ERRID.WRN_VarianceIEnumerableSuggestion3,
1486ERRID.WRN_VarianceConversionFailedTryOut4,
1487ERRID.WRN_VarianceConversionFailedTryIn4,
1488ERRID.WRN_IfNoTypeObjectAssumed,
1489ERRID.WRN_IfTooManyTypesObjectAssumed,
1490ERRID.WRN_ArrayInitTooManyTypesObjectAssumed,
1491ERRID.WRN_LambdaNoTypeObjectAssumed,
1492ERRID.WRN_LambdaTooManyTypesObjectAssumed,
1493ERRID.WRN_MissingAsClauseinVarDecl,
1494ERRID.WRN_MissingAsClauseinFunction,
1495ERRID.WRN_MissingAsClauseinProperty,
1496ERRID.WRN_ObsoleteIdentityDirectCastForValueType,
1497ERRID.WRN_ImplicitConversion2,
1498ERRID.WRN_MutableStructureInUsing,
1499ERRID.WRN_MutableGenericStructureInUsing,
1500ERRID.WRN_DefAsgNoRetValFuncVal1,
1501ERRID.WRN_DefAsgNoRetValOpVal1,
1502ERRID.WRN_DefAsgNoRetValPropVal1,
1503ERRID.WRN_AsyncLacksAwaits,
1504ERRID.WRN_AsyncSubCouldBeFunction,
1505ERRID.WRN_UnobservedAwaitableExpression,
1506ERRID.WRN_UnobservedAwaitableDelegate,
1507ERRID.WRN_PrefixAndXmlnsLocalName,
1508ERRID.WRN_UseValueForXmlExpression3,
1509ERRID.WRN_ReturnTypeAttributeOnWriteOnlyProperty,
1510ERRID.WRN_InvalidVersionFormat,
1511ERRID.WRN_MainIgnored,
1512ERRID.WRN_EmptyPrefixAndXmlnsLocalName,
1513ERRID.WRN_DefAsgNoRetValWinRtEventVal1,
1514ERRID.WRN_AssemblyAttributeFromModuleIsOverridden,
1515ERRID.WRN_RefCultureMismatch,
1516ERRID.WRN_ConflictingMachineAssembly,
1517ERRID.WRN_PdbLocalNameTooLong,
1518ERRID.WRN_PdbUsingNameTooLong,
1519ERRID.WRN_XMLDocCrefToTypeParameter,
1520ERRID.WRN_AnalyzerCannotBeCreated,
1521ERRID.WRN_NoAnalyzerInAssembly,
1522ERRID.WRN_UnableToLoadAnalyzer,
1523ERRID.WRN_AttributeIgnoredWhenPublicSigning,
1524ERRID.WRN_Experimental,
1525ERRID.WRN_AttributeNotSupportedInVB,
1526ERRID.WRN_GeneratorFailedDuringInitialization,
1527ERRID.WRN_GeneratorFailedDuringGeneration,
1528ERRID.WRN_AnalyzerReferencesFramework,
1529ERRID.WRN_CallerArgumentExpressionAttributeSelfReferential,
1530ERRID.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName,
1531ERRID.WRN_AnalyzerReferencesNewerCompiler,
1532ERRID.WRN_DuplicateAnalyzerReference
Errors\MessageProvider.vb (92)
42Return ErrorFactory.IdToString(DirectCast(code, ERRID), language)
46Return ErrorFactory.GetMessageFormat(DirectCast(code, ERRID))
50Return ErrorFactory.GetDescription(DirectCast(code, ERRID))
54Return ErrorFactory.GetTitle(DirectCast(code, ERRID))
58Return ErrorFactory.GetHelpLink(DirectCast(code, ERRID))
62Return ErrorFactory.GetCategory(DirectCast(code, ERRID))
66Dim errid = DirectCast(code, ERRID)
67If errid = ERRID.Void Then
69ElseIf errid = ERRID.Unknown Then
83Dim errorId = DirectCast(code, ERRID)
85code <> ERRID.WRN_BadSwitch AndAlso
86code <> ERRID.WRN_NoConfigInResponseFile AndAlso
87code <> ERRID.WRN_IgnoreModuleManifest Then
99Return GetType(ERRID)
104Return New VBDiagnostic(ErrorFactory.ErrorInfo(CType(code, ERRID), args), location)
154Return ERRID.ERR_UnableToCreateTempFile
160Return ERRID.ERR_MultipleAnalyzerConfigsInSameDir
167Return ERRID.ERR_ExpectedSingleScript
173Return ERRID.ERR_NoResponseFile
179Return ERRID.ERR_InvalidPathMap
185Return ERRID.FTL_InvalidInputFileName
191Return ERRID.ERR_FileNotFound
197Return ERRID.ERR_BadModuleFile1
203Return ERRID.ERR_CantOpenFileWrite
209Return ERRID.ERR_CantOpenFileWrite
215Return ERRID.WRN_NoConfigInResponseFile
221Return ERRID.ERR_BinaryFile
227Return ERRID.WRN_AnalyzerCannotBeCreated
233Return ERRID.WRN_NoAnalyzerInAssembly
239Return ERRID.WRN_UnableToLoadAnalyzer
245Return ERRID.WRN_AnalyzerReferencesFramework
251Return ERRID.WRN_AnalyzerReferencesNewerCompiler
257Return ERRID.WRN_DuplicateAnalyzerReference
263Return ERRID.INF_UnableToLoadSomeTypesInAnalyzer
269Return ERRID.ERR_CantReadRulesetFile
276Return ERRID.ERR_None
284Return ERRID.ERR_BadSourceCodeKind
290Return ERRID.ERR_BadDocumentationMode
298Return ERRID.ERR_InvalidSwitchValue
304Return ERRID.ERR_MutuallyExclusiveOptions
312Return ERRID.ERR_InvalidDebugInformationFormat
318Return ERRID.ERR_InvalidOutputName
324Return ERRID.ERR_InvalidFileAlignment
330Return ERRID.ERR_InvalidSubsystemVersion
336Return ERRID.ERR_InvalidHashAlgorithmName
342Return ERRID.ERR_InvalidInstrumentationKind
349Return ERRID.ERR_MetaDataIsNotAssembly
355Return ERRID.ERR_MetaDataIsNotModule
361Return ERRID.ERR_BadMetaDataReference1
367Return ERRID.ERR_BadModuleFile1
373Return ERRID.ERR_BadRefLib1
379Return ERRID.ERR_BadModuleFile1
385Return ERRID.ERR_LibNotFound
391Return ERRID.ERR_MetadataReferencesNotSupported
397Return ERRID.ERR_LinkedNetmoduleMetadataMustProvideFullPEImage
402diagnostics.Add(ERRID.ERR_DuplicateReferenceStrong,
409diagnostics.Add(ERRID.ERR_DuplicateReference2,
419Return ERRID.ERR_UnableToOpenResourceFile1
424Return ERRID.ERR_PublicKeyFileFailure
430Return ERRID.ERR_PublicKeyContainerFailure
436Return ERRID.ERR_OptionMustBeAbsolutePath
443Return ERRID.ERR_UnableToOpenResourceFile1 'TODO: refine (DevDiv #12914)
449Return ERRID.ERR_UnableToReadUacManifest2
455Return ERRID.ERR_UnableToOpenResourceFile1 'TODO: refine (DevDiv #12914)
461Return ERRID.ERR_ErrorCreatingWin32ResourceFile
467Return ERRID.ERR_ErrorCreatingWin32ResourceFile
473Return ERRID.ERR_DuplicateResourceFileName1
479Return ERRID.ERR_DuplicateResourceName1
485Return ERRID.ERR_ResourceInModule
493Return ERRID.ERR_PermissionSetAttributeFileReadError
499diagnostics.Add(ERRID.ERR_BadAttribute1, node.ArgumentList.Arguments(parameterIndex).GetLocation(), attribute.AttributeClass)
504diagnostics.Add(ERRID.ERR_BadAttribute1, node.ArgumentList.Arguments(namedArgumentIndex).GetLocation(), attributeClass)
509diagnostics.Add(ERRID.ERR_ParameterNotValidForType, node.ArgumentList.Arguments(namedArgumentIndex).GetLocation())
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)
535Return ERRID.ERR_EncodinglessSyntaxTree
541Return ERRID.WRN_PdbUsingNameTooLong
547Return ERRID.WRN_PdbLocalNameTooLong
553Return ERRID.ERR_PDBWritingFailed
560Return ERRID.ERR_TooLongMetadataName
566Return ERRID.ERR_EncReferenceToAddedMember
572Return ERRID.ERR_TooManyUserStrings
578Return ERRID.ERR_PeWritingFailure
584Return ERRID.ERR_ModuleEmitFailure
590Return ERRID.ERR_EncUpdateFailedMissingAttribute
596Return ERRID.ERR_BadAssemblyName
602Return ERRID.ERR_InvalidDebugInfo
608Return ERRID.ERR_TooLongOrComplexExpression
615Return ERRID.WRN_GeneratorFailedDuringInitialization
621Return ERRID.WRN_GeneratorFailedDuringGeneration
Generated\ErrorFacts.Generated.vb (184)
3Public Function IsWarning(code as ERRID) As Boolean
5Case ERRID.WRN_BadSwitch,
6ERRID.WRN_NoConfigInResponseFile,
7ERRID.WRN_IgnoreModuleManifest,
8ERRID.WRN_BadUILang,
9ERRID.WRN_UseOfObsoleteSymbol2,
10ERRID.WRN_InvalidOverrideDueToTupleNames2,
11ERRID.WRN_MustOverloadBase4,
12ERRID.WRN_OverrideType5,
13ERRID.WRN_MustOverride2,
14ERRID.WRN_DefaultnessShadowed4,
15ERRID.WRN_UseOfObsoleteSymbolNoMessage1,
16ERRID.WRN_AssemblyGeneration0,
17ERRID.WRN_AssemblyGeneration1,
18ERRID.WRN_ComClassNoMembers1,
19ERRID.WRN_SynthMemberShadowsMember5,
20ERRID.WRN_MemberShadowsSynthMember6,
21ERRID.WRN_SynthMemberShadowsSynthMember7,
22ERRID.WRN_UseOfObsoletePropertyAccessor3,
23ERRID.WRN_UseOfObsoletePropertyAccessor2,
24ERRID.WRN_FieldNotCLSCompliant1,
25ERRID.WRN_BaseClassNotCLSCompliant2,
26ERRID.WRN_ProcTypeNotCLSCompliant1,
27ERRID.WRN_ParamNotCLSCompliant1,
28ERRID.WRN_InheritedInterfaceNotCLSCompliant2,
29ERRID.WRN_CLSMemberInNonCLSType3,
30ERRID.WRN_NameNotCLSCompliant1,
31ERRID.WRN_EnumUnderlyingTypeNotCLS1,
32ERRID.WRN_NonCLSMemberInCLSInterface1,
33ERRID.WRN_NonCLSMustOverrideInCLSType1,
34ERRID.WRN_ArrayOverloadsNonCLS2,
35ERRID.WRN_RootNamespaceNotCLSCompliant1,
36ERRID.WRN_RootNamespaceNotCLSCompliant2,
37ERRID.WRN_GenericConstraintNotCLSCompliant1,
38ERRID.WRN_TypeNotCLSCompliant1,
39ERRID.WRN_OptionalValueNotCLSCompliant1,
40ERRID.WRN_CLSAttrInvalidOnGetSet,
41ERRID.WRN_TypeConflictButMerged6,
42ERRID.WRN_ShadowingGenericParamWithParam1,
43ERRID.WRN_CannotFindStandardLibrary1,
44ERRID.WRN_EventDelegateTypeNotCLSCompliant2,
45ERRID.WRN_DebuggerHiddenIgnoredOnProperties,
46ERRID.WRN_SelectCaseInvalidRange,
47ERRID.WRN_CLSEventMethodInNonCLSType3,
48ERRID.WRN_ExpectedInitComponentCall2,
49ERRID.WRN_NamespaceCaseMismatch3,
50ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1,
51ERRID.WRN_UndefinedOrEmptyProjectNamespaceOrClass1,
52ERRID.WRN_IndirectRefToLinkedAssembly2,
53ERRID.WRN_DelaySignButNoKey,
54ERRID.WRN_UnimplementedCommandLineSwitch,
55ERRID.WRN_NoNonObsoleteConstructorOnBase3,
56ERRID.WRN_NoNonObsoleteConstructorOnBase4,
57ERRID.WRN_RequiredNonObsoleteNewCall3,
58ERRID.WRN_RequiredNonObsoleteNewCall4,
59ERRID.WRN_MissingAsClauseinOperator,
60ERRID.WRN_ConstraintsFailedForInferredArgs2,
61ERRID.WRN_ConditionalNotValidOnFunction,
62ERRID.WRN_UseSwitchInsteadOfAttribute,
63ERRID.WRN_TupleLiteralNameMismatch,
64ERRID.WRN_ReferencedAssemblyDoesNotHaveStrongName,
65ERRID.WRN_RecursiveAddHandlerCall,
66ERRID.WRN_ImplicitConversionCopyBack,
67ERRID.WRN_MustShadowOnMultipleInheritance2,
68ERRID.WRN_RecursiveOperatorCall,
69ERRID.WRN_ImplicitConversionSubst1,
70ERRID.WRN_LateBindingResolution,
71ERRID.WRN_ObjectMath1,
72ERRID.WRN_ObjectMath2,
73ERRID.WRN_ObjectAssumedVar1,
74ERRID.WRN_ObjectAssumed1,
75ERRID.WRN_ObjectAssumedProperty1,
76ERRID.WRN_UnusedLocal,
77ERRID.WRN_SharedMemberThroughInstance,
78ERRID.WRN_RecursivePropertyCall,
79ERRID.WRN_OverlappingCatch,
80ERRID.WRN_DefAsgUseNullRefByRef,
81ERRID.WRN_DuplicateCatch,
82ERRID.WRN_ObjectMath1Not,
83ERRID.WRN_BadChecksumValExtChecksum,
84ERRID.WRN_MultipleDeclFileExtChecksum,
85ERRID.WRN_BadGUIDFormatExtChecksum,
86ERRID.WRN_ObjectMathSelectCase,
87ERRID.WRN_EqualToLiteralNothing,
88ERRID.WRN_NotEqualToLiteralNothing,
89ERRID.WRN_UnusedLocalConst,
90ERRID.WRN_ComClassInterfaceShadows5,
91ERRID.WRN_ComClassPropertySetObject1,
92ERRID.WRN_DefAsgUseNullRef,
93ERRID.WRN_DefAsgNoRetValFuncRef1,
94ERRID.WRN_DefAsgNoRetValOpRef1,
95ERRID.WRN_DefAsgNoRetValPropRef1,
96ERRID.WRN_DefAsgUseNullRefByRefStr,
97ERRID.WRN_DefAsgUseNullRefStr,
98ERRID.WRN_StaticLocalNoInference,
99ERRID.WRN_InvalidAssemblyName,
100ERRID.WRN_XMLDocBadXMLLine,
101ERRID.WRN_XMLDocMoreThanOneCommentBlock,
102ERRID.WRN_XMLDocNotFirstOnLine,
103ERRID.WRN_XMLDocInsideMethod,
104ERRID.WRN_XMLDocParseError1,
105ERRID.WRN_XMLDocDuplicateXMLNode1,
106ERRID.WRN_XMLDocIllegalTagOnElement2,
107ERRID.WRN_XMLDocBadParamTag2,
108ERRID.WRN_XMLDocParamTagWithoutName,
109ERRID.WRN_XMLDocCrefAttributeNotFound1,
110ERRID.WRN_XMLMissingFileOrPathAttribute1,
111ERRID.WRN_XMLCannotWriteToXMLDocFile2,
112ERRID.WRN_XMLDocWithoutLanguageElement,
113ERRID.WRN_XMLDocReturnsOnWriteOnlyProperty,
114ERRID.WRN_XMLDocOnAPartialType,
115ERRID.WRN_XMLDocReturnsOnADeclareSub,
116ERRID.WRN_XMLDocStartTagWithNoEndTag,
117ERRID.WRN_XMLDocBadGenericParamTag2,
118ERRID.WRN_XMLDocGenericParamTagWithoutName,
119ERRID.WRN_XMLDocExceptionTagWithoutCRef,
120ERRID.WRN_XMLDocInvalidXMLFragment,
121ERRID.WRN_XMLDocBadFormedXML,
122ERRID.WRN_InterfaceConversion2,
123ERRID.WRN_LiftControlVariableLambda,
124ERRID.WRN_LambdaPassedToRemoveHandler,
125ERRID.WRN_LiftControlVariableQuery,
126ERRID.WRN_RelDelegatePassedToRemoveHandler,
127ERRID.WRN_AmbiguousCastConversion2,
128ERRID.WRN_VarianceDeclarationAmbiguous3,
129ERRID.WRN_ArrayInitNoTypeObjectAssumed,
130ERRID.WRN_TypeInferenceAssumed3,
131ERRID.WRN_VarianceConversionFailedOut6,
132ERRID.WRN_VarianceConversionFailedIn6,
133ERRID.WRN_VarianceIEnumerableSuggestion3,
134ERRID.WRN_VarianceConversionFailedTryOut4,
135ERRID.WRN_VarianceConversionFailedTryIn4,
136ERRID.WRN_IfNoTypeObjectAssumed,
137ERRID.WRN_IfTooManyTypesObjectAssumed,
138ERRID.WRN_ArrayInitTooManyTypesObjectAssumed,
139ERRID.WRN_LambdaNoTypeObjectAssumed,
140ERRID.WRN_LambdaTooManyTypesObjectAssumed,
141ERRID.WRN_MissingAsClauseinVarDecl,
142ERRID.WRN_MissingAsClauseinFunction,
143ERRID.WRN_MissingAsClauseinProperty,
144ERRID.WRN_ObsoleteIdentityDirectCastForValueType,
145ERRID.WRN_ImplicitConversion2,
146ERRID.WRN_MutableStructureInUsing,
147ERRID.WRN_MutableGenericStructureInUsing,
148ERRID.WRN_DefAsgNoRetValFuncVal1,
149ERRID.WRN_DefAsgNoRetValOpVal1,
150ERRID.WRN_DefAsgNoRetValPropVal1,
151ERRID.WRN_AsyncLacksAwaits,
152ERRID.WRN_AsyncSubCouldBeFunction,
153ERRID.WRN_UnobservedAwaitableExpression,
154ERRID.WRN_UnobservedAwaitableDelegate,
155ERRID.WRN_PrefixAndXmlnsLocalName,
156ERRID.WRN_UseValueForXmlExpression3,
157ERRID.WRN_ReturnTypeAttributeOnWriteOnlyProperty,
158ERRID.WRN_InvalidVersionFormat,
159ERRID.WRN_MainIgnored,
160ERRID.WRN_EmptyPrefixAndXmlnsLocalName,
161ERRID.WRN_DefAsgNoRetValWinRtEventVal1,
162ERRID.WRN_AssemblyAttributeFromModuleIsOverridden,
163ERRID.WRN_RefCultureMismatch,
164ERRID.WRN_ConflictingMachineAssembly,
165ERRID.WRN_PdbLocalNameTooLong,
166ERRID.WRN_PdbUsingNameTooLong,
167ERRID.WRN_XMLDocCrefToTypeParameter,
168ERRID.WRN_AnalyzerCannotBeCreated,
169ERRID.WRN_NoAnalyzerInAssembly,
170ERRID.WRN_UnableToLoadAnalyzer,
171ERRID.WRN_AttributeIgnoredWhenPublicSigning,
172ERRID.WRN_Experimental,
173ERRID.WRN_AttributeNotSupportedInVB,
174ERRID.WRN_GeneratorFailedDuringInitialization,
175ERRID.WRN_GeneratorFailedDuringGeneration,
176ERRID.WRN_AnalyzerReferencesFramework,
177ERRID.WRN_CallerArgumentExpressionAttributeSelfReferential,
178ERRID.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName,
179ERRID.WRN_AnalyzerReferencesNewerCompiler,
180ERRID.WRN_DuplicateAnalyzerReference
187Public Function IsFatal(code as ERRID) As Boolean
189Case ERRID.FTL_InvalidInputFileName
196Public Function IsInfo(code as ERRID) As Boolean
198Case ERRID.INF_UnableToLoadSomeTypesInAnalyzer
205Public Function IsHidden(code as ERRID) As Boolean
207Case ERRID.HDN_UnusedImportClause,
208ERRID.HDN_UnusedImportStatement
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (14)
60GenerateDiagnostic(ERRID.ERR_BadAnonymousTypeForExprTree, node)
180GenerateDiagnostic(ERRID.ERR_ExprTreeNoMultiDimArrayCreation, node)
193GenerateDiagnostic(ERRID.ERR_ResumableLambdaInExpressionTree, node)
196GenerateDiagnostic(ERRID.ERR_StatementLambdaInExpressionTree, node)
202GenerateDiagnostic(ERRID.ERR_StatementLambdaInExpressionTree, node)
240GenerateDiagnostic(ERRID.ERR_StatementLambdaInExpressionTree, node)
260GenerateDiagnostic(ERRID.ERR_RefReturningCallInExpressionTree, node)
281GenerateDiagnostic(ERRID.ERR_RefReturningCallInExpressionTree, node)
311GenerateDiagnostic(ERRID.ERR_ByRefParamInExpressionTree, lambda)
372GenerateDiagnostic(ERRID.ERR_ExprTreeNoLateBind, node)
383GenerateDiagnostic(ERRID.ERR_ExprTreeNoLateBind, node)
391GenerateDiagnostic(ERRID.ERR_NullPropagatingOpInExpressionTree, node)
398GenerateDiagnostic(ERRID.ERR_ExpressionTreeNotSupported, node)
401Private Sub GenerateDiagnostic(code As ERRID, node As BoundNode)
Parser\BlockContexts\BlockContext.vb (38)
107Dim errorId As ERRID
332stmt = stmt.AddTrailingSyntax(unexpected, ERRID.ERR_ExpectedEOS)
374node = Parser.ReportSyntaxError(node, ERRID.ERR_BogusWithinLineIf)
451Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseNoMatchingIf))
460Add(Parser.ReportSyntaxError(node, ERRID.ERR_ElseIfNoMatchingIf))
477Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseNoSelect))
483Add(Parser.ReportSyntaxError(node, ERRID.ERR_CaseElseNoSelect))
509Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
596Private Function CreateMissingEnd(ByRef errorId As ERRID) As StatementSyntax
600Private Function CreateMissingEnd(kind As SyntaxKind, ByRef errorId As ERRID) As StatementSyntax
607errorId = ERRID.ERR_ExpectedEndNamespace
611errorId = ERRID.ERR_ExpectedEndModule
615errorId = ERRID.ERR_ExpectedEndClass
619errorId = ERRID.ERR_ExpectedEndStructure
623errorId = ERRID.ERR_MissingEndInterface
627errorId = ERRID.ERR_MissingEndEnum
633errorId = ERRID.ERR_EndSubExpected
637errorId = ERRID.ERR_MultilineLambdaMissingSub
641errorId = ERRID.ERR_EndFunctionExpected
645errorId = ERRID.ERR_MultilineLambdaMissingFunction
649errorId = ERRID.ERR_EndOperatorExpected
654errorId = ERRID.ERR_EndProp
658errorId = ERRID.ERR_MissingEndGet
662errorId = ERRID.ERR_MissingEndSet
667errorId = ERRID.ERR_MissingEndEvent
671errorId = ERRID.ERR_MissingEndAddHandler
675errorId = ERRID.ERR_MissingEndRemoveHandler
679errorId = ERRID.ERR_MissingEndRaiseEvent
683errorId = ERRID.ERR_ExpectedEndIf
687errorId = ERRID.ERR_ExpectedLoop
691errorId = ERRID.ERR_ExpectedEndWhile
695errorId = ERRID.ERR_ExpectedEndWith
699errorId = ERRID.ERR_ExpectedNext
703errorId = ERRID.ERR_ExpectedEndSyncLock
707errorId = ERRID.ERR_ExpectedEndSelect
711errorId = ERRID.ERR_ExpectedEndTry
715errorId = ERRID.ERR_ExpectedEndUsing
Parser\BlockContexts\DeclarationContext.vb (46)
42Case ERRID.ERR_NamespaceNotAtNamespace, ERRID.ERR_InvInsideEndsProc
50node = Parser.ReportSyntaxError(node, ERRID.ERR_NamespaceNotAtNamespace)
61node = Parser.ReportSyntaxError(node, ERRID.ERR_ModuleNotAtNamespace)
88node = Parser.ReportSyntaxError(node, ERRID.ERR_MethodMustBeFirstStatementOnLine)
100node = Parser.ReportSyntaxError(node, ERRID.ERR_MethodMustBeFirstStatementOnLine)
106node = Parser.ReportSyntaxError(node, ERRID.ERR_OperatorDeclaredInModule)
147node = Parser.ReportSyntaxError(node, ERRID.ERR_ExpectedDeclaration)
160node = Parser.ReportSyntaxError(eventDecl, ERRID.ERR_CustomEventRequiresAs)
168node = Parser.ReportSyntaxError(node, ERRID.ERR_AttributeStmtWrongOrder)
172node = Parser.ReportSyntaxError(node, ERRID.ERR_OptionStmtWrongOrder)
176node = Parser.ReportSyntaxError(node, ERRID.ERR_ImportsMustBeFirst)
183node = Parser.ReportSyntaxError(node, ERRID.ERR_BadInterfaceOrderOnInherits)
185node = Parser.ReportSyntaxError(node, ERRID.ERR_InheritsStmtWrongOrder)
191node = Parser.ReportSyntaxError(node, ERRID.ERR_ImplementsStmtWrongOrder)
225node = Parser.ReportSyntaxError(node, ERRID.ERR_InvOutsideProc)
239node = Parser.ReportSyntaxError(node, ERRID.ERR_ExecutableAsDeclaration)
348node = Parser.ReportSyntaxError(node, ERRID.ERR_ExecutableAsDeclaration)
364Dim ErrorId As ERRID = ERRID.ERR_Syntax
370ErrorId = ERRID.ERR_EndIfNoMatchingIf
373ErrorId = ERRID.ERR_EndWithWithoutWith
376ErrorId = ERRID.ERR_EndSelectNoSelect
379ErrorId = ERRID.ERR_EndWhileNoWhile
382ErrorId = ERRID.ERR_LoopNoMatchingDo
385ErrorId = ERRID.ERR_NextNoMatchingFor
388ErrorId = ERRID.ERR_InvalidEndSub
391ErrorId = ERRID.ERR_InvalidEndFunction
394ErrorId = ERRID.ERR_InvalidEndOperator
397ErrorId = ERRID.ERR_InvalidEndProperty
400ErrorId = ERRID.ERR_InvalidEndGet
403ErrorId = ERRID.ERR_InvalidEndSet
406ErrorId = ERRID.ERR_InvalidEndEvent
409ErrorId = ERRID.ERR_InvalidEndAddHandler
412ErrorId = ERRID.ERR_InvalidEndRemoveHandler
415ErrorId = ERRID.ERR_InvalidEndRaiseEvent
418ErrorId = ERRID.ERR_EndStructureNoStructure
421ErrorId = ERRID.ERR_InvalidEndEnum
424ErrorId = ERRID.ERR_InvalidEndInterface
427ErrorId = ERRID.ERR_EndTryNoTry
430ErrorId = ERRID.ERR_EndClassNoClass
433ErrorId = ERRID.ERR_EndModuleNoModule
436ErrorId = ERRID.ERR_EndNamespaceNoNamespace
439ErrorId = ERRID.ERR_EndUsingWithoutUsing
442ErrorId = ERRID.ERR_EndSyncLockNoSyncLock
451ErrorId = ERRID.ERR_UnrecognizedEnd
Parser\ParseExpression.vb (44)
72expression = InternalSyntaxFactory.MissingExpression().AddTrailingSyntax(startToken, ERRID.ERR_BadCCExpression)
142expression = ReportSyntaxError(expression, ERRID.ERR_BadCCExpression)
247term = ReportSyntaxError(term, ERRID.ERR_ExpectedDotAfterGlobalNameSpace)
257term = ReportSyntaxError(term, ERRID.ERR_ExpectedDotAfterMyBase)
267term = ReportSyntaxError(term, ERRID.ERR_ExpectedDotAfterMyClass)
303term = term.AddTrailingSyntax(CurrentToken, ERRID.ERR_FullWidthAsXmlDelimiter)
429term = ReportSyntaxError(term, ERRID.ERR_ExpectedExpression)
445term = term.AddTrailingSyntax(CurrentToken, ERRID.ERR_NullableCharNotSupported)
462term = ReportSyntaxError(term, ERRID.ERR_SubRequiresParenthesesDot)
469term = ReportSyntaxError(term, ERRID.ERR_SubRequiresParenthesesBang)
476term = ReportSyntaxError(term, ERRID.ERR_SubRequiresParenthesesLParen)
492term = ReportSyntaxError(term, ERRID.ERR_SubRequiresParenthesesDot)
494term = ReportSyntaxError(term, ERRID.ERR_SubRequiresParenthesesBang)
496term = ReportSyntaxError(term, ERRID.ERR_SubRequiresParenthesesLParen)
535expression = expression.AddLeadingSyntax(SyntaxList.List(simpleArgument.NameColonEquals.Name, simpleArgument.NameColonEquals.ColonEqualsToken), ERRID.ERR_IllegalOperandInIIFName)
543expr = expr.AddLeadingSyntax(arg, ERRID.ERR_ExpectedExpression)
564InternalSyntaxFactory.MissingExpression.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.ERR_IllegalOperandInIIFCount)),
574InternalSyntaxFactory.MissingExpression.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.ERR_IllegalOperandInIIFCount)),
617Arguments.CloseParenToken.AddLeadingSyntax(SyntaxList.List(ArrayElement(Of GreenNode).MakeElementArray(leading)), ERRID.ERR_IllegalOperandInIIFCount))
703Return ReportSyntaxError(argument, ERRID.ERR_ExpressionDoesntHaveName)
722Return ReportSyntaxError(argument, If(isTopLevel, ERRID.ERR_ExpressionDoesntHaveName, ERRID.ERR_InvalidNameOfSubExpression))
835arrayModifiers = ParseArrayRankSpecifiers(ERRID.ERR_NoConstituentArraySizes)
888objInit = ReportSyntaxError(objInit, ERRID.ERR_CantCombineInitializers)
902objInit = ReportSyntaxError(objInit, ERRID.ERR_CantCombineInitializers)
908objInit = ReportSyntaxError(objInit, ERRID.ERR_CantCombineInitializers)
1028Dim missingIdent = ReportSyntaxError(InternalSyntaxFactory.MissingIdentifier, ERRID.ERR_ExpectedIdentifier)
1055atToken = ReportSyntaxError(atToken, ERRID.ERR_ExpectedXmlName)
1071atToken = ReportSyntaxError(atToken, ERRID.ERR_ExpectedXmlName)
1127ReportSyntaxError(InternalSyntaxFactory.XmlName(Nothing, missingName), ERRID.ERR_ExpectedXmlName))
1129result = SyntaxFactory.SimpleMemberAccessExpression(Term, DotOrBangToken, ReportSyntaxError(InternalSyntaxFactory.IdentifierName(InternalSyntaxFactory.MissingIdentifier), ERRID.ERR_ExpectedIdentifier))
1219Return ReportSyntaxError(SyntaxFactory.XmlName(Nothing, SyntaxFactory.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing)), ERRID.ERR_ExpectedXmlName)
1292missing = ReportSyntaxError(missing, ERRID.ERR_TupleTooFewElements)
1342closeParen = ReportSyntaxError(closeParen, ERRID.ERR_ExpectedRparen)
1452skipped = ReportSyntaxError(skipped, ERRID.ERR_ArgumentSyntax)
1480Return ReportSyntaxError(argument, ERRID.ERR_ExpectedNamedArgument,
1511argumentName = ReportSyntaxError(argumentName, ERRID.ERR_ExpectedNamedArgumentInAttributeList)
1524namedArgument = ReportSyntaxError(namedArgument, ERRID.ERR_ArgumentSyntax)
1610ERRID.ERR_SyntaxInCastOp)
1689openParen = openParen.AddLeadingSyntax(genericParams, ERRID.ERR_GenericParamsOnInvalidMember)
1708asKeyword = asKeyword.AddTrailingSyntax(returnTypeAttributes.Node, ERRID.ERR_AttributeOnLambdaReturnType)
1723closeParen = closeParen.AddTrailingSyntax(asClause, ERRID.ERR_ExpectedEOS)
1764value = Parser.ReportSyntaxError(value, ERRID.ERR_BadIteratorExpressionLambda)
1803_context.Add(ReportSyntaxError(statement, ERRID.ERR_InvInsideEndsProc))
Parser\ParseQuery.vb (12)
93curIdent = ReportSyntaxError(curIdent, ERRID.ERR_InvalidUseOfKeyword)
150syntax = ReportSyntaxError(syntax, ERRID.ERR_ExpectedEndOfExpression)
161varName = varName.AddTrailingSyntax(ReportSyntaxError(unexpectedNullable, ERRID.ERR_NullableTypeInferenceNotSupported))
200groupKw = ReportSyntaxError(groupKw, ERRID.ERR_UnexpectedGroup)
215missingIdent = ReportSyntaxError(missingIdent, ERRID.ERR_ExpectedIdentifierOrGroup)
217missingIdent = ReportSyntaxError(missingIdent, ERRID.ERR_ExpectedIdentifier)
317varName = varName.AddTrailingSyntax(ReportSyntaxError(unexpectedNullable, ERRID.ERR_NullableTypeInferenceNotSupported))
361Equals = ReportSyntaxError(Equals, ERRID.ERR_ExpectedAssignmentOperator)
438varName = varName.AddTrailingSyntax(ReportSyntaxError(unexpectedNullable, ERRID.ERR_NullableTypeInferenceNotSupported))
790varName = varName.AddTrailingSyntax(ReportSyntaxError(unexpectedNullable, ERRID.ERR_NullableTypeInferenceNotSupported))
893element = ReportSyntaxError(element, ERRID.ERR_ExpectedExpression)
917Exprs(Exprs.Count - 1) = Exprs(Exprs.Count - 1).AddTrailingSyntax(CurrentToken, ERRID.ERR_ExpectedAnd)
Parser\Parser.vb (126)
116id = id.AddTrailingSyntax(typeArguments, ERRID.ERR_TypeArgsUnexpected)
188result = ReportSyntaxError(result, ERRID.ERR_NoGlobalExpectedIdentifier)
224result = ReportSyntaxError(result, ERRID.ERR_ExpectedDot)
512Return result.AddLeadingSyntax(builder.ToList(Of SyntaxToken)(), ERRID.ERR_TooLongOrComplexExpression)
553Dim unexpectedEnd = ReportSyntaxError(method.End, ERRID.ERR_InvInsideEndsProc)
594result = result.AddLeadingSyntax(SyntaxList.List(CurrentToken, nextToken), ERRID.ERR_ExpectedRelational)
763Return ReportUnrecognizedStatementError(ERRID.ERR_Syntax)
778Return ReportUnrecognizedStatementError(ERRID.ERR_ObsoleteStructureNotType)
798Return ReportUnrecognizedStatementError(ERRID.ERR_ExpectedDeclaration)
848Return ParseSpecifierDeclaration().AddLeadingSyntax(idf, ERRID.ERR_ExpectedDeclaration)
1189Return ReportUnrecognizedStatementError(ERRID.ERR_ObsoleteGetStatement)
1240Return ReportUnrecognizedStatementError(ERRID.ERR_Syntax)
1307statement = ReportUnrecognizedStatementError(ERRID.ERR_ObsoleteStructureNotType, attributes, modifiers)
1397statement = ReportUnrecognizedStatementError(ERRID.ERR_StandaloneAttribute, attributes, modifiers)
1401statement = ReportUnrecognizedStatementError(ERRID.ERR_InvalidUseOfKeyword, attributes, modifiers, forceErrorOnFirstToken:=True)
1407statement = ReportUnrecognizedStatementError(ERRID.ERR_ExpectedIdentifier, attributes, modifiers, createMissingIdentifier:=True)
1448Dim genericParameters = ReportSyntaxError(ParseGenericParameters, ERRID.ERR_GenericParamsOnInvalidMember)
1590ident = ident.AddTrailingSyntax(ReportGenericParamsDisallowedError(ERRID.ERR_ModulesCannotBeGeneric))
1608Private Function ReportGenericParamsDisallowedError(errid As ERRID) As TypeParameterListSyntax
1633genericParams = ReportGenericParamsDisallowedError(ERRID.ERR_GenericParamsOnInvalidMember)
1640Dim namespaceKeyword As KeywordSyntax = ReportModifiersOnStatementError(ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt, attributes, Specifiers, DirectCast(CurrentToken, KeywordSyntax))
1643namespaceKeyword = AddError(namespaceKeyword, ERRID.ERR_NamespaceNotAllowedInScript)
1725statement = ReportSyntaxError(ParseStopOrEndStatement(), ERRID.ERR_UnrecognizedEnd)
1935Dim err As ERRID = ERRID.ERR_None
1993t = ReportSyntaxError(possibleKeyword, ERRID.ERR_InvalidUseOfCustomModifier)
2021If (err <> ERRID.ERR_None) Then
2091result = result.AddLeadingSyntax(attributes.Node, ERRID.ERR_LocalsCannotHaveAttributes)
2100ERRID.ERR_StandaloneAttribute,
2101ERRID.ERR_ExpectedSpecifier))
2300withKeyword = ReportSyntaxError(withKeyword, ERRID.ERR_CantCombineInitializers)
2317objectMemberInitializer = objectMemberInitializer.AddTrailingSyntax(possibleKeyword, ERRID.ERR_CantCombineInitializers)
2330withKeyword = ReportSyntaxError(withKeyword, ERRID.ERR_UnrecognizedTypeKeyword)
2413closeBrace = closeBrace.AddLeadingSyntax(skipped, ERRID.ERR_ExpectedRbrace)
2441withKeyword = ReportSyntaxError(withKeyword, ERRID.ERR_UnrecognizedTypeKeyword)
2495openBrace = ReportSyntaxError(openBrace, If(anonymousTypeInitializer, ERRID.ERR_AnonymousTypeNeedField, ERRID.ERR_InitializerExpected))
2569id = ReportSyntaxError(id, ERRID.ERR_NullableTypeInferenceNotSupported)
2579equals = ReportSyntaxError(equals, ERRID.ERR_ExpectedAssignmentOperatorInInit)
2604expression = ReportSyntaxError(expression, ERRID.ERR_AnonymousTypeExpectedIdentifier)
2610expression = ReportSyntaxError(expression, ERRID.ERR_AnonymousTypeNameWithoutPeriod)
2619expression = ReportSyntaxError(expression, ERRID.ERR_AnonTypeFieldXMLNameInference)
2621expression = ReportSyntaxError(expression, ERRID.ERR_AnonymousTypeFieldNameInference)
2637id = ReportSyntaxError(id, ERRID.ERR_ExpectedQualifiedNameInInit)
2705id = ReportSyntaxError(id, ERRID.ERR_ExpectedIdentifier)
2717id = ParseNullableIdentifier(optionalNullable).AddLeadingSyntax(modifiers.Node, ERRID.ERR_ExtraSpecifiers)
2723id = ReportSyntaxError(id, ERRID.ERR_InvalidUseOfCustomModifier)
2798Dim errorID As ERRID
2807name = ReportSyntaxError(name, ERRID.ERR_ObsoleteObjectNotVariant)
2837errorID = ERRID.ERR_InvalidNewInType
2841errorID = ERRID.ERR_UnrecognizedTypeOrWith
2844errorID = ERRID.ERR_UnrecognizedTypeKeyword
2846errorID = ERRID.ERR_UnrecognizedType
2873typeName = typeName.AddTrailingSyntax(CurrentToken, ERRID.ERR_BadNullTypeInCCExpression)
2952skipped = ReportSyntaxError(skipped, ERRID.ERR_ArgumentSyntax)
2979missing = ReportSyntaxError(missing, ERRID.ERR_TupleTooFewElements)
3020ReportSyntaxError(typeArgumentList.CloseParenToken, ERRID.ERR_UnrecognizedType))
3042ident = ident.AddTrailingSyntax(start, ERRID.ERR_BadTypeInCCExpression)
3067rankSpecifiers = New CoreInternalSyntax.SyntaxList(Of ArrayRankSpecifierSyntax)(ReportSyntaxError(rankSpecifiers.Node, ERRID.ERR_ArrayOfRawGenericInvalid))
3135typeName = ReportSyntaxError(typeName, ERRID.ERR_TypeParamMissingCommaOrRParen)
3169Private Function ParseArrayRankSpecifiers(Optional errorForExplicitArraySizes As ERRID = ERRID.ERR_NoExplicitArraySizes) As CoreInternalSyntax.SyntaxList(Of ArrayRankSpecifierSyntax)
3268optionalArrayBounds = ReportSyntaxError(optionalArrayBounds, ERRID.ERR_NoExplicitArraySizes)
3273closeParen = closeParen.AddLeadingSyntax(arguments.Node, ERRID.ERR_NoConstituentArraySizes)
3397methodKeyword = ReportSyntaxError(methodKeyword, ERRID.ERR_MethodMustBeFirstStatementOnLine)
3428methodKeyword = ReportModifiersOnStatementError(ERRID.ERR_SpecifiersInvOnEventMethod, Nothing, modifiers, methodKeyword)
3525eventContainer = ReportSyntaxError(eventContainer, ERRID.ERR_NoGlobalInHandles)
3646newKeyword = newKeyword.AddError(ERRID.ERR_NewCannotHandleEvents) ' error should be on "New"
3650newKeyword = newKeyword.AddError(ERRID.ERR_ImplementsOnNew) ' error should be on "New"
3705optionalGenericParams = ReportGenericParamsDisallowedError(ERRID.ERR_GenericParamsOnInvalidMember)
3720handlesClause = ReportSyntaxError(handlesClause, ERRID.ERR_DelegateCantHandleEvents)
3727implementsClause = ReportSyntaxError(implementsClause, ERRID.ERR_DelegateCantImplement)
3830ident = ReportSyntaxError(ident, ERRID.ERR_ConstructorFunction)
3878handlesClause = ReportSyntaxError(handlesClause, ERRID.ERR_DelegateCantHandleEvents)
3886implementsClause = ReportSyntaxError(implementsClause, ERRID.ERR_DelegateCantImplement)
3954operatorToken = validMissingOperator.AddTrailingSyntax(operatorToken, ERRID.ERR_OperatorNotOverloadable)
3957operatorToken = validMissingOperator.AddTrailingSyntax(operatorToken, ERRID.ERR_UnknownOperator)
3960operatorToken = ReportSyntaxError(validMissingOperator, ERRID.ERR_UnknownOperator)
3990openParen = ReportSyntaxError(openParen, ERRID.ERR_ExpectedLparen)
4035Dim err As ERRID = ERRID.ERR_None
4040err = ERRID.ERR_InvalidHandles
4045err = ERRID.ERR_InvalidImplements
4049Debug.Assert(err <> ERRID.ERR_None)
4107ident = ReportSyntaxError(ParseIdentifierAllowingKeyword(), ERRID.ERR_ObsoletePropertyGetLetSet)
4238methodKeyword = ReportSyntaxError(methodKeyword, ERRID.ERR_ExpectedSubOrFunction)
4396ERRID.ERR_TypeParamMissingAsCommaOrRParen,
4397ERRID.ERR_TypeParamMissingCommaOrRParen))
4439syntaxError = ErrorFactory.ErrorInfo(ERRID.ERR_BadConstraintSyntax)
4512param = param.AddTrailingSyntax(ResyncAt({SyntaxKind.CommaToken, SyntaxKind.CloseParenToken}), ERRID.ERR_InvalidParameterSyntax)
4573keyword = ReportSyntaxError(keyword, ERRID.ERR_MultipleParameterSpecifiers)
4580keyword = ReportSyntaxError(keyword, ERRID.ERR_MultipleParameterSpecifiers)
4583keyword = ReportSyntaxError(keyword, ERRID.ERR_ParamArrayMustBeByVal)
4590keyword = ReportSyntaxError(keyword, ERRID.ERR_MultipleOptionalParameterSpecifiers)
4597keyword = ReportSyntaxError(keyword, ERRID.ERR_MultipleOptionalParameterSpecifiers)
4599keyword = ReportSyntaxError(keyword, ERRID.ERR_ParamArrayMustBeByVal)
4611keyword = ReportSyntaxError(keyword, ERRID.ERR_DuplicateParameterSpecifier)
4665equals = ReportSyntaxError(equals, ERRID.ERR_DefaultValueForNonOptionalParam)
4672equals = ReportSyntaxError(InternalSyntaxFactory.MissingPunctuation(SyntaxKind.EqualsToken), ERRID.ERR_ObsoleteOptionalWithoutValue)
4751xmlNamespace = ReportSyntaxError(CreateMissingXmlAttribute(), ERRID.ERR_ExpectedXmlns)
4756xmlNamespace = xmlNamespace.AddTrailingSyntax(unexpected, ERRID.ERR_ExpectedGreater)
4788aliasIdentifier = ReportSyntaxError(aliasIdentifier, ERRID.ERR_NoTypecharInAlias)
4910Dim ErrorId As ERRID = ERRID.ERR_None
4938ErrorId = ERRID.ERR_InvalidOptionCompare
4944ErrorId = ERRID.ERR_InvalidOptionCompare
4966ErrorId = ERRID.ERR_InvalidOptionStrictCustom
4968ErrorId = ERRID.ERR_InvalidOptionStrict
4972ErrorId = ERRID.ERR_InvalidOptionExplicit
4974ErrorId = ERRID.ERR_InvalidOptionInfer
4984ErrorId = ERRID.ERR_ExpectedOptionCompare
4988ErrorId = ERRID.ERR_ExpectedForOptionStmt
4992ErrorId = ERRID.ERR_ExpectedForOptionStmt
4997If ErrorId <> ERRID.ERR_None Then
5058methodKeyword = ReportSyntaxError(InternalSyntaxFactory.MissingKeyword(SyntaxKind.SubKeyword), ERRID.ERR_ExpectedSubFunction)
5099libKeyword = libKeyword.AddLeadingSyntax(unexpected, ERRID.ERR_MissingLibInDeclare)
5288asKeyword = ReportSyntaxError(asKeyword, ERRID.ERR_EventsCantBeFunctions)
5374closeParen = closeParen.AddTrailingSyntax(ResyncAt({SyntaxKind.ImplementsKeyword}), ERRID.ERR_EventsCantBeFunctions)
5376ident = ident.AddTrailingSyntax(ResyncAt({SyntaxKind.ImplementsKeyword}), ERRID.ERR_EventsCantBeFunctions)
5432Dim typeName = SyntaxFactory.IdentifierName(ReportSyntaxError(InternalSyntaxFactory.MissingIdentifier(), ERRID.ERR_ExpectedIdentifier))
5480assemblyOrModuleKeyword = ReportSyntaxError(assemblyOrModuleKeyword, ERRID.ERR_FileAttributeNotAssemblyOrModule)
5523typeName = ReportSyntaxError(typeName, ERRID.ERR_GenericArgsOnAttributeSpecifier)
5749stmt = stmt.AddTrailingSyntax(unexpected, ERRID.ERR_ExpectedEOS)
6089Return node.AddTrailingSyntax(b.ToList(), ERRID.ERR_Syntax)
6111Return ReportSyntaxError(node, ERRID.ERR_LanguageVersion, languageVersion.GetErrorName(), featureName, requiredVersion)
6135diagnosticsOpt.Add(ERRID.ERR_LanguageVersion, location, languageVersion.GetErrorName(), featureName, requiredVersion)
Parser\ParseReportError.vb (6)
34Friend Shared Function ReportSyntaxError(Of T As GreenNode)(syntax As T, ErrorId As ERRID) As T
38Friend Shared Function ReportSyntaxError(Of T As VisualBasicSyntaxNode)(syntax As T, ErrorId As ERRID, ParamArray args() As Object) As T
49Private Function ReportUnrecognizedStatementError(ErrorId As ERRID) As StatementSyntax
64ErrorId As ERRID,
115Return ReportModifiersOnStatementError(ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt, attributes, modifiers, keyword)
118Private Function ReportModifiersOnStatementError(errorId As ERRID, attributes As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of AttributeListSyntax), modifiers As CodeAnalysis.Syntax.InternalSyntax.SyntaxList(Of KeywordSyntax), keyword As KeywordSyntax) As KeywordSyntax
Parser\ParseStatement.vb (25)
87blockKeyword = ReportSyntaxError(blockKeyword, ERRID.ERR_ExpectedContinueKind)
205Dim stmtError As ERRID = Nothing
209stmtError = ERRID.ERR_ExitOperatorNotValid
214stmtError = ERRID.ERR_ExitEventMemberNotInvalid
218If stmtError <> ERRID.ERR_None Then
233blockKeyword = ReportSyntaxError(blockKeyword, ERRID.ERR_ExpectedExitKind)
288Dim relationalOperator = ReportSyntaxError(InternalSyntaxFactory.MissingPunctuation(SyntaxKind.EqualsToken), ERRID.ERR_ExpectedRelational)
499Dim errorId As ERRID
506errorId = ERRID.ERR_ObsoleteEndIf
512errorId = ERRID.ERR_ObsoleteWhileWend
516errorId = ERRID.ERR_ObsoleteGosub
623expression = InternalSyntaxFactory.MissingExpression.AddTrailingSyntax(ResyncAt({SyntaxKind.ToKeyword}), ERRID.ERR_Syntax)
664fromValue = InternalSyntaxFactory.MissingExpression.AddTrailingSyntax(ResyncAt({SyntaxKind.ToKeyword}), ERRID.ERR_Syntax)
737variable = ReportSyntaxError(variable, ERRID.ERR_ExtraNextVariable)
877label = ReportSyntaxError(label, ERRID.ERR_NoTypecharInLabel)
897intLiteral = ReportSyntaxError(intLiteral, ERRID.ERR_Syntax)
907label = ReportSyntaxError(label, ERRID.ERR_ExpectedIdentifier)
960errorKeyword = ReportSyntaxError(InternalSyntaxFactory.MissingKeyword(SyntaxKind.ErrorKeyword), ERRID.ERR_ObsoleteOnGotoGosub)
976missingGotoKeyword = ReportSyntaxError(missingGotoKeyword, ERRID.ERR_ExpectedResumeOrGoto)
1150target = SyntaxFactory.InvocationExpression(target, ReportSyntaxError(argumentList, ERRID.ERR_ObsoleteArgumentsNeedParens))
1329statement = statement.AddTrailingSyntax(CurrentToken, ERRID.ERR_ObsoleteRedimAs)
1429Return InternalSyntaxFactory.EmptyStatement.AddTrailingSyntax(keyword, ERRID.ERR_ObsoleteLetSetNotNeeded)
1578Return ReportSyntaxError(SyntaxFactory.LabelStatement(labelName, InternalSyntaxFactory.MissingPunctuation(SyntaxKind.ColonToken)), ERRID.ERR_ObsoleteLineNumbersAreLabels)
1715optionalWhileOrUntilClause = ReportSyntaxError(ResyncAt(clause), ERRID.ERR_Syntax)
1868result = result.AddError(ERRID.ERR_UnexpectedExpressionStatement)
Parser\ParseXml.vb (48)
135nextOption = ReportSyntaxError(nextOption, ERRID.ERR_DuplicateXmlAttribute, optionName.ToString)
144nextOption = ReportSyntaxError(nextOption, ERRID.ERR_VersionMustBeFirstInXmlDecl, "", "", optionName.ToString)
148nextOption = ReportSyntaxError(nextOption, ERRID.ERR_InvalidAttributeValue1, "1.0")
157nextOption = ReportSyntaxError(nextOption, ERRID.ERR_DuplicateXmlAttribute, optionName.ToString)
165nextOption = ReportSyntaxError(nextOption, ERRID.ERR_AttributeOrder, "encoding", "standalone")
181nextOption = ReportSyntaxError(nextOption, ERRID.ERR_DuplicateXmlAttribute, optionName.ToString)
195nextOption = ReportSyntaxError(nextOption, ERRID.ERR_InvalidAttributeValue2, "yes", "no")
205nextOption = ReportSyntaxError(nextOption, ERRID.ERR_IllegalAttributeInXmlDecl, "", "", nextOption.Name.ToString)
233endPrologue = endPrologue.AddLeadingSyntax(unexpected, ERRID.ERR_ExpectedXmlName)
242nodes(1) = ReportSyntaxError(version, ERRID.ERR_MissingVersionInXmlDecl)
275name = ReportSyntaxError(name, ERRID.ERR_ExpectedXmlWhiteSpace)
281name = name.AddTrailingSyntax(exp, ERRID.ERR_EmbeddedExpression)
304value = AddLeadingSyntax(CreateMissingXmlString(), exp, ERRID.ERR_EmbeddedExpression)
337Content(count - 1) = Content(count - 1).AddTrailingSyntax(skipped, ERRID.ERR_DTDNotSupported)
339outerNode = outerNode.AddTrailingSyntax(skipped, ERRID.ERR_DTDNotSupported)
555ERRID.ERR_IllegalXmlWhiteSpace)
632xml = ReportSyntaxError(xml, ERRID.ERR_XmlEndElementNoMatchingStart)
649xml = ReportSyntaxError(xml, ERRID.ERR_EmbeddedExpression)
677xml = xml.AddLeadingSyntax(docTypeTrivia, ERRID.ERR_DTDNotSupported)
726ReportSyntaxError(InternalSyntaxFactory.XmlName(Nothing, SyntaxFactory.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing)), ERRID.ERR_ExpectedXmlName),
729Dim xml = contexts.Peek.CreateElement(missingEndElement, ErrorFactory.ErrorInfo(ERRID.ERR_MissingXmlEndTag))
740element = contexts.Peek.CreateElement(endElement, ErrorFactory.ErrorInfo(ERRID.ERR_MissingXmlEndTag))
765endElement = ReportSyntaxError(endElement, ERRID.ERR_MismatchedXmlEndTag, prefix, colon, localName)
766element = contexts.Peek.CreateElement(endElement, ErrorFactory.ErrorInfo(ERRID.ERR_MissingXmlEndTag))
793endEmptyElementToken = AddLeadingSyntax(endEmptyElementToken, unexpectedSyntax, ERRID.ERR_ExpectedGreater)
803greaterThan = AddLeadingSyntax(greaterThan, unexpectedSyntax, ERRID.ERR_ExpectedGreater)
815greaterThan = ReportSyntaxError(greaterThan, ERRID.ERR_ExpectedGreater)
818greaterThan = AddLeadingSyntax(greaterThan, unexpectedSyntax, ERRID.ERR_Syntax)
853result = AddLeadingSyntax(result, unexpectedSyntax, ERRID.ERR_Syntax)
886ERRID.ERR_IllegalXmlWhiteSpace)
905beginEndElement = AddLeadingSyntax(beginEndElement, unexpected, ERRID.ERR_ExpectedLT)
1243modifier = modifier.AddTrailingSyntax(CurrentToken, ERRID.ERR_InvalidParameterSyntax)
1277operatorToken = ReportSyntaxError(InternalSyntaxFactory.MissingToken(SyntaxKind.PlusToken), ERRID.ERR_UnknownOperator)
1547localName = ReportSyntaxError(localName, ERRID.ERR_ExpectedXmlWhiteSpace)
1566localName = ReportSyntaxError(localName, ERRID.ERR_ExpectedXmlName)
1570localName = ReportSyntaxError(InternalSyntaxFactory.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing), ERRID.ERR_ExpectedXmlName)
1637localName = ReportSyntaxError(InternalSyntaxFactory.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing), ERRID.ERR_ExpectedXmlName)
1656name = ReportSyntaxError(name, ERRID.ERR_ExpectedXmlName)
1678ERRID.ERR_IllegalXmlStartNameChar,
1686ERRID.ERR_IllegalXmlNameChar,
1753xml = ReportSyntaxError(ParseXmlElementEndTag(ScannerState.Content), ERRID.ERR_XmlEndElementNoMatchingStart)
1796xml = xml.AddLeadingSyntax(docTypeTrivia, ERRID.ERR_DTDNotSupported)
1847name = ReportSyntaxError(name, ERRID.ERR_IllegalProcessingInstructionName, name.Text)
1859textToken = ReportSyntaxError(textToken, ERRID.ERR_ExpectedXmlWhiteSpace)
1924textToken = ReportSyntaxError(textToken, ERRID.ERR_IllegalXmlCommentChar)
1960startQuote = ReportSyntaxError(startQuote, ERRID.ERR_StartAttributeValue)
2038endXmlEmbedded = AddLeadingSyntax(endXmlEmbedded, unexpectedSyntax, ERRID.ERR_Syntax)
2415Return DirectCast(trivia.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_IllegalXmlWhiteSpace)), SyntaxTrivia)
Preprocessor\ExpressionEvaluator.vb (64)
212Return ReportSemanticError(ERRID.ERR_BadCCExpression, expr)
215Private Shared Function ReportSemanticError(id As ERRID, node As VisualBasicSyntaxNode) As BadCConst
219Private Shared Function ReportSemanticError(id As ERRID, node As VisualBasicSyntaxNode, ParamArray args As Object()) As BadCConst
227Return ReportSemanticError(ERRID.ERR_BadCCExpression, expr)
294Return ReportSemanticError(ERRID.ERR_TypecharNoMatch2, expr, GetDisplayString(typeChar), value.SpecialType.GetDisplayName())
412Return ReportSemanticError(ERRID.ERR_BadTypeInCCExpression, expr.Type)
418Return ReportSemanticError(ERRID.ERR_TryCastOfValueType1, expr.Type)
429Return ReportSemanticError(ERRID.ERR_IdentityDirectCastForFloat, expr.Type)
431Return ReportSemanticError(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, expr.Type)
435Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr.Type, value.SpecialType.GetDisplayName(), specialType.GetDisplayName())
443Return ReportSemanticError(ERRID.ERR_BadTypeInCCExpression, expr.Type)
456Return ReportSemanticError(ERRID.ERR_IdentityDirectCastForFloat, expr.Type)
459result = result.WithError(ERRID.WRN_ObsoleteIdentityDirectCastForValueType)
464Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr.Type, val.SpecialType, specialType)
472Return ReportSemanticError(ERRID.ERR_BadTypeInCCExpression, expr.Type)
548Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
561Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
607Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
621Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_Char.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName())
623Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName())
628Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
631Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, SpecialType.System_String.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName())
633Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, specialType, SpecialType.System_Boolean.GetDisplayName())
641Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
668Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_Char.GetDisplayName(), toSpecialType.GetDisplayName())
671Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, SpecialType.System_DateTime.GetDisplayName(), toSpecialType.GetDisplayName())
674Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
677Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, SpecialType.System_String.GetDisplayName(), toSpecialType.GetDisplayName())
680Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType.GetDisplayName(), toSpecialType.GetDisplayName())
691Return ReportSemanticError(ERRID.ERR_ExpressionOverflow1, expr, toSpecialType.GetDisplayName())
697Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
721Return ReportSemanticError(ERRID.ERR_CannotConvertValue2, expr, fromSpecialType.GetDisplayName(), toSpecialType.GetDisplayName())
727Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
736Return ReportSemanticError(ERRID.ERR_IntegralToCharTypeMismatch1, expr, fromSpecialType.GetDisplayName())
741Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName())
744Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName())
750Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
759Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_Char.GetDisplayName())
765Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
774Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName())
779Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName())
782Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName())
785Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
791Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
795Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, fromSpecialType, SpecialType.System_DateTime.GetDisplayName())
801Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
810Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
815Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
822Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
828Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
832Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, specialType, SpecialType.System_String.GetDisplayName())
842Return ReportSemanticError(ERRID.ERR_RequiredConstExpr, expr)
845Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, value.SpecialType.GetDisplayName(), SpecialType.System_Object.GetDisplayName())
853Return ReportSemanticError(ERRID.ERR_BadCCExpression, expr)
859Return ReportSemanticError(ERRID.ERR_UnaryOperand2, expr, expr.OperatorToken.ValueText, specialType.GetDisplayName())
937Return ReportSemanticError(ERRID.ERR_ExpressionOverflow1, expr)
953Return ReportSemanticError(ERRID.ERR_BadCCExpression, expr)
1061Return ReportSemanticError(ERRID.ERR_BadTypeInCCExpression, expr)
1210Return ReportSemanticError(ERRID.ERR_ZeroDivide, expr)
1227Return ReportSemanticError(ERRID.ERR_ZeroDivide, expr)
1273Return ReportSemanticError(ERRID.ERR_ExpressionOverflow1, expr, resultType.GetDisplayName())
1455Return ReportSemanticError(ERRID.ERR_ZeroDivide, expr)
1461Return ReportSemanticError(ERRID.ERR_ZeroDivide, expr)
1486Return ReportSemanticError(ERRID.ERR_ExpressionOverflow1, expr, resultType.GetDisplayName())
Scanner\Scanner.vb (24)
243token = MakeBadToken(leadingTrivia, length, ERRID.ERR_IllegalChar)
246token = MakeBadToken(leadingTrivia, RemainingLength(), ERRID.ERR_IllegalChar)
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))
1300Dim err As ERRID = ERRID.ERR_ExpectedIdentifier
1303err = ERRID.ERR_LineContWithCommentOrNoPrecSpace
1510Return MakeBadToken(precedingTrivia, 1, ERRID.ERR_ExpectedIdentifier)
1629Return MakeBadToken(precedingTrivia, here, ERRID.ERR_MissingEndBrack)
1667Return MakeBadToken(precedingTrivia, here + 1, ERRID.ERR_ExpectedIdentifier)
1680Return MakeBadToken(precedingTrivia, here, ERRID.ERR_MissingEndBrack)
1682Return MakeBadToken(precedingTrivia, here, ERRID.ERR_ExpectedIdentifier)
1857Return MakeBadToken(precedingTrivia, here, ERRID.ERR_InvalidLiteralExponent)
1953Return MakeBadToken(precedingTrivia, here, ERRID.ERR_ObsoleteExponent)
1996Return MakeBadToken(precedingTrivia, here, ERRID.ERR_Syntax)
2120result = DirectCast(result.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_Overflow)), SyntaxToken)
2124result = DirectCast(result.AddError(ErrorFactory.ErrorInfo(ERRID.ERR_Syntax)), SyntaxToken)
2489Return MakeBadToken(precedingTrivia, here, ERRID.ERR_InvalidDate)
2510Return MakeBadToken(precedingTrivia, here, ERRID.ERR_InvalidDate)
2546Return MakeBadToken(precedingTrivia, 3, ERRID.ERR_IllegalCharConstant)
2571Return MakeBadToken(precedingTrivia, length + 2, ERRID.ERR_IllegalCharConstant)
2611Dim StrTkErr = strTk.SetDiagnostics({ErrorFactory.ErrorInfo(ERRID.ERR_UnterminatedStringLiteral)})
2691Dim errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_LanguageVersion,
Scanner\ScannerXml.vb (30)
158Return XmlMakeBadToken(leadingTrivia, 1, ERRID.ERR_IllegalXmlNameChar)
167Return XmlMakeBadToken(leadingTrivia, 1, ERRID.ERR_IllegalXmlNameChar)
388Return XmlMakeTextLiteralToken(Nothing, 3, ERRID.ERR_XmlEndCDataNotAllowedInContent)
466Return XmlMakeBadToken(Nothing, 1, ERRID.ERR_IllegalChar)
557Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalChar)
619Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalChar)
700result = XmlMakeBadToken(precedingTrivia.ToList, 1, ERRID.ERR_IllegalChar)
847Return XmlMakeBadToken(Nothing, 1, ERRID.ERR_IllegalChar)
929Dim errEmbedInfo = ErrorFactory.ErrorInfo(ERRID.ERR_QuotedEmbeddedExpression)
938Dim errInfo = ErrorFactory.ErrorInfo(If(isSingle, ERRID.ERR_ExpectedSQuote, ERRID.ERR_ExpectedQuote))
963result = XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalChar)
1064Dim err As ERRID = ERRID.ERR_None
1091If err = ERRID.ERR_None Then
1095err = If(Not isStartNameChar(xmlCh.Char1), ERRID.ERR_IllegalXmlStartNameChar, ERRID.ERR_None)
1098err = If(Not isNameChar(xmlCh.Char1), ERRID.ERR_IllegalXmlNameChar, ERRID.ERR_None)
1100If err <> ERRID.ERR_None Then
1108err = ERRID.ERR_IllegalXmlNameChar
1122If err <> ERRID.ERR_None Then
1127Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalChar)
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\XmlTokenFactories.vb (14)
74Private Function XmlMakeBadToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), length As Integer, id As ERRID) As BadTokenSyntax
78Private Function XmlMakeBadToken(subkind As SyntaxSubKind, precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), length As Integer, id As ERRID) As BadTokenSyntax
87Case ERRID.ERR_IllegalXmlStartNameChar,
88ERRID.ERR_IllegalXmlNameChar
91If id = ERRID.ERR_IllegalXmlNameChar AndAlso
98id = ERRID.ERR_IllegalXmlStartNameChar
292err As ERRID
344Return XmlMakeBadToken(SyntaxSubKind.BeginDocTypeToken, precedingTrivia, 9, ERRID.ERR_DTDNotSupported)
349Return XmlMakeBadToken(SyntaxSubKind.LessThanExclamationToken, precedingTrivia, 2, If(state = ScannerState.DocType, ERRID.ERR_DTDNotSupported, ERRID.ERR_Syntax))
354Return XmlMakeBadToken(SyntaxSubKind.OpenBracketToken, precedingTrivia, 1, If(state = ScannerState.DocType, ERRID.ERR_DTDNotSupported, ERRID.ERR_IllegalXmlNameChar))
360Return XmlMakeBadToken(SyntaxSubKind.CloseBracketToken, precedingTrivia, 1, If(state = ScannerState.DocType, ERRID.ERR_DTDNotSupported, ERRID.ERR_IllegalXmlNameChar))
Semantics\AccessCheck.vb (10)
1057Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritanceAccessMismatch5,
1067Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsTypeArgAccessMismatch7,
1079Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritanceAccessMismatchOutside3,
1088Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsTypeArgAccessMismatchOutside5,
1130Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatch6,
1140Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchOutsideAssembly4,
1192Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchImplementedEvent6,
1201Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatch6,
1213Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchImplementedEvent4,
1220Binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_AccessMismatchOutsideAssembly4,
Semantics\Operators.vb (16)
317Dim targetMismatchError As ERRID
325targetMismatchError = ERRID.ERR_ConvParamMustBeContainingType1
330targetMismatchError = ERRID.ERR_UnaryParamMustBeContainingType1
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))
355targetMismatchError = ERRID.ERR_BinaryParamMustBeContainingType1
361diagnosticsOpt.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OperatorRequiresIntegerParameter1,
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))
443ERRID.ERR_ConversionFromBaseType,
444ERRID.ERR_ConversionToDerivedType)), method.Locations(0))
452ERRID.ERR_ConversionFromDerivedType,
453ERRID.ERR_ConversionToBaseType)), method.Locations(0))
Symbols\Attributes\AttributeData.vb (9)
247diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_SecurityAttributeMissingAction),
300diagnostics.Add(ERRID.ERR_PrincipalPermissionInvalidAction, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
329diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
341diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
352diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidActionAssembly, displayAndLocation.Location, displayAndLocation.ArgumentDisplay)
402DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_PermissionSetAttributeInvalidFile, argSyntaxLocation, If(fileName, "<empty>"), filePropName)
452diagnostics.Add(ERRID.ERR_BadAttribute1, location, Me.AttributeClass)
460diagnostics.Add(ERRID.ERR_BadAttribute1, location, Me.AttributeClass)
502diagnostics.Add(ERRID.ERR_BadAttributeUuid2, location, Me.AttributeClass, If(guidString, ObjectDisplay.NullLiteral))
Symbols\BaseTypeAnalysis.vb (14)
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)
144Return GetInheritanceOrDependenceDetails(chain, ERRID.ERR_InheritsFrom2)
148Return GetInheritanceOrDependenceDetails(chain, ERRID.ERR_BaseTypeReferences2)
151Private Function GetInheritanceOrDependenceDetails(chain As ConsList(Of DependencyDesc), inheritsOrDepends As ERRID) As DiagnosticInfo
155Dim detailErrId As ERRID
161detailErrId = ERRID.ERR_IsNestedIn2
174detailErrId = ERRID.ERR_IsNestedIn2
277Return ErrorFactory.ErrorInfo(ERRID.ERR_InheritanceCycleInImportedType1, this)
288Return ErrorFactory.ErrorInfo(ERRID.ERR_InheritanceCycleInImportedType1, this)
323Return ErrorFactory.ErrorInfo(ERRID.ERR_InheritanceCycleInImportedType1, this)
Symbols\ConstraintsHelper.vb (26)
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)))
320ERRID.ERR_ConflictingDirectConstraints3,
338ERRID.ERR_ConstraintClashDirectIndirect3,
349ERRID.ERR_ConstraintClashIndirectDirect3,
360ERRID.ERR_ConstraintClashIndirectIndirect4,
649diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_RestrictedType1, typeArgument)))
677diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_GenericConstraintNotSatisfied2, typeArgument, constraintType)))
916diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadGenericParamForNewConstraint2, typeArgument, typeParameter)))
929diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_MustInheritForNewConstraint2, typeArgument, typeParameter)))
941diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_NoSuitableNewForNewConstraint2, typeArgument, typeParameter)))
958diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadTypeArgForRefConstraint2, typeArgument, typeParameter)))
982diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadTypeArgForStructConstraintNull, typeArgument)))
985diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_BadTypeArgForStructConstraint2, typeArgument, typeParameter)))
994diagnosticsBuilder.Add(New TypeParameterDiagnosticInfo(typeParameter, ErrorFactory.ErrorInfo(ERRID.ERR_NullableDisallowedForStructConstr1, typeParameter)))
1103builder.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintCycleLink2, typeParameter, previous))
1107builder(0) = ErrorFactory.ErrorInfo(ERRID.ERR_ConstraintCycleLink2, cycle.Head, previous)
Symbols\ObsoleteAttributeHelpers.vb (9)
123Return ErrorFactory.ErrorInfo(ERRID.WRN_Experimental, New FormattedSymbol(symbol, SymbolDisplayFormat.VisualBasicErrorMessageFormat))
133Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoletePropertyAccessor2, ERRID.WRN_UseOfObsoletePropertyAccessor2), data,
136Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoletePropertyAccessor3, ERRID.WRN_UseOfObsoletePropertyAccessor3), data,
141Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoleteSymbolNoMessage1, ERRID.WRN_UseOfObsoleteSymbolNoMessage1), data, symbol)
143Return ErrorFactory.ObsoleteErrorInfo(If(data.IsError, ERRID.ERR_UseOfObsoleteSymbol2, ERRID.WRN_UseOfObsoleteSymbol2), data, symbol, data.Message)
Symbols\Source\CustomEventAccessorSymbol.vb (11)
200diagnostics.Add(ERRID.ERR_RaiseEventShapeMismatch1, location, eventType)
207diagnostics.Add(ERRID.ERR_EventAddRemoveHasOnlyOneParam, location)
216Dim errid As ERRID = If(_event.IsWindowsRuntimeEvent, ERRID.ERR_AddParamWrongForWinRT, ERRID.ERR_AddRemoveParamNotEventType)
229diagnostics.Add(ERRID.ERR_EventImplRemoveHandlerParamWrong, location, _event.Name, firstImplementedEvent.Name, firstImplementedEvent.ContainingType)
236diagnostics.Add(ERRID.ERR_RemoveParamWrongForWinRT, location)
240diagnostics.Add(ERRID.ERR_AddRemoveParamNotEventType, location)
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\ImplementsHelper.vb (16)
100Dim errorid As ERRID
102errorid = ERRID.ERR_BadInterfaceMethodFlags1
104errorid = ERRID.ERR_BadInterfacePropertyFlags1
106errorid = ERRID.ERR_InterfaceCantUseEventSpecifier1
115ERRID.ERR_ModuleMemberCantImplement)
145ERRID.ERR_MixingWinRTAndNETEvents,
185Binder.ReportDiagnostic(diagBag, interfaceName, ERRID.ERR_InterfaceNotImplemented1,
209Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplementsMember3,
291Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplements3,
305Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplementsMember3,
389Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_IdentNotMemberOfInterface4,
401Binder.ReportDiagnostic(diagBag, interfaceName, ERRID.ERR_BadImplementsType)
488Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_PropertyDoesntImplementAllAccessors,
503Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_PropertyDoesntImplementInitOnly,
513Binder.ReportDiagnostic(diagBag, implementedMemberSyntax, ERRID.ERR_ImplementingInterfaceWithDifferentTupleNames5,
547ErrorFactory.ErrorInfo(ERRID.ERR_ImplementsWithConstraintMismatch3, implementingMethod, implementedMethod.ContainingType, implementedMethod),
Symbols\Source\OverrideHidingHelper.vb (39)
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,
437Dim id As ERRID
439id = ERRID.WRN_MustOverride2
441id = ERRID.WRN_MustOverloadBase4
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),
850ReportBadOverriding(ERRID.ERR_CannotOverrideInAccessibleMember, member, overriddenMembersResult.InaccessibleMembers(0), diagnostics)
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,
872Dim errorId As ERRID
875ReportBadOverriding(ERRID.ERR_CantOverrideNotOverridable2, member, overriddenMember, diagnostics)
877ReportBadOverriding(ERRID.ERR_CantOverride4, member, overriddenMember, diagnostics)
879ReportBadOverriding(ERRID.ERR_OverrideWithByref2, member, overriddenMember, diagnostics)
881ReportBadOverriding(ERRID.ERR_OverrideWithOptional2, member, overriddenMember, diagnostics)
883ReportBadOverriding(ERRID.ERR_InvalidOverrideDueToReturn2, member, overriddenMember, diagnostics)
885ReportBadOverriding(ERRID.ERR_OverridingPropertyKind2, member, overriddenMember, diagnostics)
887ReportBadOverriding(ERRID.ERR_OverridingInitOnlyProperty, member, overriddenMember, diagnostics)
889ReportBadOverriding(ERRID.ERR_OverrideWithArrayVsParamArray2, member, overriddenMember, diagnostics)
891ReportBadOverriding(ERRID.ERR_OverrideWithOptionalTypes2, member, overriddenMember, diagnostics)
893ReportBadOverriding(ERRID.ERR_OverrideWithDefault2, member, overriddenMember, diagnostics)
895ReportBadOverriding(ERRID.ERR_OverrideWithConstraintMismatch2, member, overriddenMember, diagnostics)
900ReportBadOverriding(ERRID.WRN_InvalidOverrideDueToTupleNames2, member, overriddenMember, diagnostics)
907diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_InAccessibleOverridingMethod5,
985ReportBadOverriding(ERRID.ERR_CannotOverrideInAccessibleMember, overridingAccessor, overriddenAccessor, diagnostics)
987Dim errorId As ERRID
999Private Shared Sub ReportBadOverriding(id As ERRID,
1008Private Shared Function ConsistentAccessibility(overriding As Symbol, overridden As Symbol, ByRef errorId As ERRID) As Boolean
1010errorId = ERRID.ERR_FriendAssemblyBadAccessOverride2
1013errorId = ERRID.ERR_BadOverrideAccess2
Symbols\Source\SourceAssemblySymbol.vb (30)
258diagnostics.Add(ERRID.WRN_AssemblyAttributeFromModuleIsOverridden, NoLocation.Singleton, attribute.AttributeClass, netModuleName)
262diagnostics.Add(ERRID.ERR_InvalidMultipleAttributeUsageInNetModule2, NoLocation.Singleton, attribute.AttributeClass.Name, netModuleName)
874bag.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_FriendRefNotEqualToThis,
879bag.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_FriendRefSigningMismatch,
938diagnostics.Add(ERRID.ERR_FriendAssemblyNameInvalid, If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), displayName)
945diagnostics.Add(ERRID.ERR_FriendAssemblyNameInvalid, If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), displayName)
953diagnostics.Add(ERRID.ERR_FriendAssemblyBadArguments, If(nodeOpt IsNot Nothing, nodeOpt.GetLocation(), NoLocation.Singleton), displayName)
1007diagnostics.Add(ERRID.ERR_InvalidSignaturePublicKey, GetAssemblyAttributeFirstArgumentLocation(arguments.AttributeSyntaxOpt))
1020diagnostics.Add(ERRID.ERR_InvalidVersionFormat, GetAssemblyAttributeFirstArgumentLocation(arguments.AttributeSyntaxOpt))
1027diagnostics.Add(ERRID.WRN_InvalidVersionFormat, GetAssemblyAttributeFirstArgumentLocation(arguments.AttributeSyntaxOpt))
1041diagnostics.Add(ERRID.ERR_InvalidAssemblyCultureForExe, GetAssemblyAttributeFirstArgumentLocation(arguments.AttributeSyntaxOpt))
1043diagnostics.Add(ERRID.ERR_InvalidAssemblyCulture, GetAssemblyAttributeFirstArgumentLocation(arguments.AttributeSyntaxOpt))
1060diagnostics.Add(ERRID.ERR_InvalidVersionFormat2, GetAssemblyAttributeFirstArgumentLocation(arguments.AttributeSyntaxOpt))
1136diagnostics.Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetArgumentLocation(nodeOpt, i), attrData.AttributeClass)
1206diagnostics.Add(ERRID.WRN_DelaySignButNoKey, NoLocation.Singleton)
1211diagnostics.Add(ERRID.ERR_PublicSignNetModule, NoLocation.Singleton)
1213diagnostics.Add(ERRID.ERR_PublicSignNoKey, NoLocation.Singleton)
1230diagnostics.Add(ERRID.ERR_SignButNoPrivateKey, NoLocation.Singleton, StrongNameKeys.KeyFilePath)
1251diagnostics.Add(ERRID.ERR_CmdOptionConflictsSource, NoLocation.Singleton,
1278diagnostics.Add(ERRID.ERR_CmdOptionConflictsSource, NoLocation.Singleton, AttributeDescription.AssemblyKeyNameAttribute.FullName, "CryptoKeyContainer")
1296diagnostics.Add(ERRID.ERR_CmdOptionConflictsSource, NoLocation.Singleton, AttributeDescription.AssemblyKeyFileAttribute.FullName, "CryptoKeyFile")
1301diagnostics.Add(ERRID.WRN_AttributeIgnoredWhenPublicSigning, NoLocation.Singleton, AttributeDescription.AssemblyKeyNameAttribute.FullName)
1305diagnostics.Add(ERRID.WRN_AttributeIgnoredWhenPublicSigning, NoLocation.Singleton, AttributeDescription.AssemblyKeyFileAttribute.FullName)
1320diagnostics.Add(ERRID.ERR_NetModuleNameMismatch, NoLocation.Singleton, moduleName, fileName)
1334diagnostics.Add(ERRID.ERR_NetModuleNameMustBeUnique, NoLocation.Singleton, m.Name)
1344diagnostics.Add(ERRID.ERR_AgnosticToMachineModule, NoLocation.Singleton, m)
1348diagnostics.Add(ERRID.ERR_ConflictingMachineModule, NoLocation.Singleton, m)
1362diagnostics.Add(ERRID.ERR_MissingNetModuleReference, NoLocation.Singleton, referencedModuleName)
1366diagnostics.Add(ERRID.ERR_UnsupportedModule1, NoLocation.Singleton, m)
1396diagnostics.Add(ERRID.ERR_FriendAssemblyStrongNameRequired, oneKey.Value.Item1, oneKey.Value.Item2)
Symbols\Source\SourceEventSymbol.vb (19)
90Binder.ReportDiagnostic(diagnostics, identifier, ERRID.ERR_TypecharNotallowed)
107diagnostics.Add(ERRID.ERR_DuplicateAddHandlerDef, accessor.Locations(0))
114diagnostics.Add(ERRID.ERR_DuplicateRemoveHandlerDef, accessor.Locations(0))
121diagnostics.Add(ERRID.ERR_DuplicateRaiseEventDef, accessor.Locations(0))
130diagnostics.Add(ERRID.ERR_MissingAddHandlerDef1, location, Me)
134diagnostics.Add(ERRID.ERR_MissingRemoveHandlerDef1, location, Me)
138diagnostics.Add(ERRID.ERR_MissingRaiseEventDef1, location, Me)
171Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_EventTypeNotDelegate)
175Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_UnsupportedType1, type.Name)
178Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_EventDelegatesCantBeFunctions)
185Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_WinRTEventWithoutDelegate)
190Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_WinRTEventWithoutDelegate)
209ERRID.ERR_MultipleEventImplMismatch3,
259Binder.ReportDiagnostic(diagnostics, implementsKeyword, ERRID.ERR_InterfaceEventCantUse1, implementsKeyword.ValueText)
263Binder.ReportDiagnostic(diagnostics, syntax.Modifiers.First(SyntaxKind.SharedKeyword), ERRID.ERR_SharedOnProcThatImpl)
297diagnostics.Add(ERRID.ERR_EventImplMismatch5, errLocation, {Me, implemented, implemented.ContainingType, type, implemented.Type})
656DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location)
666DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_InvalidNonSerializedUsage, arguments.AttributeSyntaxOpt.GetLocation())
711ERRID.ERR_BadEventFlags1,
Symbols\Source\SourceFile.vb (4)
205Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Strict")
212Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Infer")
219Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Explicit")
226Binder.ReportDiagnostic(diagBag, optionStmtSyntax, ERRID.ERR_DuplicateOption1, "Compare")
Symbols\Source\SourceMemberContainerTypeSymbol.vb (85)
399diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_VarianceInterfaceNesting), Locations(0)))
694AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceOutByValDisallowed1, type.Name))
700ERRID.ERR_VarianceOutByRefDisallowed1,
701ERRID.ERR_VarianceInByRefDisallowed1),
707AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceInReturnDisallowed1, type.Name))
712AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceOutConstraintDisallowed1, type.Name))
718ERRID.ERR_VarianceOutNullableDisallowed2,
719ERRID.ERR_VarianceInNullableDisallowed2),
726AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceInReadOnlyPropertyDisallowed1, type.Name))
731AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceOutWriteOnlyPropertyDisallowed1, type.Name))
737ERRID.ERR_VarianceOutPropertyDisallowed1,
738ERRID.ERR_VarianceInPropertyDisallowed1),
759ERRID.ERR_VarianceOutParamDisallowed1,
760ERRID.ERR_VarianceInParamDisallowed1),
769ERRID.ERR_VarianceOutParamDisallowed1,
770ERRID.ERR_VarianceInParamDisallowed1),
779ERRID.ERR_VarianceOutParamDisallowedForGeneric3,
780ERRID.ERR_VarianceInParamDisallowedForGeneric3),
793ERRID.ERR_VarianceOutParamDisallowedHere2,
794ERRID.ERR_VarianceInParamDisallowedHere2),
805ERRID.ERR_VarianceOutParamDisallowedHereForGeneric4,
806ERRID.ERR_VarianceInParamDisallowedHereForGeneric4),
868AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowed2,
873AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowed2,
878AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowedForGeneric4,
887AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowedHere3,
893AppendVarianceDiagnosticInfo(diagnostics, ErrorFactory.ErrorInfo(ERRID.ERR_VarianceTypeDisallowedHereForGeneric5,
1761diagnostics.Add(ERRID.ERR_PartialMethodsMustBeSub1, method.NonMergedLocation, method.Name)
1824diagnostics.Add(ERRID.ERR_OnlyOnePartialMethodAllowed2,
1849diagnostics.Add(ERRID.ERR_OnlyOneImplementingMethodAllowed3,
1872diagnostics.Add(ERRID.ERR_PartialMethodMustBeEmpty, bestPartialMethodLocation)
1911diagnostics.Add(ERRID.ERR_ImplementationMustBePrivate2,
1931diagnostics.Add(ERRID.ERR_PartialMethodParamNamesMustMatch3,
1952diagnostics.Add(ERRID.ERR_PartialMethodTypeParamNameMismatch3,
1963diagnostics.Add(ERRID.ERR_PartialMethodGenericConstraints2,
2149diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_RecordEmbeds2,
2161diagnostics.Add(ERRID.ERR_RecordCycle2,
2281diagBag.Add(ERRID.ERR_DuplicateDefaultProps1, propertySymbol.Locations(0), GetKindText())
2298diagBag.Add(ERRID.ERR_DefaultMissingFromProperty2, propertySymbol.Locations(0), defaultProperty, propertySymbol)
2327diagBag.Add(ERRID.WRN_DefaultnessShadowed4, location,
2438diagBag.Add(ERRID.ERR_MustShadow2, symbol.Locations(0), symbol.GetKindText(), symbol.Name)
2443diagBag.Add(ERRID.ERR_MustBeOverloads2, symbol.Locations(0), symbol.GetKindText(), symbol.Name)
2541diagBag.Add(ERRID.ERR_InvalidInNamespace, fieldDecl.GetLocation())
2556diagBag.Add(ERRID.ERR_InvalidInNamespace, methodDecl.GetLocation())
2575diagBag.Add(ERRID.ERR_InvalidInNamespace, methodDecl.GetLocation())
2587diagBag.Add(ERRID.ERR_InvalidInNamespace, propertyDecl.PropertyStatement.GetLocation())
2596diagBag.Add(ERRID.ERR_InvalidInNamespace, propertyDecl.GetLocation())
2623diagBag.Add(ERRID.ERR_InvalidInNamespace, memberSyntax.GetLocation())
2665Binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_AutoPropertyInitializedInStructure)
2943ERRID.ERR_SyntMemberShadowsGenericParam3,
2949Binder.ReportDiagnostic(diagBag, sym.Locations(0), ERRID.ERR_ShadowingGenericParamWithMember1, sym.Name)
3044ERRID.ERR_SynthMemberClashesWithMember5,
3064ERRID.ERR_SynthMemberClashesWithSynth7,
3080ERRID.ERR_MemberClashesWithSynth6,
3100ERRID.ERR_MultiplyDefinedEnumMember2,
3112ERRID.ERR_MultiplyDefinedType3,
3382Dim diag = ErrorFactory.ErrorInfo(ERRID.ERR_MethodAlreadyImplemented2,
3406Dim diag = If(useSiteInfo.DiagnosticInfo, ErrorFactory.ErrorInfo(If(ifaceMember.IsShared, ERRID.ERR_UnimplementedSharedMember, ERRID.ERR_UnimplementedMember3),
3707diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_MatchingOperatorExpected2,
3836diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateProcDef1, firstMember), location)
3843diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_DuplicateProcDefWithDifferentTupleNames2, firstMember, secondMember), location)
3847diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithByref2, firstMember, secondMember), location)
3851diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithReturnType2, firstMember, secondMember), location)
3855diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithArrayVsParamArray2, firstMember, secondMember), location)
3860diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithOptional2, firstMember, secondMember), location)
3872diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadWithDefault2, firstMember, secondMember), location)
3876diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadingPropertyKind2, firstMember, secondMember), location)
3902diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_InterfaceUnifiesWithInterface2, ERRID.ERR_InterfacePossiblyImplTwice2),
3906diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_InterfaceUnifiesWithBase3, ERRID.ERR_ClassInheritsInterfaceUnifiesWithBase3),
3911diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_BaseUnifiesWithInterfaces3, ERRID.ERR_ClassInheritsBaseUnifiesWithInterfaces3),
3917diag = ErrorFactory.ErrorInfo(If(isInterface, ERRID.ERR_InterfaceBaseUnifiesWithBase4, ERRID.ERR_ClassInheritsInterfaceBaseUnifiesWithBase4),
3951diag = ErrorFactory.ErrorInfo(ERRID.WRN_VarianceDeclarationAmbiguous3,
3983diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames2, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames2),
3987diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames3, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames3),
3992diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNamesReverse3, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNamesReverse3),
3998diag = ErrorFactory.ErrorInfo(If(IsInterface, ERRID.ERR_InterfaceInheritedTwiceWithDifferentTupleNames4, ERRID.ERR_InterfaceImplementedTwiceWithDifferentTupleNames4),
Symbols\Source\SourceMemberFieldSymbol.vb (21)
116binder.ReportDiagnostic(diagBag, modifiedIdentifier.Identifier, ERRID.ERR_ConstAsNonConstant)
119binder.ReportDiagnostic(diagBag, declarator.AsClause.Type, ERRID.ERR_ConstAsNonConstant)
123binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_ConstantWithNoValue)
129binder.ReportDiagnostic(diagBag, declarator.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType)
213binder.ReportDiagnostic(diagnostics, modifiedIdentifier, ERRID.ERR_EventSourceIsArray)
222binder.ReportDiagnostic(diagnostics, identifier, ERRID.ERR_WithEventsAsStruct)
408Dim errorId = ERRID.ERR_BadDimFlags1
412errorId = ERRID.ERR_BadWithEventsFlags1
416errorId = ERRID.ERR_BadDimFlags1
429binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_StructCantUseVarSpecifier1, diagBag.DiagnosticBag, SyntaxKind.ProtectedKeyword)
435binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_StructCantUseVarSpecifier1, diagBag.DiagnosticBag, SyntaxKind.WithEventsKeyword)
442binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_ModuleCantUseVariableSpecifier1, diagBag.DiagnosticBag,
466binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_BadConstFlags1, diagBag.DiagnosticBag, SyntaxKind.SharedKeyword)
470binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_BadConstFlags1, diagBag.DiagnosticBag, SyntaxKind.ReadOnlyKeyword)
474binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_BadConstFlags1, diagBag.DiagnosticBag, SyntaxKind.WithEventsKeyword)
478binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_BadConstFlags1, diagBag.DiagnosticBag, SyntaxKind.DimKeyword)
498binder.ReportDiagnostic(diagBag, declarator, ERRID.ERR_InitWithMultipleDeclarators)
522ERRID.ERR_InitializerInStruct)
524binder.ReportDiagnostic(diagBag, DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.NewKeyword, ERRID.ERR_SharedStructMemberCannotSpecifyNew)
606binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_ArrayInitInStruct)
621binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_InitWithExplicitArraySizes)
Symbols\Source\SourceMemberMethodSymbol.vb (16)
233Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_SecurityCriticalAsyncInClassOrStruct)
246Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_SynchronizedAsyncMethod)
262Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_PartialMethodParamArrayMismatch2, methodImpl, Me)
264Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_PartialMethodDefaultParameterValueMismatch2, methodImpl, Me)
320Binder.DisallowTypeCharacter(ident, diagBag, ERRID.ERR_TypeCharOnGenericParam)
326Binder.ReportDiagnostic(diagBag, typeParamSyntax, ERRID.ERR_TypeParamNameFunctionNameCollision)
367diagnostics.Add(ERRID.ERR_PartialDeclarationImplements1,
400ERRID.ERR_SharedOnProcThatImpl,
612Binder.ReportDiagnostic(diagBag, singleHandleClause, ERRID.ERR_HandlesSyntaxInModule)
654Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_NoWithEventsVarOnHandlesList)
665Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_SharedEventNeedsSharedHandler)
670Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_SharedEventNeedsHandlerInTheSameType)
684Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_HandlesSyntaxInClass)
702Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_HandlesSyntaxInClass)
726Binder.ReportDiagnostic(diagBag, singleHandleClause.EventMember, ERRID.ERR_EventNotFound1, eventName)
834Binder.ReportDiagnostic(diagBag, singleHandleClause.EventMember, ERRID.ERR_EventHandlerSignatureIncompatible2, Me.Name, eventName)
Symbols\Source\SourceMethodSymbol.vb (67)
99binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_StructsCannotHandleEvents)
103binder.ReportDiagnostic(diagBag, syntax.HandlesClause, ERRID.ERR_BadInterfaceMethodFlags1, syntax.HandlesClause.HandlesKeyword.ToString)
107binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_HandlesInvalidOnGenericMethod)
126binder.ReportDiagnostic(diagBag, syntax.Identifier, ERRID.ERR_PartialMethodsMustNotBeAsync1, name)
164ERRID.ERR_OnlyPrivatePartialMethods1,
184ERRID.ERR_OnlyPrivatePartialMethods1,
210binder.ReportDiagnostic(diagBag, partialToken, ERRID.ERR_PartialMethodsMustBePrivate)
225ERRID.ERR_BadDeclareFlags1,
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)
247diagBag.Add(ERRID.ERR_DeclaresCantBeInGeneric, syntax.Identifier.GetLocation())
263diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.GetLocation(), name)
272diagBag.Add(ERRID.ERR_BadAttribute1, syntax.LibraryName.GetLocation(), name)
321Dim paramCountMismatchERRID As ERRID
326paramCountMismatchERRID = ERRID.ERR_OneParameterRequired1
329paramCountMismatchERRID = ERRID.ERR_OneOrTwoParametersRequired1
337paramCountMismatchERRID = ERRID.ERR_TwoParametersRequired1
344Case ERRID.ERR_OneParameterRequired1
349Case ERRID.ERR_TwoParametersRequired1
355Case ERRID.ERR_OneOrTwoParametersRequired1
396binder.ReportDiagnostic(diagBag, syntax.ParameterList, ERRID.ERR_SharedConstructorWithParams)
408binder.ReportDiagnostic(diagBag, syntax.NewKeyword, ERRID.ERR_NewInStruct)
427ERRID.ERR_BadMethodFlags1,
435binder.ReportModifierError(modifiers, ERRID.ERR_InvalidAsyncIteratorModifiers, diagBag, InvalidAsyncIterator)
455Dim operatorModifiers = binder.DecodeModifiers(syntax.Modifiers, allowModifiers, ERRID.ERR_BadOperatorFlags1, Accessibility.Public, diagBag)
463binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_OperatorMustBePublic, diagBag,
470binder.ReportDiagnostic(diagBag, syntax.OperatorToken, ERRID.ERR_OperatorMustBeShared)
476binder.ReportDiagnostic(diagBag, syntax.OperatorToken, ERRID.ERR_ConvMustBeWideningOrNarrowing)
480binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_InvalidSpecifierOnNonConversion1, diagBag,
502binder.ReportModifierError(modifiers, ERRID.ERR_BadFlagsOnNew1, diagBag,
508binder.ReportModifierError(modifiers, ERRID.ERR_CantOverrideConstructor, diagBag, SyntaxKind.OverridesKeyword)
513binder.ReportModifierError(modifiers, ERRID.ERR_ConstructorCannotBeDeclaredPartial, diagBag, SyntaxKind.PartialKeyword)
518binder.ReportModifierError(modifiers, ERRID.ERR_BadFlagsOnNewOverloads, diagBag, SyntaxKind.OverloadsKeyword)
523binder.ReportModifierError(modifiers, ERRID.ERR_ConstructorAsync, diagBag, SyntaxKind.AsyncKeyword)
530binder.ReportModifierError(modifiers, ERRID.ERR_SharedConstructorIllegalSpec1, diagBag,
899binder.ReportDiagnostic(diagnostics, syntax.VarianceKeyword, ERRID.ERR_VarianceDisallowedHere)
1574DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location)
1577DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_UnmanagedCallersOnlyNotSupported, arguments.AttributeSyntaxOpt.Location)
1604diagnostics.Add(ERRID.ERR_ExtensionOnlyAllowedOnModuleSubOrFunction, arguments.AttributeSyntaxOpt.GetLocation())
1607diagnostics.Add(ERRID.ERR_ExtensionMethodNotInModule, arguments.AttributeSyntaxOpt.GetLocation())
1610diagnostics.Add(ERRID.ERR_ExtensionMethodNoParams, Me.Locations(0))
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))
1650diagnostics.Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass)
1673diagnostics.Add(ERRID.ERR_BadAttribute1, arguments.AttributeSyntaxOpt.ArgumentList.Arguments(position).GetLocation(), attrData.AttributeClass)
1726diagnostics.Add(ERRID.WRN_ConditionalNotValidOnFunction, Me.Locations(0))
1731diagnostics.Add(ERRID.WRN_AttributeNotSupportedInVB, arguments.AttributeSyntaxOpt.Location, AttributeDescription.ModuleInitializerAttribute.FullName)
1737Binder.ReportDiagnostic(diagnostics, arguments.AttributeSyntaxOpt.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecurityCritical")
1740Binder.ReportDiagnostic(diagnostics, arguments.AttributeSyntaxOpt.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecuritySafeCritical")
1754DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ObsoleteInvalidOnEventMember, Me.Locations(0), description.FullName)
1776diagnostics.Add(ERRID.ERR_DllImportNotLegalOnDeclare, syntax.Name.GetLocation())
1780diagnostics.Add(ERRID.ERR_DllImportNotLegalOnGetOrSet, syntax.Name.GetLocation())
1784diagnostics.Add(ERRID.ERR_DllImportNotLegalOnEventMethod, syntax.Name.GetLocation())
1789diagnostics.Add(ERRID.ERR_DllImportOnInterfaceMethod, syntax.Name.GetLocation())
1794diagnostics.Add(ERRID.ERR_DllImportOnGenericSubOrFunction, syntax.Name.GetLocation())
1799diagnostics.Add(ERRID.ERR_DllImportOnInstanceMethod, syntax.Name.GetLocation())
1812Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_DllImportOnResumableMethod)
1818diagnostics.Add(ERRID.ERR_DllImportOnNonEmptySubOrFunction, syntax.Name.GetLocation())
1843diagnostics.Add(ERRID.ERR_STAThreadAndMTAThread0, Me.NonMergedLocation)
2269binder.DisallowTypeCharacter(GetNameToken(methodStatement), diagBag, ERRID.ERR_TypeCharOnSub)
2303binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
2309binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_BadIteratorReturn)
2318binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_BadAsyncReturn)
2329binder.ReportDiagnostic(diagBag, errorLocation, ERRID.ERR_BadIteratorReturn)
Symbols\Source\SourceNamedTypeSymbol.vb (62)
297ERRID.ERR_PartialTypeAccessMismatch3,
316Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_PartialTypeBadMustInherit1, id.ToString())
331binder.ReportModifierError(modifiers, ERRID.ERR_ModuleCantUseTypeSpecifier1, diagBag, InvalidModifiersInModule)
337Dim err As ERRID = ERRID.ERR_None
341err = ERRID.ERR_BadInterfaceClassSpecifier1
343err = ERRID.ERR_BadInterfaceDelegateSpecifier1
345err = ERRID.ERR_BadInterfaceStructSpecifier1
347err = ERRID.ERR_BadInterfaceEnumSpecifier1
355binder.ReportModifierError(modifiers, ERRID.ERR_BadInterfaceInterfaceSpecifier1, diagBag,
364If err <> ERRID.ERR_None Then
381Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_PrivateTypeOutsideType)
385Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_ShadowingTypeOutsideClass1, id.ToString())
394Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_ProtectedTypeOutsideClass)
407Dim err = ERRID.ERR_None
412err = ERRID.ERR_BadModuleFlags1
419err = ERRID.ERR_BadClassFlags1
426err = ERRID.ERR_BadRecordFlags1
433err = ERRID.ERR_BadInterfaceFlags1
440err = ERRID.ERR_BadEnumFlags1
447err = ERRID.ERR_BadDelegateFlags1
528Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_TypeClashesWithVbCoreType4,
541Binder.ReportDiagnostic(diagBag, location, ERRID.ERR_TypeClashesWithVbCoreType4,
560Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_TypeConflict6,
562container.GetKindText(), Me.ContainingSymbol.ToErrorMessageArgument(ERRID.ERR_TypeConflict6))
615Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_CollisionWithPublicTypeInModule, Me, collision.ContainingModule)
625Binder.ReportDiagnostic(diagBag, id, ERRID.ERR_ShadowingGenericParamWithMember1, Me.Name)
673Dim errorCode = If(foundPartial, ERRID.WRN_TypeConflictButMerged6, ERRID.ERR_TypeConflict6)
717Binder.ReportDiagnostic(diagnostics, syntax.EnumStatement.Identifier, ERRID.ERR_BadEmptyEnum1, syntax.EnumStatement.Identifier.ValueText)
830Binder.DisallowTypeCharacter(identSymbol, diagBag, ERRID.ERR_TypeCharOnGenericParam)
840Binder.ReportDiagnostic(diagBag, varianceKeyword, ERRID.ERR_VarianceDisallowedHere)
850Binder.ReportDiagnostic(diagBag, identSymbol, ERRID.ERR_PartialTypeTypeParamNameMismatch3, name, typeParameter.Name, Me.Name)
855Binder.ReportDiagnostic(diagBag, identSymbol, ERRID.ERR_PartialTypeConstraintMismatch1, Me.Name)
962Binder.ReportDiagnostic(diagBag, s.Locations(0), ERRID.WRN_ShadowingGenericParamWithParam1, s.Name)
965Binder.ReportDiagnostic(diagBag, s.Locations(0), ERRID.ERR_DuplicateTypeParamName1, s.Name)
1016CheckNoBase(inheritsSyntax, ERRID.ERR_StructCantInherit, diagBag)
1020CheckNoBase(inheritsSyntax, ERRID.ERR_ModuleCantInherit, diagBag)
1051CheckNoBase(implementsSyntax, ERRID.ERR_ModuleCantImplement, diagBag)
1058errId As ERRID,
1089Binder.ReportDiagnostic(diagBag, inheritsDeclaration, ERRID.ERR_MultipleExtends)
1111Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_GenericParamBase2, "Class", Me.Name)
1115Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromNonClass)
1123Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromRestrictedType1, baseClassType)
1127Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromCantInherit3, Me.Name, baseClassType.Name, baseClassType.GetKindText())
1135Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_BaseMismatchForPartialClass3,
1173Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_DuplicateInInherits1, typeSymbol)
1182Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_GenericParamBase2, "Interface", Me.Name)
1198Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromNonInterface)
1228Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InterfaceImplementedTwice1, typeSymbol)
1233Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_ImplementsGenericParam, "Interface", Me.Name)
1243Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_BadImplementsType)
1640Binder.ReportDiagnostic(diagnostics, location, ERRID.ERR_GenericClassCannotInheritAttr)
1784Binder.ReportDiagnostic(diagnostics, underlyingType.Type, ERRID.ERR_InvalidEnumBase)
2172diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location)
2180diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionOnlyAllowedOnModuleSubOrFunction), Me.Locations(0))
2185diagnostics.Add(ERRID.ERR_ComClassOnGeneric, Me.Locations(0))
2197diagnostics.Add(ERRID.ERR_DefaultEventNotFound1, arguments.AttributeSyntaxOpt.GetLocation(), eventName)
2233diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_InvalidAttributeUsage2, AttributeDescription.VisualBasicComClassAttribute.Name, Me.Name), Me.Locations(0))
2247diagnostics.Add(ERRID.ERR_ConflictDefaultPropertyAttribute, Locations(0), Me)
2265diagnostics.Add(ERRID.ERR_StructLayoutAttributeNotAllowed, arguments.AttributeSyntaxOpt.GetLocation(), Me)
2296diagnostics.Add(ERRID.ERR_CantUseRequiredAttribute, arguments.AttributeSyntaxOpt.GetLocation(), Me)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (16)
139Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassDuplicateGuids1, comClass.Name)
145Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.GuidAttribute.Name)
150Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ClassInterfaceAttribute.Name)
155Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ComSourceInterfacesAttribute.Name)
160Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ComVisibleAttribute.Name & "(False)")
165Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassRequiresPublicClass1, comClass.Name)
171Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassRequiresPublicClass2,
182Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassCantBeAbstract0)
193Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.WRN_ComClassNoMembers1, comClass.Name)
288Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.ERR_BadAttributeUuid2, AttributeDescription.VisualBasicComClassAttribute.Name, id)
330Binder.ReportDiagnostic(diagnostics, member.Locations(0), ERRID.ERR_MemberConflictWithSynth4,
344Binder.ReportDiagnostic(diagnostics, comClass.Locations(0), ERRID.WRN_ComClassInterfaceShadows5,
427Binder.ReportDiagnostic(diagnostics, prop.Locations(0), ERRID.WRN_ComClassPropertySetObject1, prop)
453Binder.ReportDiagnostic(diagnostics, member.Locations(0), ERRID.ERR_ComClassGenericMethod)
494Binder.ReportDiagnostic(diagnostics, target.Locations(0), ERRID.ERR_ComClassReservedDispIdZero1, target.Name)
500Binder.ReportDiagnostic(diagnostics, target.Locations(0), ERRID.ERR_ComClassReservedDispId1, target.Name)
Symbols\Source\SourceParameterSymbol.vb (4)
343DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location)
364DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_CallerArgumentExpressionAttributeSelfReferential, arguments.AttributeSyntaxOpt.Location, Me.Name)
366DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_CallerArgumentExpressionAttributeHasInvalidParameterName, arguments.AttributeSyntaxOpt.Location, Me.Name)
397Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_ParamDefaultValueDiffersFromAttribute)
Symbols\Source\SourcePropertyAccessorSymbol.vb (6)
80ERRID.ERR_BadPropertyAccessorFlags,
92binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_StructCantUseVarSpecifier1, diagnostics, SyntaxKind.ProtectedKeyword)
98binder.ReportModifierError(syntax.Modifiers, ERRID.ERR_BadFlagsOnStdModuleProperty1, diagnostics, SyntaxKind.ProtectedKeyword)
432diagnostics.Add(ERRID.ERR_SetValueNotPropertyType, valueParameter.Locations(0))
447diagnostics.Add(ERRID.ERR_SetHasOnlyOneParam, location)
463diagnostics.Add(ERRID.ERR_SetHasToBeByVal1, location, token.ToString())
Symbols\Source\SourcePropertySymbol.vb (25)
119diagnostics.Add(ERRID.ERR_DuplicatePropertyGet, accessorMethod.Locations(0))
126diagnostics.Add(ERRID.ERR_DuplicatePropertySet, accessorMethod.Locations(0))
139diagnostics.Add(ERRID.ERR_ReadOnlyNoAccessorFlag, GetAccessorBlockBeginLocation(getMethod))
142diagnostics.Add(ERRID.ERR_ReadOnlyHasNoGet, location)
145diagnostics.Add(ERRID.ERR_ReadOnlyHasSet, setMethod.Locations(0))
152diagnostics.Add(ERRID.ERR_WriteOnlyNoAccessorFlag, GetAccessorBlockBeginLocation(setMethod))
155diagnostics.Add(ERRID.ERR_WriteOnlyHasNoWrite, location)
158diagnostics.Add(ERRID.ERR_WriteOnlyHasGet, getMethod.Locations(0))
166diagnostics.Add(ERRID.ERR_OnlyOneAccessorForGetSet, GetAccessorBlockBeginLocation(accessor))
170bodyBinder.ReportModifierError(syntax.Modifiers, ERRID.ERR_BadPropertyAccessorFlags3, diagnostics, s_overridableModifierKinds)
179diagnostics.Add(ERRID.ERR_PropMustHaveGetSet, location)
187diagnostics.Add(ERRID.ERR_AutoPropertyCantBeWriteOnly, location)
379Binder.ReportDiagnostic(diagnostics, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
391Binder.ReportDiagnostic(diagnostics, errorLocation, ERRID.ERR_BadIteratorReturn)
560diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location)
571diagnostics.Add(ERRID.WRN_ReturnTypeAttributeOnWriteOnlyProperty, arguments.AttributeSyntaxOpt.GetLocation())
592diagnostics.Add(ERRID.WRN_DebuggerHiddenIgnoredOnProperties, arguments.AttributeSyntaxOpt.GetLocation())
837diagnostics.Add(ERRID.ERR_DefaultPropertyWithNoParams, _location)
1034ReportAccessorAccessibilityError(bodyBinder, syntax, ERRID.ERR_BadPropertyAccessorFlagsRestrict, diagnostics)
1036ReportAccessorAccessibilityError(bodyBinder, syntax, ERRID.ERR_BadPropertyAccessorFlags1, diagnostics)
1038ReportAccessorAccessibilityError(bodyBinder, syntax, ERRID.ERR_BadPropertyAccessorFlags2, diagnostics)
1082ERRID.ERR_BadPropertyFlags1,
1090binder.ReportModifierError(modifiers, ERRID.ERR_BadFlagsWithDefault1, diagBag, InvalidModifiersIfDefault)
1111ERRID.ERR_SharedOnProcThatImpl,
1157errorId As ERRID,
Symbols\Source\UnboundLambdaParameterSymbol.vb (3)
71Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.ParamArrayKeyword), ERRID.ERR_ParamArrayIllegal1, StringConstants.Lambda)
76Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.OptionalKeyword), ERRID.ERR_OptionalIllegal1, StringConstants.Lambda)
80Binder.ReportDiagnostic(diagBag, syntax.AttributeLists.Node, ERRID.ERR_LambdasCannotHaveAttributes)
Symbols\Symbol_Attributes.vb (12)
200DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.WRN_AttributeNotSupportedInVB, arguments.AttributeSyntaxOpt.Location, AttributeDescription.SkipLocalsInitAttribute.FullName)
202DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_DoNotUseCompilerFeatureRequired, arguments.AttributeSyntaxOpt.Location)
504diagnostics.Add(ERRID.ERR_InvalidMultipleAttributeUsage1, node.GetLocation(), CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
530diagnostics.Add(ERRID.ERR_InvalidAssemblyAttribute1, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
533diagnostics.Add(ERRID.ERR_InvalidModuleAttribute1, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
543diagnostics.Add(ERRID.ERR_InvalidAttributeUsageOnAccessor, node.Name.GetLocation,
550diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation,
562diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType), ownerName)
565diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType),
566New LocalizableErrorArgument(ERRID.IDS_FunctionReturnType))
569diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType),
582diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidTarget, node.Name.GetLocation, CustomSymbolDisplayFormatter.ShortErrorName(attributeType))
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (7)
132Friend Function AddLeadingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As CoreInternalSyntax.SyntaxList(Of GreenNode), errorId As ERRID) As TSyntax
149Friend Function AddLeadingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As SyntaxToken, errorId As ERRID) As TSyntax
162Friend Function AddLeadingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As GreenNode, errorId As ERRID) As TSyntax
214Friend Function AddTrailingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As CoreInternalSyntax.SyntaxList(Of SyntaxToken), errorId As ERRID) As TSyntax
231Friend Function AddTrailingSyntax(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, unexpected As SyntaxToken, errorId As ERRID) As TSyntax
250Friend Function AddTrailingSyntax(Of TSyntax As GreenNode)(node As TSyntax, unexpected As GreenNode, errorId As ERRID) As TSyntax
275Friend Function AddError(Of TSyntax As VisualBasicSyntaxNode)(node As TSyntax, errorId As ERRID) As TSyntax
VisualBasicCompilationOptions.vb (11)
1031builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_VBCoreNetModuleConflict))
1035builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(Platform), Platform.ToString()))
1039MetadataHelpers.CheckAssemblyOrModuleName(ModuleName, MessageProvider.Instance, ERRID.ERR_BadModuleName, builder)
1043builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OutputKind), OutputKind.ToString()))
1047builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptimizationLevel), OptimizationLevel.ToString()))
1051builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(ScriptClassName), If(ScriptClassName, "Nothing")))
1055builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(MainTypeName), MainTypeName))
1059builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(RootNamespace), RootNamespace))
1063builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(OptionStrict), OptionStrict.ToString()))
1068builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_LibAnycpu32bitPreferredConflict, NameOf(Platform), Platform.ToString()))
1072builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidSwitchValue, NameOf(MetadataImportOptions), MetadataImportOptions.ToString()))
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (24)