7489 references to ERRID
Microsoft.CodeAnalysis.Test.Utilities (5)
Compilation\ControlFlowGraphVerifier.cs (4)
351Any(d => d.Code == (int)VisualBasic.ERRID.ERR_GotoIntoWith || 352d.Code == (int)VisualBasic.ERRID.ERR_GotoIntoFor || 353d.Code == (int)VisualBasic.ERRID.ERR_GotoIntoSyncLock || 354d.Code == (int)VisualBasic.ERRID.ERR_GotoIntoUsing))
TestHelpers.cs (1)
105code is Microsoft.CodeAnalysis.VisualBasic.ERRID ||
Microsoft.CodeAnalysis.VisualBasic (4259)
Analysis\FlowAnalysis\ControlFlowPass.vb (4)
141Me.diagnostics.Add(ERRID.ERR_BadYieldInTryHandler, branch.Branch.Syntax.GetLocation) 160Dim errId As ERRID 163errId = errId.ERR_BadYieldInTryHandler 167errId = errId.ERR_BranchOutOfFinally
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
Analysis\ForLoopVerification.vb (2)
80_diagnostics.Add(ERRID.ERR_ForIndexInUse1, 114_diagnostics.Add(ERRID.ERR_NextForMismatch1,
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (1)
72diagnostics.Add(ERRID.ERR_CannotLiftRestrictedTypeResumable1, node.GetLocation(), type)
Analysis\MissingRuntimeMemberDiagnosticHelper.vb (2)
34diag = ErrorFactory.ErrorInfo(ERRID.ERR_PlatformDoesntSupport, verifiedTypename) 36diag = ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, typename & "." & membername)
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_ConditionalAccess.vb (2)
37boundExpression = ReportDiagnosticAndProduceBadExpression(diagnostics, node, ERRID.ERR_BadConditionalWithRef).MakeCompilerGenerated() 58ReportDiagnostic(diagnostics, node.QuestionMarkToken, ERRID.ERR_UnaryOperand2, node.QuestionMarkToken.ValueText, type)
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_Diagnostics.vb (3)
21id As ERRID) As BoundExpression 30id As ERRID, 52id As ERRID,
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_Initializers.vb (4)
181ReportDiagnostic(diagnostics, identifier, ERRID.ERR_NullableTypeInferenceNotSupported) 299ReportDiagnostic(diagnostics, name, ERRID.ERR_AsNewArray) 602ReportDiagnostic(diagnostics, name, ERRID.ERR_CircularEvaluation1, symbol) 635ReportDiagnostic(diagnostics, name, ERRID.ERR_ConstantWithNoValue)
Binding\Binder_InterpolatedString.vb (3)
55ReportDiagnostic(diagnostics, syntax.AlignmentClause.Value, ERRID.ERR_InterpolationAlignmentOutOfRange) 59ReportDiagnostic(diagnostics, syntax.AlignmentClause.Value, ERRID.ERR_InterpolationAlignmentOutOfRange) 63ReportDiagnostic(diagnostics, syntax.AlignmentClause.Value, ERRID.ERR_ExpectedIntLiteral)
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_SelectCase.vb (4)
69Dim errorId As ERRID = Nothing 78errorId = ERRID.ERR_AddressOfInSelectCaseExpr 82errorId = ERRID.ERR_LambdaInSelectCaseExpr 677ReportDiagnostic(diagnostics, rangeCaseClause.Syntax, ERRID.WRN_SelectCaseInvalidRange)
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\BindingDiagnosticBag.vb (2)
155Friend Overloads Function Add(code As ERRID, location As Location) As DiagnosticInfo 161Friend Overloads Function Add(code As ERRID, location As Location, ParamArray args As Object()) As DiagnosticInfo
Binding\ImplicitVariableBinder.vb (3)
182Public Sub RememberPossibleShadowingVariable(name As String, syntax As SyntaxNodeOrToken, errorId As ERRID) 199Public ReadOnly ErrorId As ERRID 200Public Sub New(name As String, location As Location, errorId As ERRID)
Binding\ImportedTypesAndNamespacesMembersBinder.vb (1)
167Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInImports2,
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)
BoundTree\BoundTreeVisitor.vb (2)
154diagnostics.Add(ERRID.ERR_TooLongOrComplexExpression, GetTooLongOrComplexExpressionErrorLocation(Node)) 158diagnostics.Add(ERRID.ERR_TooLongOrComplexExpression, GetTooLongOrComplexExpressionErrorLocation(Node))
CodeGen\EmitExpression.vb (1)
66_diagnostics.Add(ERRID.ERR_TooLongOrComplexExpression,
CodeGen\EmitStatement.vb (1)
662_diagnostics.Add(ERRID.ERR_TooLongOrComplexExpression,
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\DocumentationCommentCompiler.Method.vb (1)
93ReportIllegalWellKnownTagIfAny(WellKnownTag.Returns, ERRID.WRN_XMLDocReturnsOnADeclareSub, wellKnownElementNodes)
Compilation\DocumentationComments\DocumentationCommentCompiler.NamedType.vb (1)
72Me._diagnostics.Add(ERRID.WRN_XMLDocOnAPartialType, trivia.GetLocation(), symbolName)
Compilation\DocumentationComments\DocumentationCommentCompiler.Property.vb (1)
70ReportIllegalWellKnownTagIfAny(WellKnownTag.Returns, ERRID.WRN_XMLDocReturnsOnWriteOnlyProperty, wellKnownElementNodes)
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
85diagnostics.Add(ERRID.ERR_DocFileGen, Location.None, ex.Message)
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\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (2)
137Me._diagnostics.Add(ERRID.WRN_XMLDocInsideMethod, trivia.GetLocation()) 168Me._diagnostics.Add(ERRID.WRN_XMLDocWithoutLanguageElement, trivia.GetLocation())
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
Compilation\VisualBasicCompilerDiagnosticAnalyzer.vb (4)
23Dim errorCodes As Array = [Enum].GetValues(GetType(ERRID)) 28If Not ErrorFacts.IsBuildOnlyDiagnostic(DirectCast(errorCode, ERRID)) AndAlso 29errorCode > ERRID.ERR_None AndAlso 30errorCode < ERRID.WRN_NextAvailable Then
Compilation\VisualBasicDiagnosticFilter.vb (8)
15Private Shared ReadOnly s_alinkWarnings As ERRID() = {ERRID.WRN_ConflictingMachineAssembly, 16ERRID.WRN_RefCultureMismatch, 17ERRID.WRN_InvalidVersionFormat} 68If (s_alinkWarnings.Contains(CType(diagnostic.Code, ERRID)) AndAlso 69caseInsensitiveSpecificDiagnosticOptions.Keys.Contains(VisualBasic.MessageProvider.Instance.GetIdForErrorCode(ERRID.WRN_AssemblyGeneration1))) Then 70report = GetDiagnosticReport(VisualBasic.MessageProvider.Instance.GetSeverity(ERRID.WRN_AssemblyGeneration1), 72VisualBasic.MessageProvider.Instance.GetIdForErrorCode(ERRID.WRN_AssemblyGeneration1),
Emit\AttributeDataAdapter.vb (1)
27context.Diagnostics.Add(ERRID.ERR_AttributeMustBeClassNotStruct1, If(context.Location, NoLocation.Singleton), Me.AttributeClass)
Emit\EditAndContinue\EmitHelpers.vb (1)
50diagnostics.Add(ERRID.ERR_ModuleEmitFailure, NoLocation.Singleton, compilation.AssemblyName, e.Message)
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
289diagnostics.Add(ErrorFactory.ErrorInfo(ERRID.ERR_EncNoPIAReference, embeddedType.AdaptedNamedTypeSymbol), Location.None)
Emit\NoPia\EmbeddedEvent.vb (2)
87EmbeddedTypesManager.ReportDiagnostic(diagnostics, ERRID.ERR_SourceInterfaceMustBeInterface, syntaxNodeOpt, underlyingContainingType.AdaptedNamedTypeSymbol, UnderlyingEvent.AdaptedEventSymbol) 94EmbeddedTypesManager.ReportDiagnostic(diagnostics, ERRID.ERR_EventNoPIANoBackingMember, syntaxNodeOpt, sourceInterface, UnderlyingEvent.AdaptedEventSymbol.MetadataName, UnderlyingEvent.AdaptedEventSymbol)
Emit\NoPia\EmbeddedType.vb (1)
230EmbeddedTypesManager.ReportDiagnostic(diagnostics, ERRID.ERR_NoPIAAttributeMissing2, syntaxNodeOpt, UnderlyingNamedType.AdaptedNamedTypeSymbol, description.FullName)
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\PEAssemblyBuilder.vb (2)
100context.Diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_CryptoHashFailed), NoLocation.Singleton)) 128diagnostics.Add(ERRID.ERR_UnsupportedModule1, NoLocation.Singleton, modules(i))
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,
Emit\SymbolTranslator.vb (2)
145If(diagInfo, ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)), 237ErrorFactory.ErrorInfo(ERRID.ERR_PredefinedValueTupleTypeMustBeStruct, namedTypeSymbol.MetadataName),
Errors\CustomDiagnostics.vb (3)
31Friend Sub New(badSymbol As Symbol, errid As ERRID) 37Friend Sub New(badSymbol As Symbol, errid As ERRID, ParamArray additionalArgs As Object()) 76Friend Sub New(errid As ERRID, symbols As ImmutableArray(Of Symbol), ParamArray args As Object())
Errors\DiagnosticBagExtensions.vb (2)
25Friend Function Add(diagnostics As DiagnosticBag, code As ERRID, location As Location) As DiagnosticInfo 41Friend Function Add(diagnostics As DiagnosticBag, code As ERRID, location As Location, ParamArray args As Object()) As DiagnosticInfo
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\LazyObsoleteDiagnosticInfo.vb (1)
19MyBase.New(VisualBasic.MessageProvider.Instance, ERRID.Unknown)
Errors\LocalizableErrorArgument.vb (2)
16Private ReadOnly _id As ERRID 18Friend Sub New(id As ERRID)
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
GlobalImport.ImportDiagnosticInfo.vb (1)
43Dim msg = ErrorFactory.IdToString(ERRID.ERR_GeneralProjectImportsError3, TryCast(formatProvider, CultureInfo))
GlobalImport.vb (2)
112If unmappedDiag.Code = ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1 Then 113Return New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_UndefinedOrEmptyProjectNamespaceOrClass1, _importedName), NoLocation.Singleton)
Lowering\AsyncRewriter\AsyncRewriter.vb (2)
567ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, methodName, type)), 625ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, propertyName, type)),
Lowering\Diagnostics\DiagnosticsPass.vb (12)
76Binder.ReportDiagnostic(Me._diagnostics, node.Syntax, ERRID.ERR_CannotLiftByRefParamQuery1, parameterSymbol.Name) 78Binder.ReportDiagnostic(Me._diagnostics, node.Syntax, ERRID.ERR_CannotLiftByRefParamLambda1, parameterSymbol.Name) 87Dim errorId As ERRID = GetMeAccessError() 89If errorId <> ERRID.ERR_None Then 97Dim errorId As ERRID = GetMeAccessError() 99If errorId <> ERRID.ERR_None Then 106Private Function GetMeAccessError() As ERRID 113Return ERRID.ERR_CannotLiftStructureMeQuery 115Return ERRID.ERR_CannotLiftStructureMeLambda 120Return ERRID.ERR_None 142Dim errorId As ERRID = GetMeAccessError() 143If errorId <> ERRID.ERR_None Then
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)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (4)
177Return GenerateDiagnosticAndReturnDummyExpression(ERRID.ERR_StatementLambdaInExpressionTree, block) 180Private Function GenerateDiagnosticAndReturnDummyExpression(code As ERRID, node As BoundNode, ParamArray args As Object()) As BoundExpression 679Return GenerateDiagnosticAndReturnDummyExpression(ERRID.ERR_ExpressionTreeNotSupported, node) 851ErrorFactory.ErrorInfo(ERRID.ERR_NameNotMember2, methodName, Me._expressionType)),
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (2)
459_diagnostics.Add(ERRID.ERR_CannotLiftRestrictedTypeQuery, syntax.GetLocation(), type) 461_diagnostics.Add(ERRID.ERR_CannotLiftRestrictedTypeLambda, syntax.GetLocation(), type)
Lowering\LambdaRewriter\LambdaRewriter.vb (3)
1339Me.Diagnostics.Add(ERRID.ERR_CannotUseOnErrorGotoWithClosure, resumeLabel.ResumeStatement.GetLocation(), 1345Me.Diagnostics.Add(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, node.Syntax.GetLocation(), 1348Me.Diagnostics.Add(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, node.Syntax.GetLocation(), "Goto ", label.Name, label.Name)
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
189ReportDiagnostic(node, ErrorFactory.ErrorInfo(ERRID.ERR_InterpolatedStringFactoryError, factoryType.Name, factoryMethodName), _diagnostics)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
404Binder.ReportDiagnostic(bag, Body.Syntax, ERRID.ERR_NoGetProperty1, CustomSymbolDisplayFormatter.QualifiedName(symbol))
OptionsValidator.vb (1)
45syntaxErrors = syntaxErrors.Concat(New VBDiagnostic(New DiagnosticInfo(MessageProvider.Instance, ERRID.ERR_ExpectedEOS), importsClausesSyntaxList(1).GetLocation()))
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\CaseBlockContext.vb (1)
30node = Parser.ReportSyntaxError(node, ERRID.ERR_CaseAfterCaseElse)
Parser\BlockContexts\CompilationUnitContext.vb (3)
413rewritten = Parser.ReportSyntaxError(rewritten, ERRID.ERR_LbExpectedEndIf) 425rewritten = Parser.ReportSyntaxError(rewritten, ERRID.ERR_ExpectedEndRegion) 518rewritten = Parser.ReportSyntaxError(rewritten, ERRID.ERR_ExpectedEndExternalSource)
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\BlockContexts\DoLoopBlockContext.vb (1)
39Dim keyword = Parser.ReportSyntaxError(whileUntilClause.WhileOrUntilKeyword, ERRID.ERR_LoopDoubleCondition)
Parser\BlockContexts\EnumDeclarationBlockContext.vb (2)
42Add(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEnum)) 46Return outerContext.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsEnum))
Parser\BlockContexts\EventBlockContext.vb (1)
48Return context.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsEvent))
Parser\BlockContexts\ExecutableStatementContext.vb (4)
48Return context.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsProc)) 51node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideBlock, SyntaxFacts.GetBlockName(BlockKind)) 72node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideProc) 75node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideBlock, SyntaxFacts.GetBlockName(BlockKind))
Parser\BlockContexts\FinallyPartBlock.vb (2)
30Add(Parser.ReportSyntaxError(node, ERRID.ERR_CatchAfterFinally)) 36Add(Parser.ReportSyntaxError(node, ERRID.ERR_FinallyAfterFinally))
Parser\BlockContexts\IfBlockContext.vb (1)
78begin = Parser.ReportSyntaxError(begin, ERRID.ERR_ExpectedEndIf)
Parser\BlockContexts\InterfaceDeclarationBlockContext.vb (8)
70node = Parser.ReportSyntaxError(node, ERRID.ERR_InterfaceMemberSyntax) 80Add(Parser.ReportSyntaxError(node, ERRID.ERR_NewInInterface)) 86eventStatement = Parser.ReportSyntaxError(eventStatement, ERRID.ERR_CustomEventInvInInterface) 103Add(Parser.ReportSyntaxError(node, ERRID.ERR_InterfaceMemberSyntax)) 106node = Parser.ReportSyntaxError(node, ERRID.ERR_InvOutsideProc) 127Add(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideInterface)) 139Return outerContext.ProcessSyntax(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsInterface)) 142Add(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideInterface))
Parser\BlockContexts\MethodBlockContext.vb (2)
34node = Parser.ReportSyntaxError(node, ERRID.ERR_MethodBodyNotAtLineStart) 47node = Parser.ReportSyntaxError(node, ERRID.ERR_ExitPropNot)
Parser\BlockContexts\PropertyBlockContext.vb (3)
75node = Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEndsProperty) 131Parser.ReportSyntaxError(beginBlockStmt.ParameterList, ERRID.ERR_AutoPropertyCantHaveParams), 152propertyStatement = Parser.ReportSyntaxError(propertyStatement, ERRID.ERR_InitializedExpandedProperty)
Parser\BlockContexts\SelectBlockContext.vb (1)
49node = Parser.ReportSyntaxError(node, ERRID.ERR_ExpectedCase)
Parser\BlockContexts\SingleLineElseContext.vb (2)
46Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
Parser\BlockContexts\SingleLineIfBlockContext.vb (3)
38Add(Parser.ReportSyntaxError(node, ERRID.ERR_ExpectedEOS)) 55Add(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
Parser\BlockContexts\SingleLineLambdaContext.vb (3)
48lambdaExpr = Parser.ReportSyntaxError(lambdaExpr, ERRID.ERR_SubRequiresSingleStatement) 50lambdaExpr = Parser.ReportSyntaxError(lambdaExpr, ERRID.ERR_BadIteratorExpressionLambda) 81_statements(0) = Parser.ReportSyntaxError(_statements(0), ERRID.ERR_SubRequiresSingleStatement)
Parser\BlockContexts\TryBlockContext.vb (1)
76beginStmt = Parser.ReportSyntaxError(beginStmt, ERRID.ERR_ExpectedEndTry)
Parser\ParseConditional.vb (10)
203hashToken = hashToken.AddTrailingSyntax(endKeyword, ERRID.ERR_Syntax) 217endKeyword = endKeyword.AddLeadingSyntax(endIfKeyword, ERRID.ERR_ObsoleteEndIf) 241equalsToken = equalsToken.AddLeadingSyntax(unexpected, ERRID.ERR_Syntax) 342guid = guid.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.WRN_BadGUIDFormatExtChecksum)) 356checksum = checksum.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.WRN_BadChecksumValExtChecksum)) 361checksum = checksum.WithDiagnostics(ErrorFactory.ErrorInfo(ERRID.WRN_BadChecksumValExtChecksum)) 410errorCode = ReportSyntaxError(errorCode, ERRID.ERR_TypecharNotallowed) 420comma = ReportSyntaxError(comma, ERRID.ERR_ExpectedComma) 457referenceKeyword = AddError(referenceKeyword, ERRID.ERR_ReferenceDirectiveOnlyAllowedInScripts) 470badDirective = ReportSyntaxError(badDirective, ERRID.ERR_ExpectedConditionalDirective)
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\ParseInterpolatedString.vb (6)
82content = AddLeadingSyntax(content, _pool.ToListAndFree(skipped), ERRID.ERR_Syntax) 90doubleQuoteToken = AddLeadingSyntax(doubleQuoteToken, _pool.ToListAndFree(skipped), ERRID.ERR_Syntax) 114expression = ReportSyntaxError(InternalSyntaxFactory.MissingExpression(), ERRID.ERR_ExpectedExpression) 163widthToken = ReportSyntaxError(InternalSyntaxFactory.MissingIntegerLiteralToken(), ERRID.ERR_ExpectedIntLiteral) 212formatStringToken = ReportSyntaxError(formatStringToken, ERRID.ERR_Syntax) 215formatStringToken = ReportSyntaxError(formatStringToken, ERRID.ERR_InterpolationFormatWhitespace)
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\ParserFeature.vb (33)
115Friend Function GetResourceId(feature As Feature) As ERRID 118Return ERRID.FEATURE_AutoProperties 120Return ERRID.FEATURE_ReadonlyAutoProperties 122Return ERRID.FEATURE_LineContinuation 124Return ERRID.FEATURE_StatementLambdas 126Return ERRID.FEATURE_CoContraVariance 128Return ERRID.FEATURE_CollectionInitializers 130Return ERRID.FEATURE_SubLambdas 132Return ERRID.FEATURE_ArrayLiterals 134Return ERRID.FEATURE_AsyncExpressions 136Return ERRID.FEATURE_Iterators 138Return ERRID.FEATURE_GlobalNamespace 140Return ERRID.FEATURE_NullPropagatingOperator 142Return ERRID.FEATURE_NameOfExpressions 144Return ERRID.FEATURE_RegionsEverywhere 146Return ERRID.FEATURE_MultilineStringLiterals 148Return ERRID.FEATURE_CObjInAttributeArguments 150Return ERRID.FEATURE_LineContinuationComments 152Return ERRID.FEATURE_TypeOfIsNot 154Return ERRID.FEATURE_YearFirstDateLiterals 156Return ERRID.FEATURE_WarningDirectives 158Return ERRID.FEATURE_PartialModules 160Return ERRID.FEATURE_PartialInterfaces 162Return ERRID.FEATURE_ImplementingReadonlyOrWriteonlyPropertyWithReadwrite 164Return ERRID.FEATURE_DigitSeparators 166Return ERRID.FEATURE_BinaryLiterals 168Return ERRID.FEATURE_Tuples 170Return ERRID.FEATURE_LeadingDigitSeparator 172Return ERRID.FEATURE_PrivateProtected 174Return ERRID.FEATURE_InterpolatedStrings 176Return ERRID.FEATURE_UnconstrainedTypeParameterInConditional 178Return ERRID.FEATURE_CommentsAfterLineContinuation 180Return ERRID.FEATURE_InitOnlySettersUsage
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\ParseTerminal.vb (5)
44identifier = ReportSyntaxError(identifier, ERRID.ERR_InvalidUseOfKeyword) 57identifier = ReportSyntaxError(identifier, ERRID.ERR_InvalidUseOfKeyword) 66identifier = identifier.AddLeadingSyntax(CurrentToken, ERRID.ERR_ExpectedIdentifier) 69identifier = ReportSyntaxError(identifier, ERRID.ERR_ExpectedIdentifier) 124identifier = ReportSyntaxError(identifier, ERRID.ERR_ExpectedIdentifier)
Parser\ParseVerify.vb (37)
32Private Shared Function GetUnexpectedTokenErrorId(kind As SyntaxKind) As ERRID 36Return ERRID.ERR_ExpectedAs 39Return ERRID.ERR_ExpectedBy 42Return ERRID.ERR_ExpectedRbrace 45Return ERRID.ERR_ExpectedRparen 48Return ERRID.ERR_ExpectedComma 51Return ERRID.ERR_ExpectedQuote 54Return ERRID.ERR_ExpectedDot 57Return ERRID.ERR_ExpectedXmlEndCData 60Return ERRID.ERR_ExpectedEquals 63Return ERRID.ERR_ExpectedEQ 66Return ERRID.ERR_ExpectedGreater 69Return ERRID.ERR_ExpectedIdentifier 72Return ERRID.ERR_ExpectedIntLiteral 75Return ERRID.ERR_ExpectedIn 78Return ERRID.ERR_ExpectedInto 81Return ERRID.ERR_MissingIsInTypeOf 84Return ERRID.ERR_ExpectedJoin 88Return ERRID.ERR_ExpectedLT 91Return ERRID.ERR_ExpectedXmlBeginEmbedded 94Return ERRID.ERR_MissingLibInDeclare 97Return ERRID.ERR_ExpectedMinus 100Return ERRID.ERR_ExpectedXmlEndComment 103Return ERRID.ERR_MissingNext 106Return ERRID.ERR_OfExpected 109Return ERRID.ERR_ExpectedOn 112Return ERRID.ERR_ExpectedLbrace 115Return ERRID.ERR_ExpectedLparen 118Return ERRID.ERR_ExpectedXmlEndEmbedded 121Return ERRID.ERR_ExpectedXmlEndPI 124Return ERRID.ERR_ExpectedSColon 127Return ERRID.ERR_ExpectedSQuote 130Return ERRID.ERR_ExpectedDiv 133Return ERRID.ERR_ExpectedStringLiteral 136Return ERRID.ERR_ExpectedXmlName 139Return ERRID.ERR_ExpectedWarningKeyword 142Return ERRID.ERR_Syntax
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\CConst.vb (9)
11Protected ReadOnly _errid As ERRID 17Public Sub New(id As ERRID, ParamArray diagnosticArguments As Object()) 26Public MustOverride Function WithError(id As ERRID) As CConst 161Public ReadOnly Property ErrorId As ERRID 188Private Sub New(value As T, specialType As SpecialType, id As ERRID) 213Public Overrides Function WithError(id As ERRID) As CConst 221Public Sub New(id As ERRID) 225Public Sub New(id As ERRID, ParamArray args As Object()) 241Public Overrides Function WithError(id As ERRID) As CConst
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\Directives.vb (9)
360statement = Parser.ReportSyntaxError(statement, ERRID.ERR_NestedExternalSource) 369statement = Parser.ReportSyntaxError(statement, ERRID.ERR_EndExternalSource) 384statement = Parser.ReportSyntaxError(statement, ERRID.ERR_EndRegionNoRegion) 421statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbBadElseif) 428statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbElseifAfterElse) 465statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbElseNoMatchingIf) 473statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbElseNoMatchingIf) 492statement = Parser.ReportSyntaxError(statement, ERRID.ERR_LbNoMatchingIf) 648eof = Parser.ReportSyntaxError(eof, ERRID.ERR_LbExpectedEndIf)
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\TokenFactories.vb (1)
738Private Function MakeBadToken(precedingTrivia As CoreInternalSyntax.SyntaxList(Of VisualBasicSyntaxNode), length As Integer, errId As ERRID) As SyntaxToken
Scanner\XmlDocComments.vb (4)
317Return XmlMakeTextLiteralToken(precedingTrivia, 3, ERRID.ERR_XmlEndCDataNotAllowedInContent) 330Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalChar) 420result = XmlMakeBadToken(precedingTrivia.ToList, 1, ERRID.ERR_IllegalChar) 552Return XmlMakeBadToken(precedingTrivia, 1, ERRID.ERR_IllegalXmlNameChar)
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))
Semantics\OverloadResolution.vb (1)
4910ERRID.WRN_TypeInferenceAssumed3,
Symbols\AssemblySymbol.vb (2)
301Dim diagInfo As DiagnosticInfo = New DiagnosticInfo(MessageProvider.Instance, ERRID.ERR_TypeFwdCycle2, emittedName.FullName, Me) 306Dim diagnosticInfo = New DiagnosticInfo(MessageProvider.Instance, ERRID.ERR_TypeForwardedToMultipleAssemblies, forwardingModule, Me, emittedName.FullName, destination1, destination2)
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\EventSymbol.vb (11)
203Case ERRID.ERR_UnreferencedAssembly3 209useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedAssemblyEvent3, errorInfo.Arguments(0), Me)) 211Case ERRID.ERR_UnreferencedModule3 217useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedModuleEvent3, errorInfo.Arguments(0), Me)) 219Case ERRID.ERR_UnsupportedType1 221useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, CustomSymbolDisplayFormatter.ShortErrorName(Me))) 241Return code = ERRID.ERR_UnsupportedType1 OrElse code = ERRID.ERR_UnsupportedCompilerFeature 247Return info IsNot Nothing AndAlso (info.Code = ERRID.ERR_UnsupportedType1 OrElse info.Code = ERRID.ERR_UnsupportedEvent1 OrElse info.Code = ERRID.ERR_UnsupportedCompilerFeature)
Symbols\FieldSymbol.vb (4)
317Return code = ERRID.ERR_UnsupportedField1 OrElse code = ERRID.ERR_UnsupportedCompilerFeature 323Return info IsNot Nothing AndAlso (info.Code = ERRID.ERR_UnsupportedField1 OrElse info.Code = ERRID.ERR_UnsupportedCompilerFeature)
Symbols\Metadata\PE\PEAssemblySymbol.vb (1)
279Return info.Code = DirectCast(ERRID.ERR_UnsupportedCompilerFeature, Integer) OrElse MyBase.HasUnsupportedMetadata
Symbols\Metadata\PE\PEEventSymbol.vb (1)
71_lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedEvent1, Me))
Symbols\Metadata\PE\PEFieldSymbol.vb (2)
67_lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedField1, Me)) 425ERRID.ERR_UnsupportedConstant2,
Symbols\Metadata\PE\PEMethodSymbol.vb (5)
269InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me)))) 1016InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me)))) 1072errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me)) 1158If errorInfo Is Nothing OrElse errorInfo.Code <> ERRID.ERR_UnsupportedMethod1 Then 1163errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me))
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
504Return info.Code = DirectCast(ERRID.ERR_UnsupportedCompilerFeature, Integer) OrElse MyBase.HasUnsupportedMetadata
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
168_lazyCachedUseSiteInfo.Initialize(If(DeriveCompilerFeatureRequiredDiagnostic(), ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me))) 1288Return New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me)) 1318Return New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_NestingViolatesCLS1, Me)) 1327If typeUseSiteInfo.DiagnosticInfo?.Code = ERRID.ERR_UnsupportedCompilerFeature Then
Symbols\Metadata\PE\PEParameterSymbol.vb (2)
674Return (info IsNot Nothing AndAlso (info.Code = ERRID.ERR_UnsupportedType1 OrElse info.Code = ERRID.ERR_UnsupportedCompilerFeature)) OrElse MyBase.HasUnsupportedMetadata
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
75result._lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1, CustomSymbolDisplayFormatter.QualifiedName(result))) 121_lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1, CustomSymbolDisplayFormatter.QualifiedName(Me)))
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
82_lazyCachedBoundsUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me)) 185_lazyCachedBoundsUseSiteInfo.InterlockedCompareExchange(primaryDependency:=Nothing, New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, Me))) 330Return info IsNot Nothing AndAlso info.Code = DirectCast(ERRID.ERR_UnsupportedCompilerFeature, Integer) OrElse MyBase.HasUnsupportedMetadata
Symbols\Metadata\PE\PEUtilities.vb (1)
12Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedCompilerFeature, symbol, unsupportedFeature)
Symbols\MethodSymbol.vb (4)
694Return code = ERRID.ERR_UnsupportedMethod1 OrElse code = ERRID.ERR_UnsupportedCompilerFeature 700Return info IsNot Nothing AndAlso (info.Code = ERRID.ERR_UnsupportedMethod1 OrElse info.Code = ERRID.ERR_UnsupportedCompilerFeature)
Symbols\MissingMetadataTypeSymbol.vb (4)
56Return ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedAssembly3, containingAssembly.Identity, arg) 62Return ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedModule3, containingModule.Name, Me) 65Return ErrorFactory.ErrorInfo(ERRID.ERR_TypeRefResolutionError3, Me, containingModule.Name) 69ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)) ' This is the best we can do at this point
Symbols\NonMissingModuleSymbol.vb (1)
104ERRID.ERR_SxSIndirectRefHigherThanDirectRef3,
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.vb (1)
72Return ErrorFactory.ErrorInfo(ERRID.ERR_AbsentReferenceToPIA1, CustomSymbolDisplayFormatter.QualifiedName(_firstCandidate))
Symbols\NoPiaIllegalGenericInstantiationSymbol.vb (1)
56Return ErrorFactory.ErrorInfo(ERRID.ERR_CannotUseGenericTypeAcrossAssemblyBoundaries, _underlyingSymbol)
Symbols\NoPiaMissingCanonicalTypeSymbol.vb (1)
94Return ErrorFactory.ErrorInfo(ERRID.ERR_AbsentReferenceToPIA1, _fullTypeName)
Symbols\ObsoleteAttributeHelpers.vb (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\ParameterSymbol.vb (4)
280Return code = ERRID.ERR_UnsupportedType1 OrElse code = ERRID.ERR_UnsupportedCompilerFeature 286Return info IsNot Nothing AndAlso (info.Code = ERRID.ERR_UnsupportedType1 OrElse info.Code = ERRID.ERR_UnsupportedCompilerFeature)
Symbols\PointerTypeSymbol.vb (1)
35Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\PropertySymbol.vb (4)
464Return code = ERRID.ERR_UnsupportedProperty1 OrElse code = ERRID.ERR_UnsupportedCompilerFeature 470Return info IsNot Nothing AndAlso (info.Code = ERRID.ERR_UnsupportedProperty1 OrElse info.Code = ERRID.ERR_UnsupportedCompilerFeature)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
829Dim errorInfo = If(type.ErrorInfo, ErrorFactory.ErrorInfo(ERRID.ERR_InReferencedAssembly, If(type.ContainingAssembly?.Identity.GetDisplayName, "")))
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\SourceComplexParameterSymbol.vb (3)
166Binder.ReportDiagnostic(diagnostics, defaultSyntax.Value, ERRID.ERR_CircularEvaluation1, Me) 344Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_ParamArrayNotArray) 349Binder.ReportDiagnostic(diagnostics, syntax.Identifier.Identifier, ERRID.ERR_ParamArrayRank)
Symbols\Source\SourceEnumConstantSymbol.vb (2)
41diagnostics.Add(ERRID.ERR_ClashWithReservedEnumMember1, syntax.Identifier.GetLocation(), Me.Name) 147diagnostics.Add(ERRID.ERR_ExpressionOverflow1, Locations(0), Me)
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\SourceFieldSymbol.vb (7)
227diagnostics.Add(ERRID.ERR_CircularEvaluation1, Locations(0), CustomSymbolDisplayFormatter.ShortErrorName(Me)) 718diagnostics.Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) 728diagnostics.Add(ERRID.ERR_InvalidNonSerializedUsage, arguments.AttributeSyntaxOpt.GetLocation()) 734diagnostics.Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass) 766diagnostics.Add(ERRID.ERR_FieldHasMultipleDistinctConstantValues, arguments.AttributeSyntaxOpt.GetLocation()) 769diagnostics.Add(ERRID.ERR_FieldHasMultipleDistinctConstantValues, arguments.AttributeSyntaxOpt.GetLocation()) 780diagnostics.Add(ERRID.ERR_FieldHasMultipleDistinctConstantValues, arguments.AttributeSyntaxOpt.GetLocation())
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\SourceModuleSymbol.vb (5)
384If d.Code <> ERRID.ERR_DuplicateImport1 Then 795diagnostics.Add(ERRID.ERR_PIAHasNoAssemblyGuid1, 802diagnostics.Add(ERRID.ERR_PIAHasNoTypeLibAttribute1, 1094DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_ExplicitTupleElementNamesAttribute, arguments.AttributeSyntaxOpt.Location) 1100DirectCast(arguments.Diagnostics, BindingDiagnosticBag).Add(ERRID.ERR_BadAttribute1, VisualBasicAttributeData.GetFirstArgumentLocation(arguments.AttributeSyntaxOpt), attrData.AttributeClass)
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\SourceNamedTypeSymbol_GroupClass.vb (3)
147binder.ReportDiagnostic(diagnostics, attr, ERRID.ERR_MyGroupCollectionAttributeCycle) 170binder.ReportDiagnostic(diagnostics, expression, ERRID.ERR_LiteralExpected) 399binder.ReportDiagnostic(diagnostics, attributeSyntax, ERRID.ERR_PropertyNameConflictInMyCollection, conflictsWith, targetType)
Symbols\Source\SourceNamespaceSymbol.vb (4)
503Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_TypecharNotallowed), node.GetLocation()) 521Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_NamespaceCaseMismatch3, node.Identifier.ValueText, Me.Name, path), node.GetLocation()) 540Dim diag = New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_NestedGlobalNamespace), node.GetLocation()) 564path = New LocalizableErrorArgument(ERRID.IDS_ProjectSettingsLocationName)
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\SynthesizedEntryPointSymbol.vb (1)
201ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, type.MetadataName & "." & methodName),
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.vb (5)
922Case ERRID.ERR_UnsupportedType1 937useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedField1, CustomSymbolDisplayFormatter.ShortErrorName(Me))) 940useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1, CustomSymbolDisplayFormatter.ShortErrorName(Me))) 943useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1, CustomSymbolDisplayFormatter.ShortErrorName(Me))) 1035useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty))
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))
Symbols\SymbolExtensions.vb (3)
99Friend Function ToErrorMessageArgument(target As Symbol, Optional errorCode As ERRID = ERRID.ERR_None) As Object 107If errorCode = ERRID.ERR_TypeConflict6 Then
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
414diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_VariancePreventsSynthesizedEvents2,
Symbols\Tuples\TupleFieldSymbol.vb (1)
238Return New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_TupleInferredNamesNotAvailable, _name,
Symbols\Tuples\TupleTypeSymbol.vb (3)
649Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MissingRuntimeHelper, type.Name & "."c & descriptor.Name) 833ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, 1124diagnostics.Add(ERRID.WRN_TupleLiteralNameMismatch, literal.Arguments(i).Syntax.Parent.Location, sourceName, destination)
Symbols\TypeSymbol.vb (4)
513Return code = ERRID.ERR_UnsupportedType1 OrElse code = ERRID.ERR_UnsupportedCompilerFeature 519Return info IsNot Nothing AndAlso (info.Code = ERRID.ERR_UnsupportedType1 OrElse info.Code = ERRID.ERR_UnsupportedCompilerFeature)
Symbols\UnsupportedMetadataTypeSymbol.vb (1)
38Return ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1, String.Empty)
Symbols\WellKnownMembers.vb (4)
106ctorError = ErrorFactory.ErrorInfo(ERRID.ERR_MissingRuntimeHelper, 114ctorError = ErrorFactory.ErrorInfo(ERRID.ERR_ExtensionAttributeInvalid) 397delayedErrorInfo = Function(t) ErrorFactory.ErrorInfo(ERRID.ERR_ValueTupleTypeRefResolutionError1, t) 400delayedErrorInfo = Function(t) ErrorFactory.ErrorInfo(ERRID.ERR_ValueTupleResolutionAmbiguous3, t, capturedConflicts.Item1, capturedConflicts.Item2)
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (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
Syntax\SyntaxFactory.vb (6)
1081Select Case DirectCast(err.Code, ERRID) 1082Case ERRID.ERR_LbExpectedEndIf, 1083ERRID.ERR_ExpectedEndRegion 1085Case ERRID.ERR_ExpectedEOS 1113Select Case DirectCast(err.Code, ERRID) 1114Case ERRID.ERR_UnterminatedStringLiteral
Syntax\SyntaxTreeDiagnosticEnumerator.vb (1)
60di = ErrorFactory.ErrorInfo(ERRID.WRN_XMLDocParseError1, di)
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()))
VisualBasicParseOptions.vb (4)
250builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_BadLanguageVersion, LanguageVersion.ToString)) 256builder.Add(Diagnostic.Create(ErrorFactory.ErrorInfo(ERRID.ERR_ConditionalCompilationConstantNotValid, 257ErrorFactory.ErrorInfo(ERRID.ERR_ExpectedIdentifier), 264builder.Add(Diagnostic.Create(MessageProvider.Instance, ERRID.ERR_InvalidPreprocessorConstantType, symbol.Key, symbol.Value.GetType))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (342)
CommandLineArgumentsTests.vb (19)
50errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "= ^^ ^^ ")) 57errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "= ^^ ^^ ")) 63errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Expression expected.", "OnlyEqualsNoValue1= ^^ ^^ ")) 69errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Expression expected.", "OnlyEqualsNoValue1= ^^ ^^ ")) 86errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "then ^^ ^^ =bar")) 91errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Syntax error in conditional compilation expression.", "bar= ^^ ^^ then")) 112errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "GOO=23:: ^^ , ^^ ,:::")) 117errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "GOO=23, ^^ : ^^ BAR")) 184errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Conversion from 'String' to 'Double' cannot occur in a constant expression.", "RRR=1+""3"" ^^ ^^ ")) 189Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("')' expected.", "X=IF(1,,,,,RRR=1 ^^ ^^ "), 190Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("'If' operator requires either two or three operands.", "X=IF(1,,,,,RRR=1 ^^ ^^ "), 191Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Expression expected.", "X=IF(1,,,,,RRR=1 ^^ ^^ ")) 195errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("End of statement expected.", "A=CHR ^^ ^^ (128)")) 199errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("End of statement expected.", "A=ASCW ^^ ^^ (""G"")")) 203errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("End of statement expected.", "B=1 ^^ ^^ 1")) 207errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("End of statement expected.", "B=1 ^^ ^^ C=1")) 211errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Overflow.", "A=111111111111111111111111 ^^ ^^ ")) 215errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Syntax error in conditional compilation expression.", "A= 2 + " + vbCrLf + " ^^ ^^ 2")) 285errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", " ^^ 'Blah' ^^ "))
CommandLineTests.vb (323)
745Assert.Contains(CInt(ERRID.ERR_StdInOptionProvidedButConsoleInputIsNotRedirected).ToString(), result.Output) 805args.Errors.Verify(Diagnostic(ERRID.ERR_ExpectedIdentifier), 806Diagnostic(ERRID.ERR_ExpectedIdentifier)) 809args.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("import", ":<str>")) 812args.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("imports", ":<import_list>")) 815args.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("imports", ":<import_list>")) 818args.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/imports+")) ' TODO: Dev11 reports ERR_ArgumentRequired 830args.Errors.Verify({Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/i").WithLocation(1, 1), 831Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)}) 856args.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("i").WithLocation(1, 1)) 868args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").WithLocation(1, 1)}) 872args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").WithLocation(1, 1)}) 876args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").WithLocation(1, 1)}) 880args.Errors.Verify({Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("instrument", ":<string>").WithLocation(1, 1)}) 884args.Errors.Verify({Diagnostic(ERRID.ERR_InvalidInstrumentationKind).WithArguments("InvalidOption").WithLocation(1, 1)}) 888args.Errors.Verify({Diagnostic(ERRID.ERR_InvalidInstrumentationKind).WithArguments("None").WithLocation(1, 1)}) 892args.Errors.Verify({Diagnostic(ERRID.ERR_InvalidInstrumentationKind).WithArguments("InvalidOption").WithLocation(1, 1)}) 953Assert.Equal(DirectCast(ERRID.ERR_UnableToReadUacManifest2, Integer), errors.First().Code) 959Assert.Equal(DirectCast(ERRID.ERR_UnableToOpenResourceFile1, Integer), errors.First().Code) 965Assert.Equal(DirectCast(ERRID.ERR_UnableToOpenResourceFile1, Integer), errors.First().Code) 972Assert.Equal(DirectCast(ERRID.ERR_UnableToReadUacManifest2, Integer), errors.First().Code) 978Assert.Equal(DirectCast(ERRID.ERR_UnableToOpenResourceFile1, Integer), errors.First().Code) 984Assert.Equal(DirectCast(ERRID.ERR_UnableToOpenResourceFile1, Integer), errors.First().Code) 996Assert.Equal(DirectCast(ERRID.ERR_ErrorCreatingWin32ResourceFile, Integer), errors.First().Code) 1045Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32resource", ":<file>")) 1047Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32resource", ":<file>")) 1049Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32resource", ":<file>")) 1052Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32icon", ":<file>")) 1054Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32icon", ":<file>")) 1056Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32icon", ":<file>")) 1059Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32manifest", ":<file>")) 1061Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32manifest", ":<file>")) 1063Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32manifest", ":<file>")) 1067Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/nowin32manifest:")) 1069Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/nowin32manifest:")) 1078Diagnostic(ERRID.ERR_IconFileAndWin32ResFile)) 1081Diagnostic(ERRID.ERR_CantHaveWin32ResAndManifest)) 1087Diagnostic(ERRID.ERR_IconFileAndWin32ResFile)) 1097Diagnostic(ERRID.ERR_CantHaveWin32ResAndManifest)) 1104Diagnostic(ERRID.ERR_ConflictingManifestSwitches)) 1112Diagnostic(ERRID.ERR_ConflictingManifestSwitches)) 1121parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32resource", ":<file>")) 1124parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/win32resource+")) ' TODO: Dev11 reports ERR_ArgumentRequired 1127parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/win32resource-")) ' TODO: Dev11 reports ERR_ArgumentRequired 1130parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32icon", ":<file>")) 1133parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/win32icon+")) ' TODO: Dev11 reports ERR_ArgumentRequired 1136parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/win32icon-")) ' TODO: Dev11 reports ERR_ArgumentRequired 1139parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("win32manifest", ":<file>")) 1142parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/win32manifest+")) ' TODO: Dev11 reports ERR_ArgumentRequired 1145parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/win32manifest-")) ' TODO: Dev11 reports ERR_ArgumentRequired 1211diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1232diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", "publi")) 1237diags.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("D:rive\relative\path")) 1242diags.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("inva\l*d?path")) 1247diags.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("resource", ":<resinfo>")) 1252diags.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("resource", ":<resinfo>")) 1257diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1262diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1274diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1279diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1284diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1289diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1294diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1313diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1325diags.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("resource", " ")) 1333diags.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii").WithLocation(1, 1)) 1373parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("resource", ":<resinfo>")) 1376parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("resource", ":<resinfo>")) 1379parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("resource", ":<resinfo>")) 1382parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/RES+")) ' TODO: Dev11 reports ERR_ArgumentRequired 1385parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/res-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 1388parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("linkresource", ":<resinfo>")) 1391parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("linkresource", ":<resinfo>")) 1394parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("linkresource", ":<resinfo>")) 1397parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/linkRES+")) ' TODO: Dev11 reports ERR_ArgumentRequired 1400parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/linkres-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 1407Diagnostic(ERRID.WRN_IgnoreModuleManifest)) 1452Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".exe")) 1557parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("langversion", ":<number>")) 1561parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/langVERSION+")) ' TODO: Dev11 reports ERR_ArgumentRequired 1565parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("langversion", ":<number>")) 1569parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("langversion", "8")) 1573parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("langversion", CStr(LanguageVersion.VisualBasic12 + 1))) 1595parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("delaysign")) 1618parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/VERBOSE:-")) 1621parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("verbose")) 1624parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("verbose")) 1627parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/verbOSE:")) 1658parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/QUIET:-")) 1661parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("quiet")) 1664parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("quiet")) 1667parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/quiET:")) 1705parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optimize")) 1708parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optimize")) 1711parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optimize")) 1766parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("parallel")) 1769parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("parallel")) 1772parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("parallel")) 1787parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("p")) 1790parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("p")) 1793parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("p")) 1821parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("subsystemversion", ":<version>")) 1824parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("subsystemversion", ":<version>")) 1827parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/subsystemversion-")) ' TODO: Dev11 reports ERRID.ERR_ArgumentRequired 1830parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("subsystemversion", ":<version>")) 1833parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments(" 4.1")) 1836parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments("4 .0")) 1839parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments("4. 0")) 1842parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments(".")) 1845parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments("4.")) 1848parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments(".0")) 1854parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments("4.65536")) 1857parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments("65536.0")) 1860parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments("-4.0")) 1877parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadCodepage).WithArguments("0")) 1880parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadCodepage).WithArguments("abc")) 1883parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadCodepage).WithArguments("-5")) 1886parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("codepage", ":<number>")) 1889parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("codepage", ":<number>")) 1892parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/codepage+")) ' Dev11 reports ERR_ArgumentRequired 1895parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("codepage", ":<number>")) 1919parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadChecksumAlgorithm).WithArguments("256")) 1922parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadChecksumAlgorithm).WithArguments("sha-1")) 1925parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadChecksumAlgorithm).WithArguments("sha")) 1928parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("checksumalgorithm", ":<algorithm>")) 1931parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("checksumalgorithm", ":<algorithm>")) 1934parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("checksumalgorithm", ":<algorithm>")) 1937parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/checksumAlgorithm+")) 1952parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("main", ":<class>")) 1957parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("main", ":<class>")) 1960parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("m", ":<class>")) 1963parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/m+")) ' Dev11 reports ERR_ArgumentRequired 1980parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("optioncompare", ":binary|text")) 1985parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("optioncompare", ":binary|text")) 2005parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optionexplicit")) 2010parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optionexplicit")) 2014parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optionexplicit")) 2032parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optioninfer")) 2035parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optioninfer")) 2038parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("optioninfer")) 2228parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("optionstrict", ":custom")) 2231parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("optionstrict", ":custom")) 2252parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("rootnamespace", ":<string>")) 2255parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("rootnamespace", ":<string>")) 2258parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/rootnamespace+")) ' TODO: Dev11 reports ERR_ArgumentRequired 2261parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/rootnamespace-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 2264parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("+")) 2267parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("rootnamespace", ":<string>")) 2270parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments(" A.B.C")) 2273parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("[abcdef")) 2276parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("abcdef]")) 2279parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("[[abcdef]]")) 2294parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("goo$")) 2297parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("I(")) 2300parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("_")) 2303parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("[_]")) 2310parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("[")) 2313parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("]")) 2316parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_BadNamespaceName1).WithArguments("[]")) 2336parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("l", ":<file_list>")) 2339parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("l", ":<file_list>")) 2342parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/l+")) ' TODO: Dev11 reports ERR_ArgumentRequired 2345parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/link-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 2372parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("recurse", ":<wildcard>")) 2375parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("recurse", ":<wildcard>")) 2378parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("recurse", ":<wildcard>")) 2381parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/recurse+")) ' TODO: Dev11 reports ERR_ArgumentRequired 2384parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/recurse-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 2485parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("r", ":<file_list>")) 2488parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("r", ":<file_list>")) 2491parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/reference+")) ' TODO: Dev11 reports ERR_ArgumentRequired 2494parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/reference-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 2581parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("a", ":<file_list>")) 2584parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("a", ":<file_list>")) 2865Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("ruleset", ":<file>")) 2870Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("ruleset", ":<file>")) 2875Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")) 2880Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")) 2890Assert.Equal(ERRID.ERR_CantReadRulesetFile, err.Code) 2930parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("t", ":exe|winexe|library|module|appcontainerexe|winmdobj")) 2933parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("target", ":exe|winexe|library|module|appcontainerexe|winmdobj")) 2936parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("target", "xyz")) 2939parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/T+")) ' TODO: Dev11 reports ERR_ArgumentRequired 2942parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/TARGET-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 2948parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2952parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2956parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2960parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2964parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2968parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2972parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2977Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("t", ":exe|winexe|library|module|appcontainerexe|winmdobj"), 2978Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2982Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("target", ":exe|winexe|library|module|appcontainerexe|winmdobj"), 2983Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2987Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("target", "xyz"), 2988Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) 2992Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/T+"), 2993Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) ' TODO: Dev11 reports ERR_ArgumentRequired 2997Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/TARGET-:"), 2998Diagnostic(ERRID.ERR_NoSources).WithLocation(1, 1)) ' TODO: Dev11 reports ERR_ArgumentRequired 3027parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("utf8output")) 3125parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("debug", "")) 3128parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("debug", "+")) 3131parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("debug", "invalid")) 3134parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("debug")) 3137parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/pdb:something")) 3161parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SourceLinkRequiresPdb)) 3167parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SourceLinkRequiresPdb)) 3287parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_CannotEmbedWithoutPdb)) 3290parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_CannotEmbedWithoutPdb)) 3293parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_CannotEmbedWithoutPdb)) 3296parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_CannotEmbedWithoutPdb)) 3450Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/pathmap:").WithLocation(1, 1) 3473Assert.Equal(ERRID.ERR_InvalidPathMap, parsedArgs.Errors(0).Code) 3477Assert.Equal(ERRID.ERR_InvalidPathMap, parsedArgs.Errors(0).Code) 3481Assert.Equal(ERRID.ERR_InvalidPathMap, parsedArgs.Errors(0).Code) 3482Assert.Equal(ERRID.ERR_InvalidPathMap, parsedArgs.Errors(1).Code) 3486Assert.Equal(ERRID.ERR_InvalidPathMap, parsedArgs.Errors(0).Code) 3490Assert.Equal(ERRID.ERR_InvalidPathMap, parsedArgs.Errors(0).Code) 3494Assert.Equal(ERRID.ERR_InvalidPathMap, parsedArgs.Errors(0).Code) 3579Diagnostic(ERRID.ERR_ArgumentRequired, arguments:={"sdkpath", ":<path>"}).WithLocation(1, 1), 3580Diagnostic(ERRID.WRN_CannotFindStandardLibrary1).WithArguments("System.dll").WithLocation(1, 1), 3581Diagnostic(ERRID.ERR_LibNotFound).WithArguments("Microsoft.VisualBasic.dll").WithLocation(1, 1)) 3724Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("refout", ":<file>").WithLocation(1, 1)) 3728Diagnostic(ERRID.ERR_NoRefOutWhenRefOnly).WithLocation(1, 1)) 3732Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("refonly").WithLocation(1, 1)) 3736Diagnostic(ERRID.ERR_NoNetModuleOutputWhenRefOutOrRefOnly).WithLocation(1, 1)) 3746Diagnostic(ERRID.ERR_NoNetModuleOutputWhenRefOutOrRefOnly).WithLocation(1, 1)) 3750Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("C:""My Folder\MyBinary.dll").WithLocation(1, 1)) 3817Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(currentDrive + ":a.vb")) 3827Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("\\b")) 3844Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("a.b" & vbNullChar & "b")) 3871Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("a<>.dll")) 3879parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("out", ":<file>")) 3882parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("out", ":<file>")) 3885parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("refout", ":<file>")) 3888parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoRefOutWhenRefOnly).WithLocation(1, 1)) 3891parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/out+")) ' TODO: Dev11 reports ERR_ArgumentRequired 3894parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/out-:")) ' TODO: Dev11 reports ERR_ArgumentRequired 3898Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".exe")) 3906Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".exe")) 3914Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".dll")) 3929Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".exe")) 3937Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".exe")) 3945Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".dll")) 3977parsedArgs.Errors.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".exe")) 3999parsedArgs.Errors.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(".dll")) 4082Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("doc", ":<file>")) 4369Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments(" ", "The system cannot find the path specified")) 4375Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments(" \ ", "The system cannot find the path specified")) 4382Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments("\\b", "The system cannot find the path specified")) 4390Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments("a.b" + ChrW(0) + "b", "The system cannot find the path specified")) 4397Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments("a" + ChrW(55296) + "b.xml", "The system cannot find the path specified")) 4404Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments("a<>.xml", "The system cannot find the path specified")) 4416Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("doc", ":<file>")) 4436Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("doc")) 4442Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("doc")) 4474Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments(currentDrive + ":a.xml", "The system cannot find the path specified")) 4551Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("errorlog", CommandLineParser.ErrorLogOptionFormat)) 4557Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("errorlog", CommandLineParser.ErrorLogOptionFormat)) 4576Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("C:""My Folder\MyBinary.xml").WithLocation(1, 1)) 4594Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments(filePath)) 4616Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=42", "errorlog", CommandLineParser.ErrorLogOptionFormat)) 4622Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=1.0.0", "errorlog", CommandLineParser.ErrorLogOptionFormat)) 4628Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=2.1.0", "errorlog", CommandLineParser.ErrorLogOptionFormat)) 4635Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,invalid=42", "errorlog", CommandLineParser.ErrorLogOptionFormat)) 4642Diagnostic(ERRID.ERR_BadSwitchValue).WithArguments("C:\MyFolder\MyBinary.xml,version=2,version=2", "errorlog", CommandLineParser.ErrorLogOptionFormat)) 4678parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keycontainer", ":<string>")) 4682parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/keycontainer-")) 4686parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keycontainer", ":<string>")) 4690parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keycontainer", ":<string>")) 4699parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keyfile", ":<file>")) 4703parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/keyfile-")) 4707parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keyfile", ":<file>")) 4768Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("platform", ":<string>")) 4770Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("platform", ":<string>")) 4772Verify(parsedArgs.Errors, Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/platform+")) ' TODO: Dev11 reports ERR_ArgumentRequired 4776Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("platform", "abcdef")) 4785Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_LibAnycpu32bitPreferredConflict).WithArguments("Platform", "AnyCpu32BitPreferred").WithLocation(1, 1)) 4788Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_LibAnycpu32bitPreferredConflict).WithArguments("Platform", "AnyCpu32BitPreferred").WithLocation(1, 1)) 4835Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("filealign", ":<number>")) 4839Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("filealign", "0")) 4841Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("filealign", "0x")) 4843Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("filealign", "0x0")) 4845Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("filealign", "-1")) 4847Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("filealign", "-0x100")) 4869parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("removeintchecks")) 4872parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("removeintchecks")) 4875parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_SwitchNeedsBool).WithArguments("removeintchecks")) 4927Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("baseaddress", ":<number>")) 4931Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("baseaddress", "0x10000000000000000")) 4933Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("baseaddress", "-1")) 4935Verify(parsedArgs.Errors, Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("baseaddress", ULong.MaxValue.ToString)) 4967parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("addmodule", ":<file_list>")) 4970parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("addmodule", ":<file_list>")) 4973parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/addmodule+")) ' TODO: Dev11 reports ERR_ArgumentRequired 4987parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("libpath", ":<path_list>")) 4990parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("libpath", ":<path_list>")) 4993parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/libpath+")) ' TODO: Dev11 reports ERR_ArgumentRequired 5056parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("sdkpath", ":<path>")) 5059parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("sdkpath", ":<path>")) 5062parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/sdkpath+")) ' TODO: Dev11 reports ERR_ArgumentRequired 5168opt.Errors.Verify(Diagnostic(ERRID.ERR_VBCoreNetModuleConflict)) 5170CreateCompilationWithMscorlib40AndVBRuntime(<compilation><file/></compilation>, opt).GetDiagnostics().Verify(Diagnostic(ERRID.ERR_VBCoreNetModuleConflict)) 5365Verify(parsedArgs.Errors, Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/highentropyva:+")) 5368Verify(parsedArgs.Errors, Diagnostic(ERRID.WRN_BadSwitch).WithArguments("/highentropyva:")) 5402parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_NoSourcesOut)) 7409parsedArgs.Errors.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("\\.\com1").WithLocation(1, 1)) 7416parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_XMLCannotWriteToXMLDocFile2).WithArguments("..\lpt2.xml", "The system cannot find the path specified").WithLocation(1, 1)) 7422parsedArgs.Errors.Verify(Diagnostic(ERRID.WRN_CannotFindStandardLibrary1).WithArguments("System.dll").WithLocation(1, 1), 7423Diagnostic(ERRID.ERR_LibNotFound).WithArguments("Microsoft.VisualBasic.dll").WithLocation(1, 1)) 7727args.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("additionalfile", ":<file_list>")) 7731args.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("additionalfile", ":<file_list>")) 9049args.Errors.Verify(Diagnostic(ERRID.FTL_InvalidInputFileName).WithArguments("e:c:\test\test.cs").WithLocation(1, 1)) 9154parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keyfile", ":<file>").WithLocation(1, 1)) 9161parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("keyfile", ":<file>").WithLocation(1, 1)) 9550parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "1 ^^ ^^ ").WithLocation(1, 1)) 9556parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("langversion", "1000").WithLocation(1, 1)) 9675New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "C"), Location.None).GetMessage(CultureInfo.InvariantCulture), 9732New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "C"), Location.None).GetMessage(CultureInfo.InvariantCulture), 10499parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("generatedfilesout", ":<dir>").WithLocation(1, 1)) 10503parsedArgs.Errors.Verify(Diagnostic(ERRID.ERR_ArgumentRequired).WithArguments("generatedfilesout", ":<dir>").WithLocation(1, 1))
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (5)
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.vb (1)
84Dim errorCodes = [Enum].GetValues(GetType(ERRID))
LanguageServer\VisualBasicLspBuildOnlyDiagnosticsTests.vb (4)
16Return GetType(ERRID) 28Dim errorCodes = [Enum].GetValues(GetType(ERRID)) 34errorCode > ERRID.ERR_None AndAlso 35errorCode < ERRID.WRN_NextAvailable Then
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (703)
Attributes\AssemblyAttributes.vb (4)
1111Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "Assembly: System.Reflection.AssemblyFlags(12345)").WithArguments("Public Overloads Sub New(assemblyFlags As Integer)", "This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")) 1127Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "Assembly: System.Reflection.AssemblyFlags(12345UI)").WithArguments("Public Overloads Sub New(flags As UInteger)", "This constructor has been deprecated. Please use AssemblyFlagsAttribute(AssemblyNameFlags) instead. http://go.microsoft.com/fwlink/?linkid=14202")) 1618Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsageInNetModule2).WithArguments("UserDefinedAssemblyAttrNoAllowMultipleAttribute", "NetModuleWithAssemblyAttributes.netmodule")) 1635Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsageInNetModule2).WithArguments("UserDefinedAssemblyAttrNoAllowMultipleAttribute", "NetModuleWithAssemblyAttributes.netmodule"))
Attributes\AttributeTests.vb (49)
1609Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "EvntWithAccessors"), 1610Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "PropertyWithAccessors"), 1611Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "Evnt"), 1612Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "Field"), 1613Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "WE"), 1614Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "NestedType"), 1615Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "Iface")) 1706Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "EvntWithAccessors"), 1707Diagnostic(ERRID.ERR_InvalidAttributeUsageOnAccessor, "Attr").WithArguments("Attr", "AddHandler", "EvntWithAccessors"), 1708Diagnostic(ERRID.ERR_InvalidAttributeUsageOnAccessor, "Attr").WithArguments("Attr", "RemoveHandler", "EvntWithAccessors"), 1709Diagnostic(ERRID.ERR_InvalidAttributeUsageOnAccessor, "Attr").WithArguments("Attr", "RaiseEvent", "EvntWithAccessors"), 1710Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "PropertyWithAccessors"), 1711Diagnostic(ERRID.ERR_InvalidAttributeUsageOnAccessor, "Attr").WithArguments("Attr", "Get", "PropertyWithAccessors"), 1712Diagnostic(ERRID.ERR_InvalidAttributeUsageOnAccessor, "Attr").WithArguments("Attr", "Set", "PropertyWithAccessors"), 1713Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "Sub1"), 1714Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "Ftn2"), 1715Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "DeclareFtn"), 1716Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "DeclareSub"), 1717Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "-"), 1718Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "CType"), 1719Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "Evnt"), 1720Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "NestedType"), 1721Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "Attr").WithArguments("Attr", "Iface")) 1870compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_BadAttributeNonPublicConstructor, "Fred")) 2033compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ArrayOfRawGenericInvalid, "()")) 2795Diagnostic(ERRID.ERR_InaccessibleSymbol2, "x1").WithArguments("m1.X1", "Private"), 2796Diagnostic(ERRID.ERR_NameNotDeclared1, "C1").WithArguments("C1"), 2797Diagnostic(ERRID.ERR_NameNotDeclared1, "C1").WithArguments("C1"), 2798Diagnostic(ERRID.ERR_NameNotDeclared1, "s").WithArguments("s"), 2799Diagnostic(ERRID.ERR_RequiredConstExpr, "s.GetType() isnot nothing"), 2800Diagnostic(ERRID.ERR_NameNotDeclared1, "a").WithArguments("a"), 2801Diagnostic(ERRID.ERR_RequiredConstExpr, "a = 1")) 2831Diagnostic(ERRID.ERR_MissingValuesForArraysInApplAttrs, "{}"), 2832Diagnostic(ERRID.ERR_InitializerTooFewElements1, "{1}").WithArguments("5") 3049compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_AttrCannotBeGenerics, "T").WithArguments("T")) 3070compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RequiredConstExpr, "New With {.anonymousField = False}.anonymousField")) 3091Diagnostic(ERRID.ERR_TooManyArgs1, "0").WithArguments("Public Sub New()")) 3111Diagnostic(ERRID.ERR_TooManyArgs1, "0").WithArguments("Public Sub New()")) 3268comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "A").WithArguments("AAttribute", "Friend")) 3305comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "NS").WithArguments("C.NSAttribute", "Private")) 3343comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_AmbiguousInImports2, "A").WithArguments("AAttribute", "N1, N2")) 3840comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_BadAttributeNonPublicType1, "MyAttr1").WithArguments("e2()")) 3863comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_NameNotMember2, "EditorBrowsableState.n").WithArguments("n", "System.ComponentModel.EditorBrowsableState")) 3892comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_UndefinedType1, "A").WithArguments("A"), 3893Diagnostic(ERRID.ERR_NameNotDeclared1, "Mid").WithArguments("Mid"), 3894Diagnostic(ERRID.ERR_PropertyOrFieldNotDefined1, "F").WithArguments("F"), 3895Diagnostic(ERRID.ERR_NameNotDeclared1, "Mid").WithArguments("Mid")) 4871Diagnostic(ERRID.ERR_BadAttributeConstructor1, "Command").WithArguments("a.Class1.CommandAttribute.FxCommand").WithLocation(20, 10), 4872Diagnostic(ERRID.ERR_RequiredConstExpr, "AddressOf UserInfo").WithLocation(20, 18))
Attributes\AttributeTests_MarshalAs.vb (52)
238Diagnostic(ERRID.ERR_BadAttribute1, "CType(-1, UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 239Diagnostic(ERRID.ERR_BadAttribute1, "CType(&H20000000, UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute")) 320Diagnostic(ERRID.ERR_BadAttribute1, "IidParameterIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 321Diagnostic(ERRID.ERR_BadAttribute1, "IidParameterIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 322Diagnostic(ERRID.ERR_BadAttribute1, "IidParameterIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 323Diagnostic(ERRID.ERR_BadAttribute1, "IidParameterIndex:=&H20000000").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute")) 442Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArraySubType:=VarEnum.VT_BSTR"), 443Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 444Diagnostic(ERRID.ERR_BadAttribute1, "SizeParamIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 445Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 446Diagnostic(ERRID.ERR_BadAttribute1, "SizeParamIndex:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 447Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=Int32.MaxValue").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 448Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=Int32.MaxValue / 4 + 1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 449Diagnostic(ERRID.ERR_BadAttribute1, "ArraySubType:=UnmanagedType.CustomMarshaler").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 450Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArraySubType:=VarEnum.VT_I1"), 451Diagnostic(ERRID.ERR_BadAttribute1, "ArraySubType:=DirectCast(&H20000000, UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 452Diagnostic(ERRID.ERR_BadAttribute1, "ArraySubType:=DirectCast((-1), UnmanagedType)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute")) 554Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArraySubType:=VarEnum.VT_BSTR"), 555Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 556Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeParamIndex:=-1"), 557Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeParamIndex:=Int16.MaxValue"), 558Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArraySubType:=VarEnum.VT_I2"), 559Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=&H20000000").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute")) 730Diagnostic(ERRID.ERR_ParameterNotValidForType, "ArraySubType:=UnmanagedType.ByValTStr"), 731Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeConst:=-1"), 732Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeParamIndex:=-1"), 733Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArrayUserDefinedSubType:=Nothing"), 734Diagnostic(ERRID.ERR_ParameterNotValidForType, "ArraySubType:=UnmanagedType.ByValTStr"), 735Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeConst:=1"), 736Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeParamIndex:=1"), 737Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArrayUserDefinedSubType:=Nothing"), 738Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArrayUserDefinedSubType:=Nothing"), 739Diagnostic(ERRID.ERR_ParameterNotValidForType, "SafeArrayUserDefinedSubType:=GetType(Integer)")) 811Diagnostic(ERRID.ERR_ParameterNotValidForType, "ArraySubType:=UnmanagedType.ByValTStr"), 812Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 813Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeParamIndex:=-1"), 814Diagnostic(ERRID.ERR_AttributeParameterRequired1, "MarshalAs").WithArguments("SizeConst"), 815Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=-1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 816Diagnostic(ERRID.ERR_AttributeParameterRequired1, "MarshalAs").WithArguments("SizeConst"), 817Diagnostic(ERRID.ERR_BadAttribute1, "SizeConst:=(Int32.MaxValue - 3) / 4 + 1").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 818Diagnostic(ERRID.ERR_AttributeParameterRequired1, "MarshalAs").WithArguments("SizeConst"), 819Diagnostic(ERRID.ERR_ParameterNotValidForType, "SizeParamIndex:=1"), 820Diagnostic(ERRID.ERR_ParameterNotValidForType, "ArraySubType:=UnmanagedType.ByValTStr")) 929Diagnostic(ERRID.ERR_AttributeParameterRequired2, "MarshalAs").WithArguments("MarshalType", "MarshalTypeRef"), 930Diagnostic(ERRID.ERR_BadAttribute1, "MarshalType:=""a"" & ChrW(&HDC00) & ""b""").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute"), 931Diagnostic(ERRID.ERR_BadAttribute1, "MarshalCookie:=""y"" & ChrW(&HDC00)").WithArguments("System.Runtime.InteropServices.MarshalAsAttribute")) 951Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "MarshalAs").WithArguments("MarshalAsAttribute", "e")) 1348Diagnostic(ERRID.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValArray").WithArguments("ByValArray"), 1349Diagnostic(ERRID.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValTStr").WithArguments("ByValTStr"), 1350Diagnostic(ERRID.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValArray").WithArguments("ByValArray"), 1351Diagnostic(ERRID.ERR_MarshalUnmanagedTypeOnlyValidForFields, "UnmanagedType.ByValTStr").WithArguments("ByValTStr"), 1352Diagnostic(ERRID.ERR_MarshalUnmanagedTypeNotValidForFields, "UnmanagedType.VBByRefStr").WithArguments("VBByRefStr"))
Attributes\AttributeTests_ObsoleteAttribute.vb (88)
118Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "AnotherAttribute").WithArguments("AnotherAttribute"), 119Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "A1").WithArguments("A1", "Do not use A1"), 120Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "G(Of Integer, AnotherAttribute)").WithArguments("G(Of Integer, AnotherAttribute)"), 121Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Class1").WithArguments("Class1", "Do not use this type"), 122Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Class1").WithArguments("Class1", "Do not use this type"), 123Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Class1").WithArguments("Class1", "Do not use this type"), 124Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "SelfReferenceInBase").WithArguments("SelfReferenceInBase"), 125Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Class1").WithArguments("Class1", "Do not use this type"), 126Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Class1").WithArguments("Class1", "Do not use this type"), 127Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "Mydeleg").WithArguments("Mydeleg")) 414Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "10").WithArguments("Public Shared Widening Operator CType(x As Integer) As Test"), 415Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "CType(""10"", Test)").WithArguments("Public Shared Narrowing Operator CType(x As String) As Test"), 416Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "-c").WithArguments("Public Shared Operator -(x As Test) As Test"), 417Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "c").WithArguments("Public Shared Operator IsTrue(x As Test) As Boolean"), 418Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "c AndAlso c1").WithArguments("Public Shared Operator And(x As Test, y As Test) As Test"), 419Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "c AndAlso c1").WithArguments("Public Shared Operator IsFalse(x As Test) As Boolean"), 420Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "(c AndAlso c1)").WithArguments("Public Shared Operator IsTrue(x As Test) As Boolean"), 421Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "c1 += c").WithArguments("Public Shared Operator +(x As Test, y As Test) As Test")) 500Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "TestClass1").WithArguments("TestClass1"), 501Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "TestClass2").WithArguments("TestClass2", "TestClass2 is obsolete"), 502Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "TestClass3").WithArguments("TestClass3", "Do not use TestClass3"), 503Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "TestClass4").WithArguments("TestClass4", "TestClass4 is obsolete"), 504Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "c.TestMethod()").WithArguments("Public Sub TestMethod()", "Do not use TestMethod"), 505Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "c.Prop1").WithArguments("Public Property Prop1 As Integer", "Do not use Prop1"), 506Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "c.field1").WithArguments("Public field1 As TestClass", "Do not use field1"), 507Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "c.event1").WithArguments("Public Event event1 As System.Action", "Do not use event"), 508Diagnostic(ERRID.ERR_UseOfObsoleteSymbolNoMessage1, "TestModule").WithArguments("TestModule")) 590Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "F5"), 591Diagnostic(ERRID.ERR_RequiredConstExpr, "F5"), 592Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "P1"), 593Diagnostic(ERRID.ERR_RequiredConstExpr, "P1"), 594Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "P2"), 595Diagnostic(ERRID.ERR_NoArgumentCountOverloadCandidates1, "SomeAttr").WithArguments("New"), 596Diagnostic(ERRID.ERR_RequiredConstExpr, "P2"), 597Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "Method1"), 598Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "Method2")) 936Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "C").WithArguments("C"), 937Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "o.Goo()").WithArguments("Public Sub Goo()")) 1004Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "XEvent").WithArguments("Public Event XEvent()"), 1005Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "MyDeleg").WithArguments("MyDeleg"), 1006Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "MyDeleg").WithArguments("MyDeleg"), 1007Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "MyDeleg").WithArguments("MyDeleg"), 1008Diagnostic(ERRID.WRN_UseOfObsoletePropertyAccessor2, "s.p += ""as""").WithArguments("Set", "Public Property p As String"), 1009Diagnostic(ERRID.WRN_UseOfObsoletePropertyAccessor2, "s.p").WithArguments("Get", "Public Property p As String"), 1010Diagnostic(ERRID.WRN_UseOfObsoletePropertyAccessor2, "s.p").WithArguments("Get", "Public Property p As String")) 1055Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Att()").WithArguments("Public Sub New()", "Constructor"), 1056Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Att").WithArguments("Public Sub New()", "Constructor"), 1057Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Field:=1").WithArguments("Public Field As Integer", "Field"), 1058Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Att(Field:=1)").WithArguments("Public Sub New()", "Constructor"), 1059Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Prop:=1").WithArguments("Public Property Prop As Integer", "Property"), 1060Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "Att(Prop:=1)").WithArguments("Public Sub New()", "Constructor")) 1132Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C1").WithArguments("A.B.C1"), 1133Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C2(Of Integer)").WithArguments("A.B.C2(Of Integer)"), 1134Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C2(Of Integer)").WithArguments("A.B.C2(Of Integer)"), 1135Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C2(Of Integer).E(Of Integer)").WithArguments("A.B.C2(Of Integer).E(Of Integer)"), 1136Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C").WithArguments("A.B.C"), 1137Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C.Field1").WithArguments("Public Shared Field1 As Integer"), 1138Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C").WithArguments("A.B.C"), 1139Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C.D").WithArguments("A.B.C.D"), 1140Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C.D.Field2").WithArguments("Public Shared Field2 As Integer"), 1141Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C1").WithArguments("A.B.C1"), 1142Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C2(Of Integer)").WithArguments("A.B.C2(Of Integer)"), 1143Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C2(Of Integer)").WithArguments("A.B.C2(Of T)"), 1144Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "A.B.C2(Of Integer).Field1").WithArguments("Public Shared Field1 As Integer"), 1145Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "a.b.c2(Of Integer)").WithArguments("A.B.C2(Of Integer)"), 1146Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "a.b.c2(Of Integer).E(Of Integer)").WithArguments("A.B.C2(Of Integer).E(Of Integer)")) 1223diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(9, 9)) 1253diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(9, 9)) 1283diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(9, 9)) 1330Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "DiagnosticId").WithArguments("DiagnosticId", "class", "System.ObsoleteAttribute").WithLocation(4, 15), 1331Diagnostic(ERRID.ERR_MultiplyDefinedType3, "DiagnosticId").WithArguments("DiagnosticId", "Public DiagnosticId As String", "class").WithLocation(27, 25)) 1362Assert.Equal(ERRID.WRN_UseOfObsoleteSymbol2, DirectCast(diag.Code, ERRID)) 1431Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").WithLocation(14, 9), 1432Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").WithLocation(18, 9), 1484Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").WithLocation(6, 9), 1485Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M2()").WithArguments("Public Sub M2()").WithLocation(10, 9), 1632diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 1639diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 1744diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 1751diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 1956diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 1963diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 2018diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 2025diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 2362diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 2369diags.Verify(Diagnostic(ERRID.WRN_UseOfObsoleteSymbolNoMessage1, "M1()").WithArguments("Public Sub M1()").WithLocation(5, 9)) 2728Diagnostic(ERRID.ERR_UseOfObsoleteSymbol2, "S").WithArguments("S", "Types with embedded references are not supported in this version of your compiler.").WithLocation(2, 16)
Attributes\AttributeTests_Synthesized.vb (1)
928Diagnostic(ERRID.ERR_InvalidModuleAttribute1, "RuntimeCompatibilityAttribute").WithArguments("RuntimeCompatibilityAttribute").WithLocation(4, 10))
Attributes\AttributeTests_WellKnownAttributes.vb (97)
1005Diagnostic(ERRID.ERR_AttributeMustInheritSysAttr, "DllImport").WithArguments("System.Runtime.InteropServices.DllImportAttribute")) 1077Diagnostic(ERRID.ERR_BadAttribute1, "Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1078Diagnostic(ERRID.ERR_BadAttribute1, """""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1079Diagnostic(ERRID.ERR_BadAttribute1, "EntryPoint:=Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1080Diagnostic(ERRID.ERR_BadAttribute1, "EntryPoint:=""""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1081Diagnostic(ERRID.ERR_BadAttribute1, "Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1082Diagnostic(ERRID.ERR_BadAttribute1, "EntryPoint:=Nothing").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1083Diagnostic(ERRID.ERR_BadAttribute1, "ChrW(0)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1084Diagnostic(ERRID.ERR_BadAttribute1, "ChrW(0) & ""b""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1085Diagnostic(ERRID.ERR_BadAttribute1, """b"" & ChrW(0)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1086Diagnostic(ERRID.ERR_BadAttribute1, """x"" & ChrW(0) & ""y""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1087Diagnostic(ERRID.ERR_BadAttribute1, "EntryPoint:=""x"" & ChrW(0) & ""y""").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1088Diagnostic(ERRID.ERR_BadAttribute1, "ChrW(&HDC00)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1089Diagnostic(ERRID.ERR_BadAttribute1, "ChrW(&HDC00) & ChrW(&HD800)").WithArguments("System.Runtime.InteropServices.DllImportAttribute"), 1090Diagnostic(ERRID.ERR_BadAttribute1, "EntryPoint:=ChrW(&HDC00) & ChrW(&HD800)").WithArguments("System.Runtime.InteropServices.DllImportAttribute")) 1489Diagnostic(ERRID.ERR_DllImportOnInstanceMethod, "DllImport")) 1517Diagnostic(ERRID.ERR_DllImportOnNonEmptySubOrFunction, "System.Runtime.InteropServices.DllImport")) 1594Diagnostic(ERRID.ERR_DllImportNotLegalOnGetOrSet, "DllImport"), 1595Diagnostic(ERRID.ERR_DllImportNotLegalOnGetOrSet, "DllImport"), 1596Diagnostic(ERRID.ERR_DllImportNotLegalOnEventMethod, "DllImport"), 1597Diagnostic(ERRID.ERR_DllImportNotLegalOnEventMethod, "DllImport"), 1598Diagnostic(ERRID.ERR_DllImportNotLegalOnEventMethod, "DllImport"), 1599Diagnostic(ERRID.ERR_DllImportOnInstanceMethod, "DllImport"), 1600Diagnostic(ERRID.ERR_DllImportOnNonEmptySubOrFunction, "DllImport"), 1601Diagnostic(ERRID.ERR_DllImportOnGenericSubOrFunction, "DllImport"), 1602Diagnostic(ERRID.ERR_DllImportOnGenericSubOrFunction, "DllImport"), 1603Diagnostic(ERRID.ERR_DllImportOnInterfaceMethod, "DllImport"), 1604Diagnostic(ERRID.ERR_DllImportOnInterfaceMethod, "DllImport")) 1919Diagnostic(ERRID.ERR_DllImportNotLegalOnDeclare, "DllImport")) 2618Diagnostic(ERRID.ERR_BadDeclareFlags1, "Shared").WithArguments("Shared"), 2619Diagnostic(ERRID.ERR_BadDeclareFlags1, "Static").WithArguments("Static"), 2620Diagnostic(ERRID.ERR_BadDeclareFlags1, "ReadOnly").WithArguments("ReadOnly"), 2621Diagnostic(ERRID.ERR_BadDeclareFlags1, "WriteOnly").WithArguments("WriteOnly"), 2622Diagnostic(ERRID.ERR_BadDeclareFlags1, "Overrides").WithArguments("Overrides"), 2623Diagnostic(ERRID.ERR_BadDeclareFlags1, "Overridable").WithArguments("Overridable"), 2624Diagnostic(ERRID.ERR_BadDeclareFlags1, "MustOverride").WithArguments("MustOverride"), 2625Diagnostic(ERRID.ERR_BadDeclareFlags1, "NotOverridable").WithArguments("NotOverridable"), 2626Diagnostic(ERRID.ERR_BadDeclareFlags1, "Dim").WithArguments("Dim"), 2627Diagnostic(ERRID.ERR_BadDeclareFlags1, "Const").WithArguments("Const"), 2628Diagnostic(ERRID.ERR_BadDeclareFlags1, "Static").WithArguments("Static"), 2629Diagnostic(ERRID.ERR_BadDeclareFlags1, "Default").WithArguments("Default"), 2630Diagnostic(ERRID.ERR_BadDeclareFlags1, "WithEvents").WithArguments("WithEvents"), 2631Diagnostic(ERRID.ERR_BadDeclareFlags1, "Widening").WithArguments("Widening"), 2632Diagnostic(ERRID.ERR_BadDeclareFlags1, "Narrowing").WithArguments("Narrowing"), 2633Diagnostic(ERRID.ERR_BadDeclareFlags1, "Partial").WithArguments("Partial"), 2634Diagnostic(ERRID.ERR_BadDeclareFlags1, "MustInherit").WithArguments("MustInherit"), 2635Diagnostic(ERRID.ERR_BadDeclareFlags1, "NotInheritable").WithArguments("NotInheritable") 2653Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Lib"), 2654Diagnostic(ERRID.ERR_MissingLibInDeclare, "") 2672Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 2673Diagnostic(ERRID.ERR_IllegalChar, "$") 3398compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "AttributeUsage(AttributeTargets.Class)").WithArguments("AttributeUsageAttribute")) 3526compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "AttributeUsage(AttributeTargets.Class, AllowMultiple:= True)").WithArguments("AttributeUsageAttribute")) 4035Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4036Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4037Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "DirectCast(1, SecurityAction)").WithArguments("DirectCast(1, SecurityAction)"), 4038Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.Assert").WithArguments("SecurityAction.Assert"), 4039Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.Demand").WithArguments("SecurityAction.Demand"), 4040Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.Deny").WithArguments("SecurityAction.Deny"), 4041Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.InheritanceDemand").WithArguments("SecurityAction.InheritanceDemand"), 4042Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.LinkDemand").WithArguments("SecurityAction.LinkDemand"), 4043Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.PermitOnly").WithArguments("SecurityAction.PermitOnly"), 4044Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "DirectCast(1, SecurityAction)").WithArguments("DirectCast(1, SecurityAction)"), 4045Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.Assert").WithArguments("SecurityAction.Assert"), 4046Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.Demand").WithArguments("SecurityAction.Demand"), 4047Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.Deny").WithArguments("SecurityAction.Deny"), 4048Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.InheritanceDemand").WithArguments("SecurityAction.InheritanceDemand"), 4049Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.LinkDemand").WithArguments("SecurityAction.LinkDemand"), 4050Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionAssembly, "SecurityAction.PermitOnly").WithArguments("SecurityAction.PermitOnly")) 4144Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestMinimum").WithArguments("RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4145Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestOptional").WithArguments("RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4146Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestRefuse").WithArguments("RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4147Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestMinimum").WithArguments("RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4148Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestOptional").WithArguments("RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4149Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestRefuse").WithArguments("RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4150Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestMinimum").WithArguments("SecurityAction.RequestMinimum"), 4151Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestOptional").WithArguments("SecurityAction.RequestOptional"), 4152Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestRefuse").WithArguments("SecurityAction.RequestRefuse"), 4153Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestMinimum").WithArguments("SecurityAction.RequestMinimum"), 4154Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestOptional").WithArguments("SecurityAction.RequestOptional"), 4155Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestRefuse").WithArguments("SecurityAction.RequestRefuse"), 4156Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestMinimum").WithArguments("RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4157Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestOptional").WithArguments("RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4158Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestRefuse").WithArguments("RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4159Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestMinimum").WithArguments("RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4160Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestOptional").WithArguments("RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4161Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestRefuse").WithArguments("RequestRefuse", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4162Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestMinimum").WithArguments("SecurityAction.RequestMinimum"), 4163Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestOptional").WithArguments("SecurityAction.RequestOptional"), 4164Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestRefuse").WithArguments("SecurityAction.RequestRefuse"), 4165Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestMinimum").WithArguments("SecurityAction.RequestMinimum"), 4166Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestOptional").WithArguments("SecurityAction.RequestOptional"), 4167Diagnostic(ERRID.ERR_SecurityAttributeInvalidActionTypeOrMethod, "SecurityAction.RequestRefuse").WithArguments("SecurityAction.RequestRefuse")) 4202Diagnostic(ERRID.ERR_SecurityAttributeInvalidTarget, "MyPermission").WithArguments("MyPermissionAttribute")) 4229CreateCompilationWithMscorlib40(source).VerifyDiagnostics(Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 4230Diagnostic(ERRID.ERR_PrincipalPermissionInvalidAction, "SecurityAction.InheritanceDemand").WithArguments("SecurityAction.InheritanceDemand"), 4231Diagnostic(ERRID.ERR_PrincipalPermissionInvalidAction, "SecurityAction.LinkDemand").WithArguments("SecurityAction.LinkDemand"))
Attributes\EmitTestStrongNameProvider.vb (1)
43Diagnostic(ERRID.ERR_PeWritingFailure).WithArguments(thrownException.ToString()).WithLocation(1, 1))
Attributes\InternalsVisibleToAndStrongNameTests.vb (12)
99Diagnostic(ERRID.ERR_PublicKeyFileFailure).WithArguments(keyFileName, CodeAnalysisResources.FileNotFound)) 129Diagnostic(ERRID.ERR_PublicKeyFileFailure).WithArguments("..\" & keyFileName, CodeAnalysisResources.FileNotFound)) 205Diagnostic(ERRID.ERR_PublicKeyFileFailure).WithArguments(keyFileName, CodeAnalysisResources.FileNotFound)) 265Diagnostic(ERRID.ERR_PublicKeyFileFailure).WithArguments(publicKeyFileName, CodeAnalysisResources.FileNotFound), 266Diagnostic(ERRID.WRN_DelaySignButNoKey)) 477Diagnostic(ERRID.ERR_PublicKeyFileFailure).WithArguments(tmp.Path, CodeAnalysisResources.InvalidPublicKey)) 502Assert.Equal(ERRID.ERR_PublicKeyContainerFailure, err.Code) 658Assert.Equal(ERRID.ERR_PublicKeyContainerFailure, err.Code) 690c2.VerifyDiagnostics(Diagnostic(ERRID.ERR_PublicKeyFileFailure).WithArguments("bogus", CodeAnalysisResources.FileNotFound)) 1306Diagnostic(ERRID.ERR_InaccessibleSymbol2, "Base").WithArguments("Base", "Friend")) 1792Assert.Equal(ERRID.ERR_PublicKeyFileFailure, err.Code) 2262Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: System.Runtime.CompilerServices.InternalsVisibleTo(""System.Runtime.Serialization, PublicKey = 10000000000000000400000000000000"")").WithArguments("System.Runtime.Serialization, PublicKey = 10000000000000000400000000000000").WithLocation(1, 2))
BreakingChanges.vb (6)
666Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo", "ev"), 667Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo", "ev"), 668Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo", "ev"), 669Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 670Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 671Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"))
CodeGen\CodeGenClosureLambdaTests.vb (11)
578VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label1").WithArguments("Goto ", "label1", "label1")) 620VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label1").WithArguments("Goto ", "label1", "label1")) 713VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label1").WithArguments("Goto ", "label1", "label1")) 766VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label1").WithArguments("Goto ", "label1", "label1")) 820VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label1").WithArguments("Goto ", "label1", "label1")) 876VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label1").WithArguments("Goto ", "label1", "label1")) 951Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label2").WithArguments("Goto ", "label2", "label2"), 952Diagnostic(ERRID.ERR_CannotGotoNonScopeBlocksWithClosure, "goto label1").WithArguments("Goto ", "label1", "label1")) 1860VerifyDiagnostics(Diagnostic(ERRID.ERR_CannotLiftByRefParamLambda1, "x").WithArguments("x")) 1926VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_CannotLiftRestrictedTypeLambda, "lifted").WithArguments("System.ArgIterator")) 2290VerifyDiagnostics(Diagnostic(ERRID.ERR_CannotLiftByRefParamLambda1, "ex").WithArguments("ex"))
CodeGen\CodeGenConstLocal.vb (2)
750verifier.VerifyDiagnostics(Diagnostic(ERRID.ERR_CircularEvaluation1, "i").WithArguments("i"), 751Diagnostic(ERRID.ERR_CircularEvaluation1, "j").WithArguments("j"))
CodeGen\CodeGenEvents.vb (6)
1475Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1476Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1477Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1478Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1479Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1480Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"))
CodeGen\CodeGenLateBound.vb (4)
2749Diagnostic(ERRID.ERR_NameNotMember2, "I1.GoHome").WithArguments("GoHome", "Module1.II1"), 2750Diagnostic(ERRID.ERR_NameNotMember2, "I2.GoHome").WithArguments("GoHome", "Module1.II2")) 2799Diagnostic(ERRID.ERR_NameNotMember2, "I0.GoHome").WithArguments("GoHome", "Module1.II0"), 2800Diagnostic(ERRID.ERR_NameNotMember2, "I4.GoHome").WithArguments("GoHome", "Module1.II4"))
CodeGen\CodeGenNullable.vb (8)
1397).VerifyDiagnostics(Diagnostic(ERRID.WRN_EqualToLiteralNothing, "Nothing")) 3379comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ConstAsNonConstant, "Boolean?"), 3380Diagnostic(ERRID.ERR_ConstAsNonConstant, "ULong?"), 3381Diagnostic(ERRID.ERR_ConstAsNonConstant, "E?"), 3382Diagnostic(ERRID.ERR_ConstAsNonConstant, "S?")) 3427comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_NameNotMember2, "ns.field").WithArguments("field", "S?")) 3455Diagnostic(ERRID.WRN_EqualToLiteralNothing, "x = Nothing"), 3456Diagnostic(ERRID.WRN_NotEqualToLiteralNothing, "Nothing <> y")
CodeGen\CodeGenScriptTests.vb (8)
62Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "System.Console.WriteLine(1+1)")) 94c.VerifyDiagnostics(Diagnostic(ERRID.ERR_KeywordNotAllowedInScript, "Me").WithArguments("Me"), 95Diagnostic(ERRID.ERR_KeywordNotAllowedInScript, "Me").WithArguments("Me")) 115c.VerifyDiagnostics(Diagnostic(ERRID.ERR_KeywordNotAllowedInScript, "MyClass").WithArguments("MyClass"), 116Diagnostic(ERRID.ERR_KeywordNotAllowedInScript, "MyBase").WithArguments("MyBase")) 146CreateCompilationWithMscorlib40(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidInNamespace, "Sub Goo")) 236Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "1 ")) 417Diagnostic(ERRID.ERR_MissingRuntimeHelper).WithArguments("Task.GetAwaiter").WithLocation(1, 1))
CodeGen\CodeGenSelectCase.vb (7)
4615VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_MissingRuntimeHelper, "number").WithArguments("Microsoft.VisualBasic.CompilerServices.Operators.CompareString")) 4630VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Select """""), 4631Diagnostic(ERRID.ERR_EndSelectNoSelect, "End Select")) 4644VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Select """""), 4645Diagnostic(ERRID.ERR_EndSelectNoSelect, "End Select")) 4705Diagnostic(ERRID.ERR_MissingRuntimeHelper, "number").WithArguments("System.String.get_Chars"), 4706Diagnostic(ERRID.ERR_MissingRuntimeHelper, "number").WithArguments("Microsoft.VisualBasic.CompilerServices.Operators.CompareString"))
CodeGen\CodeGenTests.vb (10)
5987VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_MissingRuntimeHelper, "o = o").WithArguments("Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual")) 6003VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_MissingRuntimeHelper, "o = o").WithArguments("Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectEqual")) 6019VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_MissingRuntimeHelper, "o = o").WithArguments("Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectEqual")) 6035VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_MissingRuntimeHelper, "o = o").WithArguments("Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectEqual")) 11723Diagnostic(ERRID.WRN_DefAsgNoRetValPropVal1, "End Get").WithArguments("P")) 13624Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").WithLocation(7, 16) 13673Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "1").WithLocation(13, 16) 13767Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").WithLocation(7, 16), 13768Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").WithLocation(7, 16), 13769Diagnostic(ERRID.ERR_TooLongOrComplexExpression, "a").WithLocation(7, 16)
CodeGen\CodeGenTuples.vb (22)
9798Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").WithLocation(8, 34), 9799Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").WithLocation(9, 34), 9800Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").WithLocation(14, 34), 9801Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer)").WithLocation(15, 34) 9859Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").WithLocation(9, 34), 9860Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "x.goo.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").WithLocation(10, 34), 9861Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.Alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").WithLocation(16, 34), 9862Diagnostic(ERRID.ERR_MetadataMembersAmbiguous3, "f.alice").WithArguments("Alice", "structure", "(Alice As Integer, alice As Integer, Integer)").WithLocation(17, 34) 10337Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").WithLocation(8, 34) 10662Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest.Rest.Rest").WithArguments("Rest").WithLocation(36, 34), 10663Diagnostic(ERRID.WRN_DefAsgUseNullRef, "ss.I31").WithArguments("I31").WithLocation(38, 34), 10664Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest.Rest").WithArguments("Rest").WithLocation(49, 34), 10665Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest").WithArguments("Rest").WithLocation(52, 34), 10666Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").WithLocation(55, 34), 10667Diagnostic(ERRID.WRN_DefAsgUseNullRef, "ss.I2").WithArguments("I2").WithLocation(58, 34)) 10818Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").WithLocation(44, 38), 10819Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").WithLocation(65, 38) 10901Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").WithLocation(43, 38), 10902Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss").WithArguments("ss").WithLocation(64, 38) 10947Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "ss.Rest").WithArguments("Rest").WithLocation(28, 38) 10983Diagnostic(ERRID.WRN_DefAsgUseNullRef, "ss.I3").WithArguments("I3").WithLocation(18, 38) 22288Diagnostic(ERRID.ERR_NoMostSpecificOverload2, "M1").WithArguments("M1", "
CodeGen\CodeGenUnstructuredErrorHandling.vb (8)
153Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_MultiplyDefined1, "10").WithArguments("10")) 1045Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "-")) 1121Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "1L"), 1122Diagnostic(ERRID.ERR_Syntax, "2S"), 1123Diagnostic(ERRID.ERR_Syntax, "1%")) 1405options:=TestOptions.ReleaseDll.WithEmbedVbCoreRuntime(True)).VerifyDiagnostics(Diagnostic(ERRID.ERR_NameNotDeclared1, "Err").WithArguments("Err"), 1406Diagnostic(ERRID.ERR_NameNotDeclared1, "err").WithArguments("err"), 1407Diagnostic(ERRID.ERR_NameNotDeclared1, "err").WithArguments("err"))
CodeGen\CodeGenVBCore.vb (30)
2940compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_MissingRuntimeHelper, "Module1").WithArguments("Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute..ctor")) 3024Diagnostic(ERRID.ERR_NewInStruct, "New").WithLocation(20, 24), 3025Diagnostic(ERRID.ERR_StructCantInherit, "Inherits System.Exception").WithLocation(19, 13), 3026Diagnostic(ERRID.ERR_UseOfKeywordFromStructure1, "MyBase").WithArguments("MyBase").WithLocation(21, 17) 3122Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3123Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3124Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3125Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3126Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3127Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3128Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3129Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3130Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3131Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3132Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3133Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3134Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3135Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3136Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3137Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3138Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3139Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3140Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3141Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3142Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3143Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3144Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3145Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"), 3146Diagnostic(ERRID.ERR_UndefinedType1).WithArguments("Global.System.ComponentModel.EditorBrowsable"), 3147Diagnostic(ERRID.ERR_NameNotMember2).WithArguments("ComponentModel", "System"))
CodeGen\CodeGenWinMdEvents.vb (22)
27Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable(Of )", "MissingReferences.winmdobj"), 28Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj"), 29Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj")) 55Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable(Of )", "MissingReferences.winmdobj"), 56Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj"), 57Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj")) 83Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable(Of )", "MissingReferences.winmdobj"), 84Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj"), 85Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj")) 111Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable(Of )", "MissingReferences.winmdobj"), 112Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj"), 113Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "MissingReferences.winmdobj")) 161Diagnostic(ERRID.ERR_MissingRuntimeHelper, "RaiseEvent E()").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable`1.get_InvocationList")) 195Diagnostic(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, "System.Runtime.InteropServices.WindowsRuntime").WithArguments("System.Runtime.InteropServices.WindowsRuntime"), 196Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable(Of )", "test.winmdobj"), 197Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "test.winmdobj"), 198Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", "test.winmdobj"), 199Diagnostic(ERRID.ERR_MissingRuntimeHelper, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable`1.AddEventHandler"), 200Diagnostic(ERRID.ERR_MissingRuntimeHelper, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable`1.RemoveEventHandler"), 201Diagnostic(ERRID.ERR_MissingRuntimeHelper, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable`1.AddEventHandler"), 202Diagnostic(ERRID.ERR_MissingRuntimeHelper, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable`1.RemoveEventHandler"), 203Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System.Runtime.InteropServices.WindowsRuntime"))
CodeGen\CodeGenWithBlock.vb (5)
886VerifyDiagnostics(Diagnostic(ERRID.WRN_MutableStructureInUsing, "s = New STRUCT()").WithArguments("s")). 2311c.VerifyDiagnostics(Diagnostic(ERRID.WRN_SharedMemberThroughInstance, "Me.ARR")) 2648Diagnostic(ERRID.ERR_CannotLiftAnonymousType1, ".y").WithArguments("y"), 2649Diagnostic(ERRID.ERR_BlockLocalShadowing1, "a").WithArguments("a")) 2689Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "c").WithArguments("c"))
CodeGen\CodeGenWithEvents.vb (9)
1873Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1874Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1875Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1876Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1877Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev"), 1878Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo2", "ev")) 1915Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo", "ev"), 1916Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo", "ev"), 1917Diagnostic(ERRID.ERR_EventHandlerSignatureIncompatible2, "ev").WithArguments("Goo", "ev"))
CodeGen\WinRTCollectionTests.vb (1)
6297Dim compRef = verifier.Compilation.EmitToImageReference(expectedWarnings:={Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System")})
Emit\CompilationEmitTests.vb (22)
75Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("RootNamespace", """Test""").WithLocation(1, 1), 76Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("""Test.Module1""").WithLocation(1, 1)) 82Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("RootNamespace", """решения""").WithLocation(1, 1), 83Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("""решения.Module1""").WithLocation(1, 1)) 422Diagnostic(ERRID.WRN_XMLDocParseError1, "<summary>").WithArguments("Element is missing an end tag.").WithLocation(4, 9), 423Diagnostic(ERRID.WRN_XMLDocParseError1, "").WithArguments("Expected beginning '<' for an XML tag.").WithLocation(4, 40), 424Diagnostic(ERRID.WRN_XMLDocParseError1, "").WithArguments("'>' expected.").WithLocation(4, 40)) 471Diagnostic(ERRID.WRN_XMLDocCrefAttributeNotFound1, "cref=""T""").WithArguments("T").WithLocation(4, 23)) 1172refonlyDiagnostics.Verify(Diagnostic(ERRID.ERR_CryptoHashFailed)) 1178refoutDiagnostics.Verify(Diagnostic(ERRID.ERR_CryptoHashFailed)) 3157Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestOptional").WithArguments("RequestOptional", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 3158Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.RequestMinimum").WithArguments("RequestMinimum", "Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")) 3602Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments( 3647Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 3648Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."), 3649Diagnostic(ERRID.ERR_PermissionSetAttributeInvalidFile, "File:=""NonExistentFile.xml""").WithArguments("NonExistentFile.xml", "File"), 3650Diagnostic(ERRID.ERR_PermissionSetAttributeInvalidFile, "File:=nothing").WithArguments("<empty>", "File")) 3667Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.").WithLocation(3, 25), 3668Diagnostic(ERRID.ERR_PermissionSetAttributeInvalidFile, "File:=""NonExistentFile.xml""").WithArguments("NonExistentFile.xml", "File").WithLocation(3, 46)) 3761comp.VerifyDiagnostics(Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments( 3770Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2), 3771Diagnostic(ERRID.ERR_PermissionSetAttributeFileReadError))
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (8)
1443Diagnostic(ERRID.WRN_UnusedLocal, "y").WithArguments("y").WithLocation(3, 16), 1444Diagnostic(ERRID.WRN_UnusedLocal, "o1").WithArguments("o1").WithLocation(14, 13), 1445Diagnostic(ERRID.WRN_UnusedLocal, "aa").WithArguments("aa").WithLocation(6, 17), 1446Diagnostic(ERRID.WRN_UnusedLocal, "o4").WithArguments("o4").WithLocation(14, 67), 1447Diagnostic(ERRID.WRN_UnusedLocal, "bb").WithArguments("bb").WithLocation(6, 21), 1448Diagnostic(ERRID.WRN_UnusedLocal, "cc").WithArguments("cc").WithLocation(7, 17), 1449Diagnostic(ERRID.WRN_UnusedLocal, "dd").WithArguments("dd").WithLocation(7, 32)) 1917If Diagnostic.Code = ERRID.ERR_MissingRuntimeHelper AndAlso Diagnostic.Arguments(0).Equals("System.Guid..ctor") Then
Emit\EditAndContinue\AssemblyReferencesTests.vb (2)
275Diagnostic(ERRID.ERR_ModuleEmitFailure).WithArguments("C", 346Diagnostic(ERRID.ERR_ModuleEmitFailure).WithArguments("C",
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (5)
8865Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As IEnumerable(Of Integer)", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").WithLocation(6, 30)) 8923Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As IEnumerable(Of Integer)", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").WithLocation(12, 30)) 9094Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As Task(Of Integer)", "System.Runtime.CompilerServices.AsyncStateMachineAttribute").WithLocation(15, 27)) 9171Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As Task(Of Integer)", "System.Runtime.CompilerServices.AsyncStateMachineAttribute").WithLocation(15, 27)) 9210Diagnostic(ERRID.ERR_EncUpdateFailedMissingAttribute, "F").WithArguments("Public Function F() As IEnumerable(Of Integer)", "System.Runtime.CompilerServices.IteratorStateMachineAttribute").WithLocation(5, 30))
Emit\EditAndContinue\EditAndContinueTests.vb (6)
67Diagnostic(ERRID.ERR_NameNotDeclared1, "Unknown").WithArguments("Unknown").WithLocation(4, 17)) 121Diagnostic(ERRID.ERR_TypeInItsInheritsClause1, "Bad").WithArguments("Bad").WithLocation(9, 12)) 5219Diagnostic(ERRID.ERR_PDBWritingFailed).WithArguments("MockSymUnmanagedWriter error message")) 5344Diagnostic(ERRID.ERR_EncReferenceToAddedMember, "X").WithArguments("X", "LibA").WithLocation(8, 14), 5345Diagnostic(ERRID.ERR_EncReferenceToAddedMember, "M").WithArguments("M", "LibA").WithLocation(3, 16)) 5765Diagnostic(ERRID.ERR_AmbiguousInImports2, "Timer").WithArguments("Timer", "System.Threading, System.Timers").WithLocation(7, 21))
Emit\EmitErrorTests.vb (1)
491Diagnostic(ERRID.ERR_CircularEvaluation1, "A").WithArguments("A")
Emit\EntryPointTests.vb (57)
84Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 117Diagnostic(ERRID.ERR_MoreThanOneValidMainWasFound2).WithArguments("a", "C.Main(), C.Main(a As String())")) 179compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("N.M")) 234compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C(Of T).D")) 285compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C")) 288compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("D(Of T).DD")) 291compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("I")) 379CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe.WithMainTypeName("A.B.C")).VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("A.B(Of T).C")) 431compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C(Of T)")) 459compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C")) 530Diagnostic(ERRID.ERR_MoreThanOneValidMainWasFound2).WithArguments("a", "C.Main(), C.Main(a As String())")) 544compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("a")) 645compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("D")) 665Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("C")) 669Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("D")) 673Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("I")) 719compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("C")) 722compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("D")) 725compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("E")) 728compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("F")) 731compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("G.P")) 734compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("G.P.Q")) 771Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 788Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 811Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 827Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 844Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 864Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("a")) 880Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 911Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 927Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 943Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 959Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 975Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 994Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 1013Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 1032Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 1052Diagnostic(ERRID.ERR_MoreThanOneValidMainWasFound2).WithArguments("a", "A.main(args As String()), M1.mAIN()")) 1071Diagnostic(ERRID.ERR_MoreThanOneValidMainWasFound2).WithArguments("a", "A.mAIN(), M1.mAIN()")) 1091Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 1148Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 1168Diagnostic(ERRID.ERR_MoreThanOneValidMainWasFound2).WithArguments("a", "BaseClass.Main(), Derived.Main()")) 1188Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("a")) 1203Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("a")) 1219Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("Main")) 1251Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("Main")) 1285Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("B")) 1288Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("Extension")) 1306Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("i1")) 1309Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("color")) 1312Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("mydelegate")) 1325Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("1")) 1339Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("<")) 1405Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("B")) 1427Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("B")) 1451Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("B")) 1478Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("B"))
Emit\OptionalArgumentsTests.vb (4)
482comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_OmittedArgument2, "DateTimeUsingConstantAttribute").WithArguments("i", "Public Sub DateTimeUsingConstantAttribute(i As Date)")) 681comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_NameNotDeclared1, "p").WithArguments("p")) 1248comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "IntegerWithDateTimeOptionalValue()").WithArguments("Date", "Integer")) 1257Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "StringWithOptionalDateTimeValue()").WithArguments("Date", "String"),
Emit\ResourceTests.vb (13)
192result.Diagnostics.Verify(Diagnostic(ERRID.ERR_UnableToOpenResourceFile1).WithArguments("file", "bad stuff")) 197result.Diagnostics.Verify(Diagnostic(ERRID.ERR_UnableToOpenResourceFile1).WithArguments("file", CodeAnalysisResources.ResourceDataProviderShouldReturnNonNullStream)) 272Diagnostic(ERRID.ERR_UnableToOpenResourceFile1).WithArguments("another.DoTtEd.NAME", New NotSupportedException().Message)) 300Diagnostic(ERRID.ERR_UnableToOpenResourceFile1).WithArguments("some.dotted.NAME", New NotSupportedException().Message)) 392result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DuplicateResourceName1).WithArguments("A")) 678result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DuplicateResourceName1).WithArguments("A")) 688result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DuplicateResourceName1).WithArguments("A")) 715result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DuplicateResourceFileName1).WithArguments("x.goo")) 735result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DuplicateResourceFileName1).WithArguments("netModule1.netmodule")) 796Diagnostic(ERRID.ERR_DuplicateResourceName1).WithArguments("A"), 797Diagnostic(ERRID.ERR_DuplicateResourceFileName1).WithArguments("x.goo")) 809Diagnostic(ERRID.ERR_DuplicateResourceFileName1).WithArguments("x.goo"), 810Diagnostic(ERRID.ERR_DuplicateResourceName1).WithArguments("B"))
ErrorHandling.vb (43)
172compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 173Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 174Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 175Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments(""), 176Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments(""), 177Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments("")) 206compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 207Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 208Diagnostic(ERRID.ERR_ObsoleteOnGotoGosub, ""), 209Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 210Diagnostic(ERRID.ERR_ExpectedExpression, ""), 211Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 212Diagnostic(ERRID.ERR_LabelNotDefined1, "[On]").WithArguments("On"), 213Diagnostic(ERRID.ERR_LabelNotDefined1, "[goto]").WithArguments("goto"), 214Diagnostic(ERRID.ERR_LabelNotDefined1, "[Error]").WithArguments("Error"), 215Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments(""), 216Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments(""), 217Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments(""), 218Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments(""), 219Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments("")) 391compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedSpecifier, "Labels"), 392Diagnostic(ERRID.ERR_ExpectedDeclaration, "sing"), 393Diagnostic(ERRID.ERR_ExpectedEOS, "."), 394Diagnostic(ERRID.ERR_DuplicateProcDef1, "GotoLabelInDifferentMethod").WithArguments("Public Sub GotoLabelInDifferentMethod()"), 395Diagnostic(ERRID.ERR_LabelNotDefined1, "goo").WithArguments("goo"), 396Diagnostic(ERRID.ERR_LabelNotDefined1, "diffMethodLabel").WithArguments("diffMethodLabel"), 397Diagnostic(ERRID.ERR_LabelNotDefined1, "DifferentMethod").WithArguments("DifferentMethod")) 446compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_TryAndOnErrorDoNotMix, ExpectedOutput), 447Diagnostic(ERRID.ERR_TryAndOnErrorDoNotMix, "On Error GoTo goo"), 448Diagnostic(ERRID.ERR_TryAndOnErrorDoNotMix, "On Error GoTo goo"), 449Diagnostic(ERRID.ERR_TryAndOnErrorDoNotMix, ExpectedOutput2) 477compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, ExpectedOutput).WithArguments("Unstructured exception handling").WithLocation(2, 9)) 506compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "a + 1").WithArguments("Late binding").WithLocation(6, 13), 507Diagnostic(ERRID.ERR_PlatformDoesntSupport, "a & ""test""").WithArguments("Late binding").WithLocation(8, 13) 533compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, ExpectedOutput).WithArguments("Like operator").WithLocation(5, 21)) 554compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "Error 1").WithArguments("Unstructured exception handling").WithLocation(4, 18)) 579compilation.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "a + 1").WithArguments("Late binding").WithLocation(6, 40)) 599compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "My").WithArguments("My").WithLocation(3, 13)) 622compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "On Error Goto goo")) 835compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, """3""").WithArguments("String", "Integer"), 836Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "4!").WithArguments("Single", "Integer")) 866compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_LabelNotDefined1, "handler").WithArguments("handler"), 867Diagnostic(ERRID.ERR_OnErrorInSyncLock, "On Error GoTo goo"))
ExpressionTrees\CodeGenExprLambda.vb (41)
1454).VerifyDiagnostics(Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1455Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x")) 1499Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1500Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1501Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1502Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1503Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1504Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1505Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1506Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1507Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1508Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1509Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1510Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1511Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1512Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1513Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1514Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1515Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1516Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1517Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1518Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1519Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1520Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1521Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1522Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1523Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1524Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1525Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1526Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1527Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1528Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1529Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1530Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1531Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1532Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1533Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x"), 1534Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "x")}) 4449Diagnostic(ERRID.WRN_DefAsgUseNullRef, "t3").WithArguments("t3"), 4450Diagnostic(ERRID.WRN_DefAsgUseNullRef, "t1").WithArguments("t1")}) 8650Diagnostic(ERRID.ERR_ExpressionTreeNotSupported, "x.City += ""qq""").WithLocation(39, 25)
PDB\ChecksumTests.vb (9)
72Diagnostic(ERRID.WRN_MultipleDeclFileExtChecksum, "#ExternalChecksum(""bogUs.vb"", ""{406EA660-64CF-4C82-B6F0-42D48172A788}"", ""ab007f1d23d9"")").WithArguments("bogUs.vb"), 73Diagnostic(ERRID.WRN_MultipleDeclFileExtChecksum, "#ExternalChecksum(""bogus1.cs"", ""{406EA660-64CF-4C82-B6F0-42D48172A798}"", ""ab007f1d23d9"")").WithArguments("bogus1.cs"), 74Diagnostic(ERRID.WRN_MultipleDeclFileExtChecksum, "#ExternalChecksum(""bogus1.cs"", ""{406EA660-64CF-4C82-B6F0-42D48172A799}"", ""ab007f1d23d8"")").WithArguments("bogus1.cs") 106Diagnostic(ERRID.WRN_BadChecksumValExtChecksum, """ab007f1d23d"""), 107Diagnostic(ERRID.WRN_BadGUIDFormatExtChecksum, """{406EA660-64CF-4C82-B6F0-42D48172A79}"""), 108Diagnostic(ERRID.WRN_MultipleDeclFileExtChecksum, "#ExternalChecksum(""bogus1.vb"", ""{406EA660-64CF-4C82-B6F0-42D48172A799}"", ""ab007f1d23"")").WithArguments("bogus1.vb"), 109Diagnostic(ERRID.WRN_MultipleDeclFileExtChecksum, "#ExternalChecksum(""bogus1.vb"", ""{406EA660-64CF-4C82-B6F0-42D48172A799}"", """")").WithArguments("bogus1.vb") 150Diagnostic(ERRID.WRN_MultipleDeclFileExtChecksum, "#ExternalChecksum(""bogus1.vb"", ""{406EA660-64CF-4C82-B6F0-42D48172A799}"", ""ab007f1d23"")").WithArguments("bogus1.vb") 177Diagnostic(ERRID.WRN_BadGUIDFormatExtChecksum, """{406EA660-64CF-4C82-B6F0-42D48172A79A}""")
PDB\PDBExternalSourceDirectiveTests.vb (9)
602TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource(""bar1.vb"", 41)"), 603Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource")) 627TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), 628Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), 629Diagnostic(ERRID.ERR_ExpectedDeclaration, "boo")) 655TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"), 656Diagnostic(ERRID.ERR_ExpectedEndExternalSource, "#ExternalSource(""bar1.vb"", 23)"), 657Diagnostic(ERRID.ERR_ExpectedDeclaration, "boo")) 679TestOptions.ReleaseExe).VerifyDiagnostics(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource (""bar1.vb"", 23)"))
PDB\PDBNamespaceScopes.vb (4)
471Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports N.SBad"), 472Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports ZBad = N.SBad"), 473Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports NIBad = N.IBad")) 544Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports X = N.B"))
PDB\PDBTests.vb (6)
34Diagnostic(ERRID.ERR_EncodinglessSyntaxTree, "Class A : End Class").WithLocation(1, 1), 35Diagnostic(ERRID.ERR_EncodinglessSyntaxTree, "Class C : End Class").WithLocation(1, 1)) 199result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DebugEntryPointNotSourceMethodDefinition)) 202result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DebugEntryPointNotSourceMethodDefinition)) 205result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DebugEntryPointNotSourceMethodDefinition)) 208result.Diagnostics.Verify(Diagnostic(ERRID.ERR_DebugEntryPointNotSourceMethodDefinition))
PDB\PDBUsingTests.vb (7)
420Diagnostic(ERRID.WRN_UndefinedOrEmptyProjectNamespaceOrClass1).WithArguments("E.F"), 421Diagnostic(ERRID.WRN_UndefinedOrEmptyProjectNamespaceOrClass1).WithArguments("Q = G.H"), 422Diagnostic(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, "A.B").WithArguments("A.B"), 423Diagnostic(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, "C.D").WithArguments("C.D"), 424Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports A.B"), 425Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports Z = C.D")) 453Diagnostic(ERRID.ERR_InaccessibleSymbol2))
PDB\PortablePdbTests.vb (1)
272Diagnostic(ERRID.ERR_PDBWritingFailed).WithArguments("Error!").WithLocation(1, 1))
XmlLiteralTests.vb (2)
4297VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_TypeDisallowsElements, "objArray.<output>").WithArguments("Object()"), 4298Diagnostic(ERRID.ERR_TypeDisallowsAttributes, "objArray.@someAttrib").WithArguments("Object()"))
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (19)
Binders\PlaceholderLocalBinder.vb (1)
84diagnostics.Add(ERRID.ERR_IllegalChar, identifier.GetLocation())
EvaluationContext.vb (16)
543Select Case CType(diagnostic.Code, ERRID) 544Case ERRID.ERR_DuplicateReference2, 545ERRID.ERR_DuplicateReferenceStrong, 546ERRID.ERR_AmbiguousInUnnamedNamespace1, 547ERRID.ERR_AmbiguousInNamespace2, 548ERRID.ERR_NoMostSpecificOverload2, 549ERRID.ERR_AmbiguousInModules2 557Return GetMissingAssemblyIdentitiesHelper(CType(diagnostic.Code, ERRID), diagnostic.Arguments, Me.Compilation.GlobalNamespace, linqLibrary) 563Friend Shared Function GetMissingAssemblyIdentitiesHelper(code As ERRID, arguments As IReadOnlyList(Of Object), globalNamespace As NamespaceSymbol, linqLibrary As AssemblyIdentity) As ImmutableArray(Of AssemblyIdentity) 567Case ERRID.ERR_UnreferencedAssemblyEvent3, ERRID.ERR_UnreferencedAssembly3 574Case ERRID.ERR_ForwardedTypeUnavailable3 581Case ERRID.ERR_NameNotMember2 595Case ERRID.ERR_UndefinedType1 627Case ERRID.ERR_XmlFeaturesNotAvailable 629Case ERRID.ERR_MissingRuntimeHelper
Rewriters\CapturedVariableRewriter.vb (1)
158_diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_UseOfKeywordNotInInstanceMethod1, syntax.ToString()), syntax.GetLocation()))
SyntaxHelpers.vb (1)
142diagnostics.Add(ERRID.ERR_InvalidFormatSpecifier, Location.None, token)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (24)
LocalsTests.vb (1)
1727Diagnostic(ERRID.ERR_TypeRefResolutionError3, "a").WithArguments("A", "Test.dll").WithLocation(1, 1)
MissingAssemblyTests.vb (21)
27Assert.Same(identity, GetMissingAssemblyIdentities(ERRID.ERR_UnreferencedAssembly3, identity).Single()) 34Assert.Same(identity, GetMissingAssemblyIdentities(ERRID.ERR_UnreferencedAssemblyEvent3, assembly).Single()) 43Assert.Same(identity2, GetMissingAssemblyIdentities(ERRID.ERR_ForwardedTypeUnavailable3, "dummy", assembly1, assembly2).Single()) 44Assert.Same(identity1, GetMissingAssemblyIdentities(ERRID.ERR_ForwardedTypeUnavailable3, "dummy", assembly2, assembly1).Single()) 45Assert.True(GetMissingAssemblyIdentities(ERRID.ERR_ForwardedTypeUnavailable3, "dummy", assembly1).IsDefault) 46Assert.True(GetMissingAssemblyIdentities(ERRID.ERR_ForwardedTypeUnavailable3, "dummy", "dummy", "dummy", assembly1).IsDefault) 51AssertEx.SetEqual(GetMissingAssemblyIdentities(ERRID.ERR_XmlFeaturesNotAvailable), 56Assert.Equal(EvaluationContextBase.SystemCoreIdentity, GetMissingAssemblyIdentities(ERRID.ERR_NameNotMember2, "dummy", "dummy").Single()) 61Assert.Equal(EvaluationContextBase.MicrosoftVisualBasicIdentity, GetMissingAssemblyIdentities(ERRID.ERR_MissingRuntimeHelper).Single()) 68Assert.Same(identity1, GetMissingAssemblyIdentities(ERRID.ERR_UnreferencedAssembly3, identity1, identity2).Single()) 69Assert.Same(identity2, GetMissingAssemblyIdentities(ERRID.ERR_UnreferencedAssembly3, identity2, identity1).Single()) 74Assert.True(GetMissingAssemblyIdentities(ERRID.ERR_UnreferencedAssembly3).IsDefault) 75Assert.True(GetMissingAssemblyIdentities(ERRID.ERR_UnreferencedAssembly3, "Not an assembly").IsDefault) 275Dim actualIdentity = GetMissingAssemblyIdentities(ERRID.ERR_UndefinedType1, {"Windows.Storage"}, globalNamespace).Single() 278actualIdentity = GetMissingAssemblyIdentities(ERRID.ERR_UndefinedType1, {"Global.Windows.Storage"}, globalNamespace).Single() 281actualIdentity = GetMissingAssemblyIdentities(ERRID.ERR_UndefinedType1, {"Global.Windows.Storage.Additional"}, globalNamespace).Single() 286actualIdentity = GetMissingAssemblyIdentities(ERRID.ERR_UndefinedType1, {"Windows.UI.Xaml"}, globalNamespace).Single() 289Assert.True(GetMissingAssemblyIdentities(ERRID.ERR_UndefinedType1, {"Windows.UI.Xaml(Of T)"}, globalNamespace).IsDefault) 529diagnostics.Add(New VBDiagnostic(ErrorFactory.ErrorInfo(ERRID.ERR_UnreferencedAssembly3, missingIdentity, "MissingType"), Location.None)) 706Private Shared Function GetMissingAssemblyIdentities(code As ERRID, ParamArray arguments() As Object) As ImmutableArray(Of AssemblyIdentity) 710Private Shared Function GetMissingAssemblyIdentities(code As ERRID, arguments() As Object, globalNamespace As NamespaceSymbol) As ImmutableArray(Of AssemblyIdentity)
ReferencedModulesTests.vb (2)
757Diagnostic(ERRID.ERR_AmbiguousInNamespace2, "System.Console").WithArguments("Console", "System").WithLocation(3, 25), 758Diagnostic(ERRID.ERR_AmbiguousInNamespace2, "System.Collections.ObjectModel.ReadOnlyDictionary(Of Object, Object)").WithArguments("ReadOnlyDictionary", "System.Collections.ObjectModel").WithLocation(4, 37))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1111)
Binding\Binder_Statements_Tests.vb (18)
1217Diagnostic(ERRID.ERR_ArrayRankLimit, "(,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,)"), 1218Diagnostic(ERRID.ERR_ArrayRankLimit, "(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)"), 1219Diagnostic(ERRID.ERR_ArrayRankLimit, "(,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,)")) 3338CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "While (true)")) 3353CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "While (true)")) 3366CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If (true)")) 3381CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If (true)")) 3395CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"), 3396Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Catch")) 3412CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"), 3413Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Catch")) 3426CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Do")) 3441CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Do")) 3454CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Else")) 3469CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Else")) 3489Diagnostic(ERRID.ERR_CantSpecifyNullableOnBoth, "As Integer?"), 3490Diagnostic(ERRID.ERR_DuplicateLocals1, "A?").WithArguments("A")) 3505CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidUseOfCustomModifier, "Custom"))
Binding\BindingErrorTests.vb (256)
415VerifyDiagnostics(Diagnostic(ERRID.ERR_UndefinedType1, "MyAttribute").WithArguments("MyAttribute")) 543</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_CantRaiseBaseEvent, "MyEvent")) 1167VerifyDiagnostics(Diagnostic(ERRID.ERR_BadAttributeConstructor1, "myattr1").WithArguments("M1.c1()"), 1168Diagnostic(ERRID.ERR_BadAttributeConstructor1, "myattr2").WithArguments("M1.delegate1()")) 1189Diagnostic(ERRID.ERR_ParamArrayWithOptArgs, "s")) 1234Diagnostic(ERRID.ERR_ArrayRankLimit, "(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33)")) 1964</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_RequiredConstExpr, "Foo.FG")) 1991</compilation>, references:={Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_RequiredConstExpr, "(From x In q Select x).Count()")) 2018</compilation>, references:={Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "F1")) 2046</compilation>, references:={Net40.SystemCore}).VerifyDiagnostics({Diagnostic(ERRID.ERR_RequiredConstExpr, "(From x In ""s"" Select x).Count()"), 2047Diagnostic(ERRID.ERR_ObjectReferenceNotSupplied, "Program.F1")}) 2330CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedQueryableSource, "list2").WithArguments("Integer()"), 2331Diagnostic(ERRID.ERR_LValueRequired, "i"), 2332Diagnostic(ERRID.ERR_LValueRequired, "i")) 3058Diagnostic(ERRID.ERR_MissingRuntimeHelper, "P").WithArguments("Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger")) 3210Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "b & c").WithArguments("String", "Byte"), 3211Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "b ^ c").WithArguments("Double", "Byte"), 3212Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "s & t").WithArguments("String", "Short"), 3213Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "s ^ t").WithArguments("Double", "Short"), 3214Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "i & j").WithArguments("String", "Integer"), 3215Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "i ^ j").WithArguments("Double", "Integer"), 3216Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "l & m").WithArguments("String", "Long"), 3217Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "l ^ m").WithArguments("Double", "Long")) 3254Diagnostic(ERRID.ERR_TypeNotExpression1, "Program").WithArguments("Program")) 3835</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_NamedParamNotFound2, "t1").WithArguments("t1", "Public Overloads Sub Foo(y1 As Integer)"), 3836Diagnostic(ERRID.ERR_OmittedArgument2, "Foo").WithArguments("y1", "Public Overloads Sub Foo(y1 As Integer)")) 4879</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "at2").WithArguments("<anonymous type: f2 As String, f1 As Object>", "<anonymous type: f1 As Object, f2 As String>")) 5142CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedEOS, "{"), 5143Diagnostic(ERRID.ERR_TypeMismatch2, "{1, 2, 3}").WithArguments("Integer()", "System.Collections.Generic.List(Of Integer)")) 5158CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "{1, 2, 3}").WithArguments("Integer()", "System.Collections.Generic.List(Of Integer)")) 5536</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "AddressOf EventHandler")) 5580</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_NewOnAbstractClass, "New C1"), 5581Diagnostic(ERRID.ERR_CantThrowNonException, "Throw (New C1)")) 5831</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InaccessibleMember3, "PriSet").WithArguments("AttrRegress001.Attr", "Public Property PriSet As Short", "Private"), 5832Diagnostic(ERRID.ERR_InaccessibleMember3, "ProSet").WithArguments("AttrRegress001.Attr", "Public Property ProSet As Short", "Protected")) 6752</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_BinaryOperands3, "first = second").WithArguments("=", "<anonymous type: a As Integer, b As Integer>", "<anonymous type: a As Integer, b As Integer>"), 6753Diagnostic(ERRID.ERR_BinaryOperands3, "second <> first").WithArguments("<>", "<anonymous type: a As Integer, b As Integer>", "<anonymous type: a As Integer, b As Integer>")) 7637Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S1").WithArguments("String", "Boolean"), 7638Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S2").WithArguments("SByte", "Boolean"), 7639Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S3").WithArguments("Byte", "Boolean"), 7640Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S4").WithArguments("Short", "Boolean"), 7641Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S5").WithArguments("UShort", "Boolean"), 7642Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S6").WithArguments("Integer", "Boolean"), 7643Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S7").WithArguments("UInteger", "Boolean"), 7644Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S8").WithArguments("Long", "Boolean"), 7645Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S9").WithArguments("Short?", "Boolean?"), 7646Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "S10").WithArguments("Integer?", "Boolean?")) 7885Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "New Res()").WithArguments("Res", "T"), 7886Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "New Res()").WithArguments("Res", "T"), 7887Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "New Res()").WithArguments("Res", "T"), 7888Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "New Res()").WithArguments("Res", "T")) 8262Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Foo").WithArguments("Foo", <![CDATA[ 8265Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Foo").WithArguments("Foo", <![CDATA[ 8268Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Foo").WithArguments("Foo", <![CDATA[ 8271Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "tc2").WithArguments("Prop1", <![CDATA[ 8274Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "tc2").WithArguments("Prop1", <![CDATA[ 8277Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "tc3").WithArguments("Prop1", <![CDATA[ 8280Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "tc3").WithArguments("Prop1", <![CDATA[ 8329Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Foo").WithArguments("Foo", <![CDATA[ 8332Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Foo").WithArguments("Foo", <![CDATA[ 8335Diagnostic(ERRID.WRN_SharedMemberThroughInstance, "sc7.E"), 8336Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Foo").WithArguments("Foo", <![CDATA[ 8389compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_NoMostSpecificOverload2, "Foo").WithArguments("Foo", <![CDATA[ 8539Diagnostic(ERRID.ERR_NoGetProperty1, "P()").WithArguments("P"), 8540Diagnostic(ERRID.ERR_NoGetProperty1, "Q()").WithArguments("Q"), 8541Diagnostic(ERRID.ERR_NoGetProperty1, "R()").WithArguments("R"), 8542Diagnostic(ERRID.ERR_NoGetProperty1, "P").WithArguments("P"), 8543Diagnostic(ERRID.ERR_NoGetProperty1, "Q").WithArguments("Q"), 8544Diagnostic(ERRID.ERR_NoGetProperty1, "R").WithArguments("R")) 9012</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ArrayInitializerTooManyDimensions, "{1, ""one""}")) 9029Diagnostic(ERRID.ERR_ArrayInitializerTooManyDimensions, "{1, 2}"), 9030Diagnostic(ERRID.ERR_ArrayInitializerTooManyDimensions, "{3, 4}"), 9031Diagnostic(ERRID.ERR_ArrayInitializerTooManyDimensions, "{5, 6}"), 9032Diagnostic(ERRID.ERR_InitializerTooManyElements1, "{{1, 2}, {3, 4}, {5, 6}}").WithArguments("1"), 9033Diagnostic(ERRID.ERR_InitializerTooFewElements1, "{{{1, 2}, {3, 4}, {5, 6}}}").WithArguments("2")) 9048</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InitializerTooFewElements1, "{4, 5}").WithArguments("1")) 10144Diagnostic(ERRID.ERR_BadAttributePropertyType1, "A").WithArguments("A"), 10145Diagnostic(ERRID.ERR_DoubleToDateConversion, "1.1"), 10146Diagnostic(ERRID.ERR_BadAttributePropertyType1, "A").WithArguments("A"), 10147Diagnostic(ERRID.ERR_DoubleToDateConversion, "1.1")) ' BC30533: Dev10 NOT report 10165</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_PropertyOrFieldNotDefined1, "NotExist").WithArguments("NotExist")) 10427</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_AddOrRemoveHandlerEvent, "Nothing")) 10742CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_CannotConvertValue2, "Asc(vbnullstring)").WithArguments("", "Integer")) 11061Diagnostic(ERRID.ERR_AttributeCannotBeAbstract, "My").WithArguments("MyAttribute"), 11062Diagnostic(ERRID.ERR_BadAttributeNonPublicConstructor, "My")) 11360compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RequiredAttributeConstConversion2, "<a/>").WithArguments("System.Xml.Linq.XElement", "Object")) 11571Diagnostic(ERRID.ERR_CircularInference1, "x").WithArguments("x") 11774compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_AmbiguousWidestType3, "i").WithArguments("i")) 12284compilation1.VerifyDiagnostics(Diagnostic(ERRID.ERR_InAccessibleCoClass3, "New Class1.IFoo(1)").WithArguments("Class1.FooImpl", "Class1.IFoo", "Friend"), 12285Diagnostic(ERRID.ERR_InAccessibleCoClass3, "New Class1.IFoo(Nothing)").WithArguments("Class1.FooImpl", "Class1.IFoo", "Friend")) 12311</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_MissingValuesForArraysInApplAttrs, "{}")) 13764Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "arr1(0)").WithArguments("Integer"), 13765Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "arr2(0)").WithArguments("Integer")) 14045Diagnostic(ERRID.ERR_NoPartialMethodInAddressOf1, "Me.Foo").WithArguments("Private Sub Foo()"), 14046Diagnostic(ERRID.ERR_TypeMismatch2, "New Action(AddressOf Me.Foo)").WithArguments("System.Action", "C1.xEventHandler"), 14047Diagnostic(ERRID.ERR_NoPartialMethodInAddressOf1, "Me.Foo").WithArguments("Private Sub Foo()"), 14048Diagnostic(ERRID.ERR_TypeMismatch2, "New Action(AddressOf Me.Foo)").WithArguments("System.Action", "C1.xEventHandler")) 14097</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_BadAttributeSharedProperty1, "SharedField").WithArguments("SharedField"), 14098Diagnostic(ERRID.ERR_BadAttributeSharedProperty1, "ConstField").WithArguments("ConstField")) ' Dev10: 31510 14153</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_BadAttributeReadOnlyProperty1, "RP").WithArguments("RP")) 14236</compilation>, s_badAttributeIl).VerifyDiagnostics(Diagnostic(ERRID.ERR_BadAttributeReadOnlyProperty1, "PROP").WithArguments("PROP")) 14264Diagnostic(ERRID.ERR_BadAttributeNonPublicProperty1, "Field").WithArguments("Field"), 14265Diagnostic(ERRID.ERR_BadAttributeNonPublicProperty1, "Prop").WithArguments("Prop") 14646</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_NameNotDeclared1, "E").WithArguments("E"), 14647Diagnostic(ERRID.ERR_AttrAssignmentNotFieldOrProp1, "E").WithArguments("E"), 14648Diagnostic(ERRID.ERR_AttrAssignmentNotFieldOrProp1, "S").WithArguments("S"), 14649Diagnostic(ERRID.ERR_AttrAssignmentNotFieldOrProp1, "F!").WithArguments("F")) 14785</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_NamedArgAlsoOmitted2, "Y").WithArguments("Y", "Public Sub foo(X As Byte, [Y As Byte = 0], [Z As Byte = 0])")) 15799Diagnostic(ERRID.ERR_AddressOfNullableMethod, "x.GetValueOrDefault").WithArguments("Integer?", "AddressOf"), 15800Diagnostic(ERRID.ERR_AddressOfNullableMethod, "x.GetValueOrDefault").WithArguments("Integer?", "AddressOf")) 15987compilation1.VerifyDiagnostics(Diagnostic(ERRID.ERR_CopyBackTypeMismatch3, "o").WithArguments("x", "Integer", "c2")) 16008Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i = 1 To v").WithArguments("S1", "+"), 16009Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i = 1 To v").WithArguments("S1", "-"), 16010Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i = 1 To v").WithArguments("S1", "<="), 16011Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i = 1 To v").WithArguments("S1", ">="), 16012Diagnostic(ERRID.WRN_DefAsgUseNullRef, "v").WithArguments("v")) 16044Diagnostic(ERRID.ERR_UnacceptableForLoopOperator2, "For i As C1(Of Integer) = 1 To 10").WithArguments("Public Shared Operator -(p1 As M1.C1(Of Integer), p2 As M1.C1(Of Integer)) As M1.C1(Of Short)", "M1.C1(Of Integer)"), 16045Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i As C1(Of Integer) = 1 To 10").WithArguments("M1.C1(Of Integer)", "<="), 16046Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i As C1(Of Integer) = 1 To 10").WithArguments("M1.C1(Of Integer)", ">=")) 16118</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_BadAttributeConstructor2, "MyAttr").WithArguments("Integer")) 16678</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_DelegateBindingTypeInferenceFails, "Foo")) 16693</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_AnonymousTypeNeedField, "{")) 16742</compilation>, {Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_NamedArgAlsoOmitted3, "Y").WithArguments("Y", "Public Sub ABC([Y As Byte = 0], [Z As Byte = 0])", "M")) 16762</compilation>, {Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_NamedArgUsedTwice3, "Y").WithArguments("Y", "Public Sub ABC(Y As Byte, [Z As Byte = 0])", "M"), 16763Diagnostic(ERRID.ERR_NamedArgUsedTwice3, "Y").WithArguments("Y", "Public Sub ABC(Y As Byte, [Z As Byte = 0])", "M")) 16792</compilation>, {Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_QueryOperatorNotFound, "Group Join").WithArguments("GroupJoin")) 16952Diagnostic(ERRID.ERR_QueryAnonymousTypeFieldNameInference, "Nothing"), 16953Diagnostic(ERRID.ERR_ExpectedProcedure, "From x In {""""} Select x, Nothing")) ' Extra in Roslyn & NOT in vbc 16982Diagnostic(ERRID.ERR_QueryDuplicateAnonTypeMemberName1, "Bar").WithArguments("Bar")) 17191</compilation>, {Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeCharOnAggregation, "Bar$"), 17192Diagnostic(ERRID.ERR_QueryAnonymousTypeDisallowsTypeChar, "Bar$")) 17312</compilation>, {Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17313Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17314Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17315Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17316Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17317Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17318Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17319Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17320Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17321Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17322Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17323Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17324Diagnostic(ERRID.ERR_QueryDuplicateAnonTypeMemberName1, "implicit").WithArguments("implicit"), 17325Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17326Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17327Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17328Diagnostic(ERRID.ERR_QueryDuplicateAnonTypeMemberName1, "implicit").WithArguments("implicit"), 17329Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17330Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17331Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17332Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17333Diagnostic(ERRID.WRN_DefAsgUseNullRef, "jj").WithArguments("jj"), 17334Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17335Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17336Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17337Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17338Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17339Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17340Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17341Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17342Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17343Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17344Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17345Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17346Diagnostic(ERRID.ERR_QueryDuplicateAnonTypeMemberName1, "implicit").WithArguments("implicit"), 17347Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17348Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17349Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17350Diagnostic(ERRID.ERR_QueryDuplicateAnonTypeMemberName1, "implicit").WithArguments("implicit"), 17351Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17352Diagnostic(ERRID.ERR_QueryOperatorNotFound, "implicit").WithArguments("implicit"), 17353Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17354Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"), 17355Diagnostic(ERRID.WRN_DefAsgUseNullRef, "jj").WithArguments("jj"), 17356Diagnostic(ERRID.WRN_DefAsgUseNullRef, "implicit").WithArguments("implicit")) 17495Diagnostic(ERRID.ERR_CannotLiftRestrictedTypeLambda, "x").WithArguments("System.ArgIterator")) 17546Diagnostic(ERRID.ERR_LambdaParamShadowLocal1, "x").WithArguments("x") 17563Diagnostic(ERRID.ERR_StrictDisallowImplicitObjectLambda, "y") 17654Diagnostic(ERRID.ERR_DelegateBindingMismatchStrictOff2, "System.Console.Read").WithArguments("Public Shared Overloads Function Read() As Integer", "AnonymousType Function <generated method>() As String")) 17686Diagnostic(ERRID.ERR_AccessMismatch6, "PrivateType").WithArguments("name", "TestClass.PrivateType", "namespace", "<Default>", "class", "TestClass"), 17687Diagnostic(ERRID.ERR_AccessMismatch6, "PrivateType").WithArguments("prop", "TestClass.PrivateType", "namespace", "<Default>", "class", "TestClass"), 17688Diagnostic(ERRID.ERR_AccessMismatch6, "PrivateType").WithArguments("foo", "TestClass.PrivateType", "namespace", "<Default>", "class", "TestClass"), 17689Diagnostic(ERRID.ERR_InaccessibleReturnTypeOfMember2, "tc.name").WithArguments("Public TestClass.name As TestClass.PrivateType"), 17690Diagnostic(ERRID.ERR_InaccessibleReturnTypeOfMember2, "tc.foo").WithArguments("Public Function TestClass.foo() As TestClass.PrivateType"), 17691Diagnostic(ERRID.ERR_InaccessibleReturnTypeOfMember2, "tc.prop").WithArguments("Public Property TestClass.prop As TestClass.PrivateType")) 17708Diagnostic(ERRID.ERR_LocalNamedSameAsParamInLambda1, "y").WithArguments("y") 17732</compilation>, {Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_LambdaBindingMismatch2, 17757Diagnostic(ERRID.ERR_StatementLambdaInExpressionTree, <![CDATA[Function() 17790Diagnostic(ERRID.ERR_DelegateBindingMismatchStrictOff3, "o.moo(Of Integer)").WithArguments("Public Function moo(Of Integer)(y As Integer) As String", "Delegate Function M.del1g(Of String)(x As String) As String", "m1")) 17907Diagnostic(ERRID.ERR_LambdaTooManyTypesObjectDisallowed, "Function(a As Integer)") 17923Diagnostic(ERRID.ERR_LambdaNoType, "Function()")) 18395Diagnostic(ERRID.ERR_LambdaNoTypeObjectDisallowed, "Function()"), 18396Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("<anonymous method>") 19120Diagnostic(ERRID.WRN_SharedMemberThroughInstance, "1")) 19571Diagnostic(ERRID.WRN_DuplicateCatch, "Catch ex As Exception").WithArguments("System.Exception")) 20690VerifyDiagnostics(Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "b").WithArguments("b"), 20691Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "c").WithArguments("c"), 20692Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "d").WithArguments("d"), 20693Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "e").WithArguments("e"), 20694Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "f").WithArguments("f"), 20695Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "g").WithArguments("g")) 20751VerifyDiagnostics(Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "a").WithArguments("a"), 20752Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "b").WithArguments("b"), 20753Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "c").WithArguments("c"), 20754Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "d").WithArguments("d"), 20755Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "e").WithArguments("e"), 20756Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "f").WithArguments("f"), 20757Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "g").WithArguments("g")) 20872</compilation>).VerifyDiagnostics(Diagnostic(ERRID.WRN_LambdaPassedToRemoveHandler, "Function(m As Integer) m")) 20889</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_WithEventsAsStruct, "e"), 20890Diagnostic(ERRID.ERR_WithEventsAsStruct, "e1"), 20891Diagnostic(ERRID.ERR_WithEventsAsStruct, "e2")) 21262VerifyDiagnostics(compilation, Diagnostic(ERRID.WRN_DefAsgNoRetValFuncVal1, "End Function").WithArguments("<anonymous method>")) 23547VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExpectedCase, "ca"), 23548Diagnostic(ERRID.ERR_NameNotDeclared1, "ca").WithArguments("ca")) 23577VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExpectedSpecifier, "MAIN()"), 23578Diagnostic(ERRID.ERR_ExpectedDeclaration, "sharSub"), 23579Diagnostic(ERRID.ERR_ExpectedDeclaration, "lists"), 23580Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock item"), 23581Diagnostic(ERRID.ERR_EndSyncLockNoSyncLock, "End SyncLock"), 23582Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return item.ToString() = """""), 23583Diagnostic(ERRID.ERR_InvalidEndFunction, "End Function"), 23584Diagnostic(ERRID.ERR_ExpectedEOS, ")"), 23585Diagnostic(ERRID.ERR_InvalidEndSub, "End Sub"), 23586Diagnostic(ERRID.WRN_UndefinedOrEmptyNamespaceOrClass1, "System.Linq").WithArguments("System.Linq"), 23587Diagnostic(ERRID.ERR_UndefinedType1, "myattribute1").WithArguments("myattribute1"), 23588Diagnostic(ERRID.ERR_UndefinedType1, "List(Of myattribute1)").WithArguments("List"), 23589Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System.Linq")) 23606VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_Syntax, """"""), 23607Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return lab1"), 23608Diagnostic(ERRID.ERR_InvalidEndFunction, "End Function"), 23609Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return item.ToString() = """""), 23610Diagnostic(ERRID.ERR_InvalidEndFunction, "End Function"), 23611Diagnostic(ERRID.ERR_ExpectedEOS, ")"), 23612Diagnostic(ERRID.ERR_InvalidEndSub, "End Sub")) 23636VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_CaseNoSelect, "Case ""b""")) 23661VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_CaseNoSelect, "Case ""a"""), 23662Diagnostic(ERRID.ERR_CaseNoSelect, "Case ""b""")) 23679VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return Nothing"), 23680Diagnostic(ERRID.ERR_InvalidEndSub, "End sub")) 23698Diagnostic(ERRID.ERR_CircularEvaluation1, "X").WithArguments("X"), 23699Diagnostic(ERRID.WRN_DefAsgUseNullRef, "X").WithArguments("X")) 23722Diagnostic(ERRID.ERR_UseOfLocalBeforeDeclaration1, "Z").WithArguments("Z"), 23723Diagnostic(ERRID.ERR_UseOfLocalBeforeDeclaration1, "c").WithArguments("c")) 23744Diagnostic(ERRID.ERR_UseOfLocalBeforeDeclaration1, "Z").WithArguments("Z"), 23745Diagnostic(ERRID.ERR_RequiredConstConversion2, "2").WithArguments("Integer", "Object"), 23746Diagnostic(ERRID.ERR_RequiredConstConversion2, "1").WithArguments("Integer", "Object")) 23767Diagnostic(ERRID.ERR_UseOfLocalBeforeDeclaration1, "Y").WithArguments("Y"), 23768Diagnostic(ERRID.ERR_CircularEvaluation1, "Y").WithArguments("Y"), 23769Diagnostic(ERRID.ERR_CircularEvaluation1, "Z").WithArguments("Z"), 23770Diagnostic(ERRID.WRN_DefAsgUseNullRef, "Y").WithArguments("Y"), 23771Diagnostic(ERRID.WRN_DefAsgUseNullRef, "Z").WithArguments("Z")) 24213options:=TestOptions.ReleaseDll.WithEmbedVbCoreRuntime(True)).VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeClashesWithVbCoreType4, "HideModuleNameAttribute").WithArguments("class", "HideModuleNameAttribute", "class", "HideModuleNameAttribute"), 24214Diagnostic(ERRID.ERR_UndefinedType1, "Attribute").WithArguments("Attribute"), 24215Diagnostic(ERRID.ERR_OverrideNotNeeded3, "TypeId").WithArguments("property", "TypeId"))
Binding\ForEachTests.vb (12)
1418Diagnostic(ERRID.ERR_ExpectedIn, ""), 1419Diagnostic(ERRID.ERR_Syntax, ",")) 1447Diagnostic(ERRID.ERR_ExpectedIn, ""), 1448Diagnostic(ERRID.ERR_Syntax, "=")) 3853CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For Each i In """""), 3854Diagnostic(ERRID.ERR_NextNoMatchingFor, "Next")) 3870CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For Each i In """""), 3871Diagnostic(ERRID.ERR_NextNoMatchingFor, "Next")) 3942CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For i As Integer = 1 To 100"), 3943Diagnostic(ERRID.ERR_NextNoMatchingFor, "Next")) 3959CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For i As Integer = 1 To 100"), 3960Diagnostic(ERRID.ERR_NextNoMatchingFor, "Next"))
Binding\GenericsTests.vb (5)
226compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_UndefinedType1, "CScen5b").WithArguments("CScen5b")) 245compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RestrictedType1, "RuntimeArgumentHandle()").WithArguments("System.RuntimeArgumentHandle")) 267compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RecordCycle2, "enumerator").WithArguments("s2", 335compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_WithEventsAsStruct, "x2")) 399Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports Tuple = System.Tuple"))
Binding\GotoTests.vb (51)
93</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 94Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments("")) 111</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedEOS, "+"), 112Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 113Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 114Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments(""), 115Diagnostic(ERRID.ERR_LabelNotDefined1, "").WithArguments("")) 132Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "GoTo Labl"), 133Diagnostic(ERRID.ERR_InvOutsideProc, "Lab1:")) 149Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "goto Labl"), 150Diagnostic(ERRID.ERR_InvOutsideProc, "Lab1:"), 151Diagnostic(ERRID.ERR_InvalidInNamespace, "const x = 1"), 152Diagnostic(ERRID.ERR_InvalidInNamespace, "const y = 2")) 164Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "goto Labl"), 165Diagnostic(ERRID.ERR_InvOutsideProc, "Lab1:")) 184</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedEOS, ",")) 207</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "100"), 208Diagnostic(ERRID.ERR_LabelNotDefined1, "100").WithArguments("100")) 229</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "100"), 230Diagnostic(ERRID.ERR_LabelNotDefined1, "100").WithArguments("100")) 249</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_NameNotDeclared1, "lab2").WithArguments("lab2")) 270</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedCase, "label1:")) 288</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_LabelNotDefined1, "label1").WithArguments("label1")) 306</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_GotoIntoFor, "Label").WithArguments("Label")) 327</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_LabelNotDefined1, "label2").WithArguments("label2")) 429</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "11"), 430Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "12"), 431Diagnostic(ERRID.ERR_Syntax, "16F"), 432Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "17"), 433Diagnostic(ERRID.ERR_Syntax, "19I"), 434Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "21"), 435Diagnostic(ERRID.ERR_Syntax, "23L"), 436Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "24"), 437Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "25"), 438Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "26"), 439Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "27"), 440Diagnostic(ERRID.ERR_Syntax, "31S"), 441Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "32"), 442Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "33"), 443Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "34"), 444Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "35"), 445Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "36"), 446Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "37"), 447Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "38")) 474</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_Syntax, "14D"), 475Diagnostic(ERRID.ERR_InvalidLiteralExponent, "15E"), 476Diagnostic(ERRID.ERR_Syntax, "16F"), 477Diagnostic(ERRID.ERR_Syntax, "19I"), 478Diagnostic(ERRID.ERR_Syntax, "23L"), 479Diagnostic(ERRID.ERR_Syntax, "29R"), 480Diagnostic(ERRID.ERR_Syntax, "31S"))
Binding\ImplicitVariableTests.vb (7)
131Diagnostic(ERRID.WRN_DefAsgUseNullRef, "x").WithArguments("x"), 132Diagnostic(ERRID.WRN_DefAsgUseNullRef, "Y").WithArguments("y")) 750Diagnostic(ERRID.WRN_DefAsgUseNullRef, "y").WithArguments("y"), 751Diagnostic(ERRID.WRN_DefAsgUseNullRef, "x").WithArguments("x")) 777Diagnostic(ERRID.WRN_DefAsgUseNullRef, "y").WithArguments("y"), 778Diagnostic(ERRID.WRN_DefAsgUseNullRef, "x").WithArguments("x"), 779Diagnostic(ERRID.WRN_DefAsgUseNullRef, "z").WithArguments("z"))
Binding\LookupTests.vb (7)
70r4.SetFrom(SingleLookupResult.Inaccessible(sym2, New BadSymbolDiagnostic(sym2, ERRID.ERR_InaccessibleSymbol2, sym2))) 77Assert.Equal(ERRID.ERR_InaccessibleSymbol2, diag4.Code) 81r5.SetFrom(SingleLookupResult.WrongArity(sym3, ERRID.ERR_IndexedNotArrayOrProc)) 88Assert.Equal(ERRID.ERR_IndexedNotArrayOrProc, diag5.Code) 162Assert.Equal(ERRID.ERR_InaccessibleSymbol2, diag13.Code) 174Assert.Equal(ERRID.ERR_InaccessibleSymbol2, diag14.Code) 229Return New AmbiguousSymbolDiagnostic(ERRID.ERR_AmbiguousInModules2, syms, New FormattedSymbolList(syms.AsEnumerable))
Binding\SyncLockTests.vb (34)
25</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "(1.0)").WithArguments("Double"), 26Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "(x)").WithArguments("Decimal")) 67</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "x").WithArguments("T"), 68Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "x").WithArguments("T")) 105</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedEOS, "As"), 106Diagnostic(ERRID.ERR_NameNotDeclared1, "d").WithArguments("d")) 143</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExitWhileNotWithinWhile, "Exit While"), 144Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("<anonymous method>")) 182</compilation>, {TestMetadata.Net40.SystemCore}).VerifyDiagnostics(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "syncroot.PrintInt()").WithArguments("Integer"), 183Diagnostic(ERRID.ERR_VoidValue, "syncroot.PrintVoid"), 184Diagnostic(ERRID.WRN_DefAsgUseNullRef, "syncroot").WithArguments("syncroot")) 207</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "p1.p1").WithArguments("Decimal")) 235</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "Me").WithArguments("S1"), 236Diagnostic(ERRID.WRN_DefAsgNoRetValPropVal1, "End Get").WithArguments("MyProperty"), 237Diagnostic(ERRID.ERR_UseOfKeywordNotInInstanceMethod1, "Me").WithArguments("Me"), 238Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "Value").WithArguments("Integer")) 259</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedEOS, ","), 260Diagnostic(ERRID.ERR_ExpectedEOS, ","), 261Diagnostic(ERRID.ERR_ExpectedEOS, ","), 262Diagnostic(ERRID.ERR_NameNotDeclared1, "x").WithArguments("x"), 263Diagnostic(ERRID.ERR_NameNotDeclared1, "i").WithArguments("i")) 281</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedExpression, ""), 282Diagnostic(ERRID.ERR_ExpectedExpression, "")) 337Diagnostic(ERRID.ERR_CaseElseNoSelect, "Case Else"), 338Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System")) 380</compilation>).VerifyDiagnostics(Diagnostic(ERRID.WRN_DefAsgUseNullRef, "myLock").WithArguments("myLock")) 400</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedEndTry, "Try"), 401Diagnostic(ERRID.ERR_EndTryNoTry, "End Try")) 413</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock Nothing"), 414Diagnostic(ERRID.ERR_EndSyncLockNoSyncLock, "End SyncLock")) 428</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock New Object()"), 429Diagnostic(ERRID.ERR_EndSyncLockNoSyncLock, "End SyncLock")) 445</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ElseNoMatchingIf, "Else")) 474Diagnostic(ERRID.ERR_CaseElseNoSelect, "Case Else"))
Binding\UsingTests.vb (43)
1004VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1005Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1006Diagnostic(ERRID.ERR_ClassNotExpression1, "System.Exception").WithArguments("System.Exception"), 1007Diagnostic(ERRID.ERR_ClassNotExpression1, "M1").WithArguments("M1"), 1008Diagnostic(ERRID.ERR_NameNotDeclared1, "E1").WithArguments("E1"), 1009Diagnostic(ERRID.ERR_VoidValue, "Main()"), 1010Diagnostic(ERRID.ERR_VoidValue, "AddressOf main"), 1011Diagnostic(ERRID.ERR_NameNotDeclared1, "C1").WithArguments("C1")) 1028VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "obj").WithArguments("T")) 1054VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "mnObj = New MyManagedClass1()").WithArguments("MyManagedClass1"), 1055Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "mnObj1 As String = ""123""").WithArguments("String")) 1084Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "mnObj").WithArguments("MyManagedClass?"), 1085Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "mnObj1 As Nullable(Of MyManagedClass) = Nothing").WithArguments("MyManagedClass?"), 1086Diagnostic(ERRID.WRN_MutableStructureInUsing, "mnObj1 As Nullable(Of MyManagedClass) = Nothing").WithArguments("mnObj1")) 1196VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_GotoIntoUsing, "label5").WithArguments("label5")) 1339VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_ExpectedQueryableSource, "objs").WithArguments("System.Collections.Generic.List(Of MyManagedClass)"), 1340Diagnostic(ERRID.ERR_InitWithMultipleDeclarators, "goo3, goo4 = x"), 1341Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "goo3"), 1342Diagnostic(ERRID.ERR_UsingResourceVarNeedsInitializer, "goo3"), 1343Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "goo3").WithArguments("Object")) 1447VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_ExpectedExpression, ""), 1448Diagnostic(ERRID.ERR_InvalidEndFunction, "End Function"), 1449Diagnostic(ERRID.ERR_StrictDisallowImplicitObjectLambda, "x"), 1450Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "Function(x) x").WithArguments("Function <generated method>(x As Object) As Object"), 1451Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "Function()").WithArguments("Function <generated method>() As ?"), 1452Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "Function(x As MyManagedClass) x").WithArguments("Function <generated method>(x As MyManagedClass) As MyManagedClass")) 1471VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "c = New With {Key.p1 = 10.0, Key.p2 = ""a""c}").WithArguments("<anonymous type: Key p1 As Double, Key p2 As Char>")) 1497VerifyDiagnostics(compilation, Diagnostic(ERRID.WRN_MutableGenericStructureInUsing, "t1 As T = DirectCast(Function(tt As T) x, D1(Of T))(x)").WithArguments("t1")) 1540Diagnostic(ERRID.ERR_InvalidConstructorCall, "MyBase.New"), 1541Diagnostic(ERRID.ERR_InvalidConstructorCall, "MyBase.New"), 1542Diagnostic(ERRID.ERR_InvalidConstructorCall, "MyBase.New")) 1605VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 1606Diagnostic(ERRID.ERR_InitWithMultipleDeclarators, "x, = New MyManagedClass"), 1607Diagnostic(ERRID.ERR_UsingResourceVarNeedsInitializer, "x")) 1641VerifyDiagnostics(compilation1, Diagnostic(ERRID.ERR_ExpectedQueryableSource, "objs").WithArguments("System.Collections.Generic.List(Of MyManagedClass)"), 1642Diagnostic(ERRID.ERR_InitWithMultipleDeclarators, "goo3, goo4 = x"), 1643Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "goo3"), 1644Diagnostic(ERRID.ERR_UsingResourceVarNeedsInitializer, "goo3"), 1645Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "goo3").WithArguments("Object")) 1659</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using Nothing"), 1660Diagnostic(ERRID.ERR_EndUsingWithoutUsing, "End Using")) 1672</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using Nothing"), 1673Diagnostic(ERRID.ERR_EndUsingWithoutUsing, "End Using"))
Compilation\CompilationAPITests.vb (18)
216Dim arg = New LocalizableErrorArgument(ERRID.IDS_ProjectSettingsLocationName) 505Diagnostic(ERRID.ERR_InvalidDebugInformationFormat).WithArguments("-1"), 506Diagnostic(ERRID.ERR_InvalidOutputName).WithArguments("Name cannot start with whitespace."), 507Diagnostic(ERRID.ERR_InvalidFileAlignment).WithArguments("513"), 508Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments("1000000.-1000000"), 509Diagnostic(ERRID.ERR_InvalidHashAlgorithmName).WithArguments("invalid hash algorithm name")) 521Diagnostic(ERRID.ERR_InvalidHashAlgorithmName).WithArguments("")) 888assembly.VerifyDiagnostics(Diagnostic(ERRID.ERR_MissingNetModuleReference).WithArguments("missing1.netmodule")) 986Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System.Runtime.InteropServices")})}) 1167Assert.Equal(comp.GetDiagnostics().First().Code, ERRID.ERR_MetaDataIsNotAssembly) 1173Assert.Equal(comp.GetDiagnostics().First().Code, ERRID.ERR_MetaDataIsNotModule) 2158compilation.VerifyDiagnostics(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").WithLocation(3, 20)) 2165entryPoint.Diagnostics.Verify(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").WithLocation(3, 20)) 2199compilation.VerifyDiagnostics(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").WithLocation(3, 20)) 2206entryPoint.Diagnostics.Verify(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").WithLocation(3, 20)) 2463c5.VerifyDiagnostics(Diagnostic(ERRID.ERR_UndefinedType1, "C").WithArguments("C").WithLocation(1, 40)) 2477c.VerifyDiagnostics(Diagnostic(ERRID.ERR_LinkedNetmoduleMetadataMustProvideFullPEImage).WithArguments("ModuleCS00").WithLocation(1, 1)) 2674Diagnostic(ERRID.ERR_UndefinedType1, "X").WithArguments("X"))
Compilation\ReferenceManagerTests.vb (13)
493Diagnostic(ERRID.ERR_NameNotMember2, "r.Dict").WithArguments("Dict", "R"), 494Diagnostic(ERRID.ERR_SxSIndirectRefHigherThanDirectRef3, "r.Goo(Nothing, Nothing)").WithArguments("B", "2.0.0.0", "1.0.0.0")) 663Diagnostic(ERRID.ERR_DuplicateReferenceStrong).WithArguments(Net451.System.Display, Net20.System.Display)) 923Diagnostic(ERRID.ERR_UndefinedType1, "C1").WithArguments("C1")) 1016Diagnostic(ERRID.ERR_DuplicateReference2).WithArguments("Culture", "EN-US"), 1017Diagnostic(ERRID.ERR_ExpectedEOS, "a"), 1018Diagnostic(ERRID.ERR_ExpectedEOS, "b")) 1185Diagnostic(ERRID.ERR_DuplicateReferenceStrong).WithArguments("System.v4_0_30319.dll", "System.v2_0_50727.dll")) 1629Diagnostic(ERRID.ERR_BadMetaDataReference1).WithArguments("NativeApp.exe", CodeAnalysisResources.PEImageDoesntContainManagedMetadata)) 1646Diagnostic(ERRID.ERR_BadMetaDataReference1).WithArguments("Empty.dll", CodeAnalysisResources.PEImageDoesntContainManagedMetadata)) 1795Diagnostic(ERRID.ERR_UnreferencedAssembly3, "A").WithArguments("D, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "D")) 1821Diagnostic(ERRID.ERR_UnreferencedAssembly3, "A").WithArguments("B, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "D")) 1923Diagnostic(ERRID.ERR_SxSIndirectRefHigherThanDirectRef3, "A").WithArguments("B", "2.0.0.0", "1.0.0.0"))
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (4)
2115Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 2116Diagnostic(ERRID.ERR_IllegalChar, "$"), 2117Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 2118Diagnostic(ERRID.ERR_IllegalChar, "$"))
Compilation\VisualBasicCompilationOptionsTests.vb (21)
420Diagnostic(ERRID.WRN_UnusedLocal, "x").WithArguments("x"), 421Diagnostic(ERRID.WRN_UnusedLocal, "y").WithArguments("y"), 422Diagnostic(ERRID.WRN_UnusedLocalConst, "z").WithArguments("z"), 423Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo")) 438Diagnostic(ERRID.WRN_UnusedLocalConst, "z").WithArguments("z"), 439Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo")) 448comp.VerifyDiagnostics(Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo")) 455Diagnostic(ERRID.WRN_UnusedLocal, "x").WithArguments("x").WithWarningAsError(True), 456Diagnostic(ERRID.WRN_UnusedLocal, "y").WithArguments("y").WithWarningAsError(True), 457Diagnostic(ERRID.WRN_UnusedLocalConst, "z").WithArguments("z").WithWarningAsError(True), 458Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo").WithWarningAsError(True)) 467Diagnostic(ERRID.WRN_UnusedLocal, "x").WithArguments("x"), 468Diagnostic(ERRID.WRN_UnusedLocal, "y").WithArguments("y"), 469Diagnostic(ERRID.WRN_UnusedLocalConst, "z").WithArguments("z"), 470Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo").WithWarningAsError(True)) 480Diagnostic(ERRID.WRN_UnusedLocal, "x").WithArguments("x"), 481Diagnostic(ERRID.WRN_UnusedLocal, "y").WithArguments("y"), 482Diagnostic(ERRID.WRN_UnusedLocalConst, "z").WithArguments("z").WithWarningAsError(True), 483Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo").WithWarningAsError(True)) 492Diagnostic(ERRID.WRN_UnusedLocalConst, "z").WithArguments("z").WithWarningAsError(True), 493Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo").WithWarningAsError(True))
Diagnostics\DiagnosticAnalyzerTests.vb (1)
478Dim missingResource = [Enum].GetName(GetType(ERRID), id) & "_Title"
Diagnostics\DiagnosticTests.vb (42)
20ERRID.Void, 21ERRID.Unknown, 22ERRID.ERR_None, 23ERRID.ERR_CannotUseGenericBaseTypeAcrossAssemblyBoundaries, ' Not reported. See ImportsBinder.ShouldReportUseSiteErrorForAlias. 24ERRID.ERR_NextAvailable, 25ERRID.WRN_NextAvailable, 26ERRID.HDN_NextAvailable, 27ERRID.IDS_NextAvailable 29For Each id As ERRID In [Enum].GetValues(GetType(ERRID)) 34If id >= ERRID.FEATURE_AutoProperties Then 48Dim values = [Enum].GetValues(GetType(ERRID)) 49Dim [set] = New HashSet(Of ERRID) 50For Each id As ERRID In values 62Dim [set] = New HashSet(Of ERRID) 74Const WarningsStart = ERRID.WRN_UseOfObsoleteSymbol2 75Const HiddenInfoStart = ERRID.HDN_UnusedImportClause 76Const IdsStart = ERRID.IDS_ProjectSettingsLocationName 77Const FeatureStart = ERRID.FEATURE_AutoProperties 79Dim legacyWarningsInErrorRange = {ERRID.WRN_BadSwitch, ERRID.WRN_NoConfigInResponseFile, ERRID.FTL_InvalidInputFileName, ERRID.WRN_IgnoreModuleManifest, ERRID.WRN_BadUILang} 81For Each errObj In [Enum].GetValues(GetType(ERRID)) 82Dim err = DirectCast(errObj, ERRID) 85Case ERRID.Void, ERRID.Unknown 88Case <= ERRID.ERR_NextAvailable 98Case WarningsStart To ERRID.WRN_NextAvailable 104Case HiddenInfoStart To ERRID.HDN_NextAvailable 111Case IdsStart To ERRID.IDS_NextAvailable 126Return $"Error {str} should use {ERRID.ERR_NextAvailable} and increment the value." 128Return $"Warning {str} should use {ERRID.WRN_NextAvailable} and increment the value." 130Return $"Hidden or info diagnostic {str} should use {ERRID.HDN_NextAvailable} and increment the value." 132Return $"Id {str} should use {ERRID.IDS_NextAvailable} and increment the value." 134Return $"Feature code should go at the end of {NameOf(ERRID)}" 142For Each errObj In [Enum].GetValues(GetType(ERRID)) 143Dim err = DirectCast(errObj, ERRID) 151Case ERRID.ERR_TypeRefResolutionError3, 152ERRID.ERR_MissingRuntimeHelper, 153ERRID.ERR_CannotGotoNonScopeBlocksWithClosure
Diagnostics\OperationAnalyzerTests.vb (51)
234comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(60, 17), 235Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(68, 1), 236Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(74, 22)) 809comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedQualifiedNameInInit, "").WithLocation(20, 32)) 955Diagnostic(ERRID.ERR_ExpectedIdentifier, "").WithLocation(11, 21), 956Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(12, 35), 957Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(12, 35), 958Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(12, 35), 959Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(12, 35), 960Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(13, 31), 961Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(13, 31), 962Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(13, 31), 963Diagnostic(ERRID.ERR_UndefinedType1, "UndefType").WithArguments("UndefType").WithLocation(13, 31)) 1073comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(60, 17), 1074Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(68, 1), 1075Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(74, 22)) 1748comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_DuplicateProcDef1, "-", New Object() {"Public Shared Operator -(x As B2) As B2"}).WithLocation(8, 28), 1749Diagnostic(ERRID.ERR_TypeMismatch2, "10", New Object() {"Integer", "B2"}).WithLocation(23, 17), 1750Diagnostic(ERRID.ERR_NoMostSpecificOverload2, "-x", New Object() {"-", Environment.NewLine & " 'Public Shared Operator -(x As B2) As B2': Not most specific." & vbCrLf & " 'Public Shared Operator -(x As B2) As B2': Not most specific."}).WithLocation(25, 13)) 1809Diagnostic(ERRID.ERR_EndFunctionExpected, "Public Function M1(a As Double, b as C) as Double").WithLocation(2, 5), 1810Diagnostic(ERRID.ERR_InvalidEndSub, "End Sub").WithLocation(4, 5), 1811Diagnostic(ERRID.ERR_InvInsideEndsProc, "Public Function M2(s As C) As C").WithLocation(6, 5), 1812Diagnostic(ERRID.ERR_ClassNotExpression1, "c").WithArguments("C").WithLocation(3, 20), 1813Diagnostic(ERRID.ERR_UnaryOperand2, "-s").WithArguments("-", "C").WithLocation(7, 16)) 1980Diagnostic(ERRID.ERR_LoopControlMustNotBeProperty, "Moo").WithLocation(38, 13), 1981Diagnostic(ERRID.ERR_LoopControlMustNotBeProperty, "Boo").WithLocation(41, 13), 1982Diagnostic(ERRID.ERR_NoGetProperty1, "Boo").WithArguments("Boo").WithLocation(41, 24), 1983Diagnostic(ERRID.ERR_NoGetProperty1, "Boo").WithArguments("Boo").WithLocation(41, 33), 1984Diagnostic(ERRID.ERR_UnacceptableForLoopOperator2, "For i As C1(Of Integer) = 1 To 10").WithArguments("Public Shared Operator -(p1 As M1.C1(Of Integer), p2 As M1.C1(Of Integer)) As M1.C1(Of Short)", "M1.C1(Of Integer)").WithLocation(19, 9), 1985Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i As C1(Of Integer) = 1 To 10").WithArguments("M1.C1(Of Integer)", "<=").WithLocation(19, 9), 1986Diagnostic(ERRID.ERR_ForLoopOperatorRequired2, "For i As C1(Of Integer) = 1 To 10").WithArguments("M1.C1(Of Integer)", ">=").WithLocation(19, 9), 1987Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System").WithLocation(1, 1)) 2044Diagnostic(ERRID.ERR_ExpectedComma, "").WithLocation(6, 39), 2045Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(6, 39), 2046Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(24, 38), 2047Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(25, 62), 2048Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(26, 34), 2049Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(27, 32), 2050Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(28, 32), 2051Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(37, 14), 2052Diagnostic(ERRID.ERR_TooFewGenericArguments1, "IEnumerator").WithArguments("System.Collections.Generic.IEnumerator(Of Out T)").WithLocation(31, 31), 2053Diagnostic(ERRID.ERR_TooFewGenericArguments1, "IEnumerator").WithArguments("System.Collections.Generic.IEnumerator(Of Out T)").WithLocation(33, 31), 2054Diagnostic(ERRID.ERR_TooFewGenericArguments1, "IEnumerator").WithArguments("System.Collections.Generic.IEnumerator(Of Out T)").WithLocation(36, 30), 2055Diagnostic(ERRID.ERR_AddOrRemoveHandlerEvent, "receiver?.TestEvent").WithLocation(15, 20), 2056Diagnostic(ERRID.ERR_AddOrRemoveHandlerEvent, "Function(ByVal x) x").WithLocation(6, 20), 2057Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").WithLocation(24, 27), 2058Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").WithLocation(25, 27), 2059Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").WithLocation(25, 51), 2060Diagnostic(ERRID.ERR_BadIteratorReturn, "sub").WithLocation(27, 21), 2061Diagnostic(ERRID.ERR_BadIteratorReturn, "Sub").WithLocation(28, 21), 2062Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports System.Collections.Generic").WithLocation(2, 1))
Semantics\ArrayLiteralTests.vb (60)
97Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 98Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{{}}"), 99Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}") 167Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 168Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 169Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 170Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 171Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 172Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 173Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 174Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{""a"", New c}"), 175Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}"), 176Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{}") 341Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C"), 342Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C")) 346Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C"), 347Diagnostic(ERRID.ERR_TypeMismatch2, "{1}").WithArguments("Integer()", "Module1.C")) 463comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, """1""").WithArguments("String", "Integer")) 511Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "{1S}").WithArguments("Integer()", "Module1.C"), 512Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "{1}").WithArguments("Integer()", "Module1.C"), 513Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "{1L}").WithArguments("Integer()", "Module1.C"), 514Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "1D").WithArguments("Decimal", "Integer"), 515Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "1.0R").WithArguments("Double", "Integer")) 543Diagnostic(ERRID.ERR_RestrictedType1, "= {a}").WithArguments("System.ArgIterator"), 544Diagnostic(ERRID.ERR_RestrictedType1, "{a}").WithArguments("System.ArgIterator")) 548Diagnostic(ERRID.ERR_RestrictedType1, "= {a}").WithArguments("System.ArgIterator"), 549Diagnostic(ERRID.ERR_RestrictedType1, "{a}").WithArguments("System.ArgIterator"), 550Diagnostic(ERRID.ERR_ArrayInitTooManyTypesObjectDisallowed, "{1, 1D, ""a""}"), 551Diagnostic(ERRID.ERR_ArrayInitNoTypeObjectDisallowed, "{""a"", New c}")) 555Diagnostic(ERRID.ERR_RestrictedType1, "= {a}").WithArguments("System.ArgIterator"), 556Diagnostic(ERRID.ERR_RestrictedType1, "{a}").WithArguments("System.ArgIterator"), 557Diagnostic(ERRID.WRN_ObjectAssumed1, "{1, 1D, ""a""}").WithArguments("Cannot infer an element type because more than one type is possible; 'Object' assumed."), 558Diagnostic(ERRID.WRN_ObjectAssumed1, "{""a"", New c}").WithArguments("Cannot infer an element type; 'Object' assumed.")) 664Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "1D").WithArguments("Decimal", "Integer") 688Diagnostic(ERRID.ERR_ArrayInitNoType, "{Addressof Main}"), 689Diagnostic(ERRID.ERR_AddressOfNotDelegate1, "Addressof Main").WithArguments("Object"), 690Diagnostic(ERRID.ERR_UndefinedType1, "Action").WithArguments("Action") 695Diagnostic(ERRID.ERR_ArrayInitNoType, "{Addressof Main}"), 696Diagnostic(ERRID.ERR_AddressOfNotDelegate1, "Addressof Main").WithArguments("Object"), 697Diagnostic(ERRID.ERR_UndefinedType1, "Action").WithArguments("Action") 722Diagnostic(ERRID.ERR_ArrayInitNoType, "{Addressof Main}"), 723Diagnostic(ERRID.ERR_AddressOfNotDelegate1, "Addressof Main").WithArguments("Object") 728Diagnostic(ERRID.ERR_ArrayInitNoType, "{Addressof Main}"), 729Diagnostic(ERRID.ERR_AddressOfNotDelegate1, "Addressof Main").WithArguments("Object") 773Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "{1, 2, 3, 4, 5}").WithArguments("Integer()", "Module1.C") 891Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Test2").WithArguments("Test2", Environment.NewLine & 899Diagnostic(ERRID.ERR_NoCallableOverloadCandidates2, "Test2").WithArguments("Test2", Environment.NewLine & 923comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, """a""c").WithArguments("Short")) 927Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "1000.0").WithArguments("Double", "Short"), 928Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, """a""c").WithArguments("Short"), 929Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, """a""").WithArguments("String", "Short")) 967Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "{10S, 10, 10L}").WithArguments("Short()", "Module1.C") 1066Diagnostic(ERRID.ERR_NoNonNarrowingOverloadCandidates2, "Test2").WithArguments("Test2", Environment.NewLine & 1072Diagnostic(ERRID.ERR_NoCallableOverloadCandidates2, "Test2").WithArguments("Test2", Environment.NewLine & 1468Diagnostic(ERRID.WRN_TypeInferenceAssumed3, "{1, ""two"", GetType(String), 3.1415926}").WithArguments("T", "Friend Sub VerifyValue(Of T)(i As Integer, kind As Module1.TypedConstantKind, v As T)", "Object()"), 1469Diagnostic(ERRID.WRN_TypeInferenceAssumed3, "{}").WithArguments("T", "Friend Sub VerifyValue(Of T)(i As Integer, kind As Module1.TypedConstantKind, v As T)", "Object()")) 1565compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ArrayInitNoType, "{AddressOf Goo}")) 1568compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ArrayInitNoType, "{AddressOf Goo}")) 1820comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "({1})").WithArguments("Integer()", "Integer?()", "Integer", "Integer?")) 1823comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "({1})").WithArguments("Integer()", "Integer?()", "Integer", "Integer?"))
Semantics\BinaryOperators.vb (2)
802VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "Integer.MaxValue + 1").WithArguments("Integer")) 1499Assert.Equal(ERRID.ERR_ConstantStringTooLong, err.Code)
Semantics\Conversions.vb (271)
2763Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 2764Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 2765Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 2766Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 2767Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 2768Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 2769Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2770Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2771Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2772Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2773Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2774Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2775Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2776Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2777Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2778Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2779Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2780Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2781Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 2782Diagnostic(ERRID.ERR_NarrowingConversionCollection2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 2783Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 2784Diagnostic(ERRID.ERR_NarrowingConversionCollection2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 2785Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 2786Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 2787Diagnostic(ERRID.ERR_ExpressionOverflow1, "Int64.MaxValue").WithArguments("Integer"), 2788Diagnostic(ERRID.ERR_ExpressionOverflow1, "Int64.MaxValue").WithArguments("Integer"), 2789Diagnostic(ERRID.ERR_ExpressionOverflow1, "System.Double.MaxValue").WithArguments("Decimal"), 2790Diagnostic(ERRID.ERR_ExpressionOverflow1, "System.Double.MaxValue").WithArguments("Decimal"), 2791Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, "10.0F").WithArguments("Single", "Decimal"), 2792Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2793Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2794Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2795Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2796Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 2797Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 2798Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 2799Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 2800Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 2801Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 2802Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 2803Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 2804Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 2805Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 2806Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 2807Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 2808Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC2Array").WithArguments("TestClass2()", "TestClass1()", "TestClass2", "TestClass1"), 2809Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC1Array").WithArguments("TestClass1()", "TestClass2()", "TestClass1", "TestClass2"), 2810Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray2").WithArguments("Integer(*,*)", "Integer()"), 2811Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray").WithArguments("Integer()", "Integer(*,*)"), 2812Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TI1Array").WithArguments("TestInterface1()", "Integer()", "TestInterface1", "Integer"), 2813Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "InArray").WithArguments("Integer()", "TestInterface1()", "Integer", "TestInterface1")) 2817Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 2818Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 2819Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 2820Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 2821Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 2822Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 2823Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2824Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2825Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2826Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2827Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2828Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2829Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2830Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2831Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2832Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2833Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2834Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2835Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 2836Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 2837Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 2838Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 2839Diagnostic(ERRID.ERR_ExpressionOverflow1, "Int64.MaxValue").WithArguments("Integer"), 2840Diagnostic(ERRID.ERR_ExpressionOverflow1, "Int64.MaxValue").WithArguments("Integer"), 2841Diagnostic(ERRID.ERR_ExpressionOverflow1, "System.Double.MaxValue").WithArguments("Decimal"), 2842Diagnostic(ERRID.ERR_ExpressionOverflow1, "System.Double.MaxValue").WithArguments("Decimal"), 2843Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2844Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2845Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2846Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2847Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 2848Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 2849Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 2850Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 2851Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 2852Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 2853Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 2854Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 2855Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 2856Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 2857Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 2858Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 2859Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC2Array").WithArguments("TestClass2()", "TestClass1()", "TestClass2", "TestClass1"), 2860Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC1Array").WithArguments("TestClass1()", "TestClass2()", "TestClass1", "TestClass2"), 2861Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray2").WithArguments("Integer(*,*)", "Integer()"), 2862Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray").WithArguments("Integer()", "Integer(*,*)"), 2863Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TI1Array").WithArguments("TestInterface1()", "Integer()", "TestInterface1", "Integer"), 2864Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "InArray").WithArguments("Integer()", "TestInterface1()", "Integer", "TestInterface1")) 2868Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 2869Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 2870Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 2871Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 2872Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 2873Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 2874Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2875Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2876Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2877Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2878Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2879Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2880Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2881Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2882Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2883Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 2884Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 2885Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 2886Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 2887Diagnostic(ERRID.WRN_ImplicitConversionSubst1, "_collection").WithArguments("Implicit conversion from '_Collection' to 'Collection'."), 2888Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 2889Diagnostic(ERRID.WRN_ImplicitConversionSubst1, "collection").WithArguments("Implicit conversion from 'Collection' to '_Collection'."), 2890Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 2891Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 2892Diagnostic(ERRID.ERR_ExpressionOverflow1, "Int64.MaxValue").WithArguments("Integer"), 2893Diagnostic(ERRID.ERR_ExpressionOverflow1, "Int64.MaxValue").WithArguments("Integer"), 2894Diagnostic(ERRID.ERR_ExpressionOverflow1, "System.Double.MaxValue").WithArguments("Decimal"), 2895Diagnostic(ERRID.ERR_ExpressionOverflow1, "System.Double.MaxValue").WithArguments("Decimal"), 2896Diagnostic(ERRID.WRN_ImplicitConversionSubst1, "10.0F").WithArguments("Implicit conversion from 'Single' to 'Decimal'."), 2897Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2898Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 2899Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2900Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 2901Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 2902Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 2903Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 2904Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 2905Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 2906Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 2907Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 2908Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 2909Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 2910Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 2911Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 2912Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 2913Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC2Array").WithArguments("TestClass2()", "TestClass1()", "TestClass2", "TestClass1"), 2914Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC1Array").WithArguments("TestClass1()", "TestClass2()", "TestClass1", "TestClass2"), 2915Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray2").WithArguments("Integer(*,*)", "Integer()"), 2916Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray").WithArguments("Integer()", "Integer(*,*)"), 2917Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TI1Array").WithArguments("TestInterface1()", "Integer()", "TestInterface1", "Integer"), 2918Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "InArray").WithArguments("Integer()", "TestInterface1()", "Integer", "TestInterface1")) 3034Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 3035Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3036Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3037Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3038Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3039Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3040Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3041Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3042Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3043Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3044Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3045Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 3046Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 3047Diagnostic(ERRID.ERR_TypeMismatch2, "Int64.MaxValue").WithArguments("Long", "Integer"), 3048Diagnostic(ERRID.ERR_TypeMismatch2, "System.Double.MaxValue").WithArguments("Double", "Decimal"), 3049Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 3050Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 3051Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 3052Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 3053Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 3054Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 3055Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 3056Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 3057Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC1Array").WithArguments("TestClass1()", "TestClass2()", "TestClass1", "TestClass2"), 3058Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray").WithArguments("Integer()", "Integer(*,*)"), 3059Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "InArray").WithArguments("Integer()", "TestInterface1()", "Integer", "TestInterface1"), 3060Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char"), 3061Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3062Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3063Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 3064Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "[In]"), 3065Diagnostic(ERRID.ERR_IdentityDirectCastForFloat, "Si"), 3066Diagnostic(ERRID.ERR_IdentityDirectCastForFloat, "[Do]"), 3067Diagnostic(ERRID.ERR_TypeMismatch2, "Si").WithArguments("Single", "Double")) 3071Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 3072Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3073Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3074Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3075Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3076Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3077Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3078Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3079Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3080Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3081Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3082Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 3083Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 3084Diagnostic(ERRID.ERR_TypeMismatch2, "Int64.MaxValue").WithArguments("Long", "Integer"), 3085Diagnostic(ERRID.ERR_TypeMismatch2, "System.Double.MaxValue").WithArguments("Double", "Decimal"), 3086Diagnostic(ERRID.ERR_TypeMismatch2, "Da").WithArguments("Date", "Integer"), 3087Diagnostic(ERRID.ERR_TypeMismatch2, "[In]").WithArguments("Integer", "Date"), 3088Diagnostic(ERRID.ERR_DateToDoubleConversion, "Da"), 3089Diagnostic(ERRID.ERR_DoubleToDateConversion, "[Do]"), 3090Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, "Ch").WithArguments("Integer"), 3091Diagnostic(ERRID.ERR_IntegralToCharTypeMismatch1, "[In]").WithArguments("Integer"), 3092Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 3093Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 3094Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC1Array").WithArguments("TestClass1()", "TestClass2()", "TestClass1", "TestClass2"), 3095Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray").WithArguments("Integer()", "Integer(*,*)"), 3096Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "InArray").WithArguments("Integer()", "TestInterface1()", "Integer", "TestInterface1"), 3097Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char"), 3098Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3099Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3100Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 3101Diagnostic(ERRID.WRN_ObsoleteIdentityDirectCastForValueType, "[In]"), 3102Diagnostic(ERRID.ERR_IdentityDirectCastForFloat, "Si"), 3103Diagnostic(ERRID.ERR_IdentityDirectCastForFloat, "[Do]"), 3104Diagnostic(ERRID.ERR_TypeMismatch2, "Si").WithArguments("Single", "Double")) 3211Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 3212Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3213Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3214Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3215Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3216Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3217Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3218Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3219Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3220Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3221Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3222Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 3223Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 3224Diagnostic(ERRID.ERR_TryCastOfValueType1, "Int32").WithArguments("Integer"), 3225Diagnostic(ERRID.ERR_TryCastOfValueType1, "System.Decimal").WithArguments("Decimal"), 3226Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 3227Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 3228Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC1Array").WithArguments("TestClass1()", "TestClass2()", "TestClass1", "TestClass2"), 3229Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray").WithArguments("Integer()", "Integer(*,*)"), 3230Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "InArray").WithArguments("Integer()", "TestInterface1()", "Integer", "TestInterface1"), 3231Diagnostic(ERRID.ERR_TryCastOfValueType1, "System.Char").WithArguments("Char"), 3232Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3233Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3234Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 3235Diagnostic(ERRID.ERR_TryCastOfUnconstrainedTypeParam1, "T").WithArguments("T")) 3239Diagnostic(ERRID.ERR_VoidValue, "Console.WriteLine()"), 3240Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3241Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3242Diagnostic(ERRID.ERR_NameNotDeclared1, "unknownValue").WithArguments("unknownValue"), 3243Diagnostic(ERRID.ERR_UndefinedType1, "UnknownType").WithArguments("UnknownType"), 3244Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3245Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3246Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3247Diagnostic(ERRID.ERR_RestrictedConversion1, "tr").WithArguments("System.TypedReference"), 3248Diagnostic(ERRID.ERR_RestrictedConversion1, "ai").WithArguments("System.ArgIterator"), 3249Diagnostic(ERRID.ERR_RestrictedConversion1, "ra").WithArguments("System.RuntimeArgumentHandle"), 3250Diagnostic(ERRID.WRN_InterfaceConversion2, "_collection").WithArguments("_Collection", "Microsoft.VisualBasic.Collection"), 3251Diagnostic(ERRID.WRN_InterfaceConversion2, "collection").WithArguments("Microsoft.VisualBasic.Collection", "_Collection"), 3252Diagnostic(ERRID.ERR_TryCastOfValueType1, "Int32").WithArguments("Integer"), 3253Diagnostic(ERRID.ERR_TryCastOfValueType1, "System.Decimal").WithArguments("Decimal"), 3254Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "Object()", "Integer"), 3255Diagnostic(ERRID.ERR_ConvertObjectArrayMismatch3, "InArray").WithArguments("Integer()", "System.ValueType()", "Integer"), 3256Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "TC1Array").WithArguments("TestClass1()", "TestClass2()", "TestClass1", "TestClass2"), 3257Diagnostic(ERRID.ERR_ConvertArrayRankMismatch2, "InArray").WithArguments("Integer()", "Integer(*,*)"), 3258Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "InArray").WithArguments("Integer()", "TestInterface1()", "Integer", "TestInterface1"), 3259Diagnostic(ERRID.ERR_TryCastOfValueType1, "System.Char").WithArguments("Char"), 3260Diagnostic(ERRID.ERR_TypeMismatch2, "Ch").WithArguments("Char", "String"), 3261Diagnostic(ERRID.ERR_TypeMismatch2, "ChArray").WithArguments("Char()", "String"), 3262Diagnostic(ERRID.ERR_TypeMismatch2, "St").WithArguments("String", "Char()"), 3263Diagnostic(ERRID.ERR_TryCastOfUnconstrainedTypeParam1, "T").WithArguments("T")) 4207VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "Z1").WithArguments("Byte"), 4208Diagnostic(ERRID.ERR_ExpressionOverflow1, "300").WithArguments("Byte"), 4209Diagnostic(ERRID.ERR_TypeMismatch2, "300").WithArguments("Integer", "Byte"))
Semantics\FieldInitializerBindingTests.vb (3)
652compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RequiredConstExpr, "AscW(y)"), 653Diagnostic(ERRID.ERR_RequiredConstExpr, "ChrW(z)"), 654Diagnostic(ERRID.ERR_RequiredConstExpr, "z"))
Semantics\ForLoopTest.vb (1)
547vbCompilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_NoSuitableWidestType1, "i").WithArguments("i"))
Semantics\GetSemanticInfoTests.vb (7)
4203</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_LoopControlMustNotBeProperty, "prop1")) 4418Diagnostic(ERRID.ERR_ExpressionOverflow1, "Integer.MaxValue + 1").WithArguments("Integer")) 4461Diagnostic(ERRID.ERR_InvalidConstructorCall, "class1.New")) 5089Diagnostic(ERRID.ERR_InaccessibleSymbol2, "Nested").WithArguments("A.Nested", "Private")) 5132Diagnostic(ERRID.ERR_InaccessibleSymbol2, "Nested").WithArguments("A.Nested", "Private")) 5176Diagnostic(ERRID.ERR_InaccessibleSymbol2, "Nested").WithArguments("A.Nested", "Private")) 5221Diagnostic(ERRID.ERR_InaccessibleSymbol2, "A.B").WithArguments("A.B", "Private"))
Semantics\IsIsNot.vb (30)
429Diagnostic(ERRID.ERR_VoidValue, "WriteLine()"), 430Diagnostic(ERRID.ERR_NameNotDeclared1, "doesntexist").WithArguments("doesntexist"), 431Diagnostic(ERRID.ERR_NameNotDeclared1, "doesntexist").WithArguments("doesntexist"), 432Diagnostic(ERRID.ERR_VoidValue, "WriteLine()"), 433Diagnostic(ERRID.ERR_IsOperatorNullable1, "n").WithArguments("Integer?"), 434Diagnostic(ERRID.ERR_IsNotOperatorNullable1, "n").WithArguments("Integer?"), 435Diagnostic(ERRID.ERR_IsOperatorNullable1, "n").WithArguments("Integer?"), 436Diagnostic(ERRID.ERR_IsNotOperatorNullable1, "n").WithArguments("Integer?"), 437Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "De").WithArguments("Decimal"), 438Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "De").WithArguments("Decimal"), 439Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "De").WithArguments("Decimal"), 440Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "De").WithArguments("Decimal"), 441Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "De").WithArguments("Decimal"), 442Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "De").WithArguments("Decimal"), 443Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "De").WithArguments("Decimal"), 444Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "De").WithArguments("Decimal"), 445Diagnostic(ERRID.ERR_IsOperatorGenericParam1, "x").WithArguments("T"), 446Diagnostic(ERRID.ERR_IsOperatorGenericParam1, "y").WithArguments("T"), 447Diagnostic(ERRID.ERR_IsNotOperatorGenericParam1, "x").WithArguments("T"), 448Diagnostic(ERRID.ERR_IsNotOperatorGenericParam1, "y").WithArguments("T"), 449Diagnostic(ERRID.ERR_IsOperatorGenericParam1, "y").WithArguments("T"), 450Diagnostic(ERRID.ERR_IsNotOperatorGenericParam1, "y").WithArguments("T"), 451Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "x").WithArguments("T"), 452Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "x").WithArguments("T"), 453Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "x").WithArguments("T"), 454Diagnostic(ERRID.ERR_IsOperatorRequiresReferenceTypes1, "y").WithArguments("T"), 455Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "x").WithArguments("T"), 456Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "x").WithArguments("T"), 457Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "x").WithArguments("T"), 458Diagnostic(ERRID.ERR_IsNotOpRequiresReferenceTypes1, "y").WithArguments("T"))
Semantics\LambdaTests.vb (1)
1728CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).VerifyDiagnostics(Diagnostic(ERRID.ERR_SubDisallowsStatement, "Dim y = 2"))
Semantics\MethodCalls.vb (8)
2810VerifyDiagnostics(Diagnostic(ERRID.WRN_ImplicitConversionCopyBack, "By").WithArguments("a", "Integer", "Byte")) 2848Diagnostic(ERRID.ERR_TypecharNoMatch2, "Goo$()").WithArguments("$", "Void"), 2849Diagnostic(ERRID.ERR_TypecharNoMatch2, "Goo$").WithArguments("$", "Void"), 2850Diagnostic(ERRID.ERR_TypecharNoMatch2, "M.Goo$()").WithArguments("$", "Void"), 2851Diagnostic(ERRID.ERR_TypecharNoMatch2, "M.Goo$").WithArguments("$", "Void"), 2852Diagnostic(ERRID.ERR_TypecharNoMatch2, "Bar%(Of Integer)()").WithArguments("%", "Void"), 2853Diagnostic(ERRID.ERR_TypecharNoMatch2, "Bar$(Of Integer)").WithArguments("$", "Void"), 2854Diagnostic(ERRID.ERR_TypecharNoMatch2, "Goo1$").WithArguments("$", "Integer"))
Semantics\MultiDimensionalTest.vb (2)
293Diagnostic(ERRID.ERR_ExpectedExpression, ""), 294Diagnostic(ERRID.ERR_InitWithExplicitArraySizes, "b5(8, )"))
Semantics\OptionalArgumentTests.vb (22)
69comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_DateToDoubleConversion, "#1/1/2001#")) 140comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_OverrideWithDefault2, "s1").WithArguments("Public Overrides Sub s1([i As Integer = 2])", "Public MustOverride Sub s1([i As Integer = 0])")) 166comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_TypeMismatch2, "1").WithArguments("Integer", "System.Guid")) 244comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_RequiredConstConversion2, """12""").WithArguments("String", "Integer")) 270comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_OptionalIllegal1, "Optional").WithArguments("Event"), 271Diagnostic(ERRID.ERR_OmittedArgument2, "RaiseEvent E()").WithArguments("I", "Public Event E(I As Integer)")) 290Diagnostic(ERRID.ERR_ExpectedOptional, "Z")) 309Diagnostic(ERRID.ERR_ParamArrayWithOptArgs, "Y")) 328Diagnostic(ERRID.ERR_ParamArrayMustBeLast, "Optional z As Integer = 1")) 347Diagnostic(ERRID.ERR_RequiredConstExpr, "String.Empty")) 463Diagnostic(ERRID.ERR_CircularEvaluation1, "Goo()").WithArguments("[a As Module1.C]") 491Diagnostic(ERRID.ERR_CircularEvaluation1, "Bar()").WithArguments("[f As Module1.C]"), 492Diagnostic(ERRID.ERR_RequiredConstExpr, "Goo()") 521Diagnostic(ERRID.ERR_UseOfKeywordNotInInstanceMethod1, "Me").WithArguments("Me"), 522Diagnostic(ERRID.ERR_UseOfKeywordNotInInstanceMethod1, "Me").WithArguments("Me") 696comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_OmittedArgument2, "M2").WithArguments("x", "Public Shared Sub M2(x As Object)"), 697Diagnostic(ERRID.ERR_OmittedArgument2, "M4").WithArguments("x", "Public Shared Sub M4(x As Object)"), 698Diagnostic(ERRID.ERR_OmittedArgument2, "M6").WithArguments("x", "Public Shared Sub M6(x As Object)"), 699Diagnostic(ERRID.ERR_OmittedArgument2, "M8").WithArguments("x", "Public Shared Sub M8(x As Object)")) 939comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_OmittedArgument2, "Goo1").WithArguments("x", "Public Shared Sub Goo1(x As Object)"), 940Diagnostic(ERRID.ERR_OmittedArgument2, "Goo2").WithArguments("x", "Public Shared Sub Goo2(x As String)"), 941Diagnostic(ERRID.ERR_OmittedArgument2, "Goo3").WithArguments("x", "Public Shared Sub Goo3(x As Integer)"))
Semantics\PartialMethodsTest.vb (2)
622comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1")) 940comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_InterfaceNotImplemented1, "A").WithArguments("A"))
Semantics\QueryExpressions_SemanticModel.vb (1)
3812compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_QueryOperatorNotFound, "aggr4").WithArguments("aggr4"))
Semantics\ScriptSemanticsTests.vb (1)
126Diagnostic(ERRID.ERR_InvalidSwitchValue).WithArguments("ScriptClassName", "a" + ChrW(0) + "b").WithLocation(1, 1)
Semantics\UnaryOperators.vb (2)
583VerifyDiagnostics(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "+2147483648").WithArguments("Integer"), 584Diagnostic(ERRID.ERR_ExpressionOverflow1, "(-(-2147483648))").WithArguments("Integer"))
Semantics\UseSiteErrorTests.vb (74)
88Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 89Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 90Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "ReturnType1").WithArguments("Public Overrides Function ReturnType1() As UnavailableClass", "Public Overridable Overloads Function ReturnType1() As UnavailableClass"), 91Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "ReturnType2").WithArguments("Public Overrides Function ReturnType2() As UnavailableClass()", "Public Overridable Overloads Function ReturnType2() As UnavailableClass()")) 114Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ReturnType1").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 115Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ReturnType2").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass")) 137Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 138Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 139Diagnostic(ERRID.ERR_OverrideNotNeeded3, "ParameterType1").WithArguments("sub", "ParameterType1"), 140Diagnostic(ERRID.ERR_OverrideNotNeeded3, "ParameterType2").WithArguments("sub", "ParameterType2")) 161Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ParameterType1").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 162Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ParameterType2").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass")) 190Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 191Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 192Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 193Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 194Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceMethods.ReturnType1").WithArguments("ReturnType1", "ReturnType1", "function", "InterfaceMethods"), 195Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceMethods.ReturnType2").WithArguments("ReturnType2", "ReturnType2", "function", "InterfaceMethods"), 196Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceMethods.ParameterType1").WithArguments("ParameterType1", "ParameterType1", "sub", "InterfaceMethods"), 197Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceMethods.ParameterType2").WithArguments("ParameterType2", "ParameterType2", "sub", "InterfaceMethods"), 198Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceMethods").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 199Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceMethods").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 200Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceMethods").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 201Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceMethods").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass")) 228Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ReturnType1").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 229Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ReturnType2").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 230Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ParameterType1").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 231Diagnostic(ERRID.ERR_UnreferencedAssembly3, "ParameterType2").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass")) 284Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 285Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 286Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 287Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 288Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 289Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 290Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 291Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 292Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 293Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 294Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "Get1").WithArguments("Public Overrides ReadOnly Property Get1 As UnavailableClass", "Public Overridable Overloads ReadOnly Property Get1 As UnavailableClass"), 295Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "Get2").WithArguments("Public Overrides ReadOnly Property Get2 As UnavailableClass()", "Public Overridable Overloads ReadOnly Property Get2 As UnavailableClass()"), 296Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "Set1").WithArguments("Public Overrides WriteOnly Property Set1 As UnavailableClass", "Public Overridable Overloads WriteOnly Property Set1 As UnavailableClass"), 297Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "Set2").WithArguments("Public Overrides WriteOnly Property Set2 As UnavailableClass()", "Public Overridable Overloads WriteOnly Property Set2 As UnavailableClass()"), 298Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "GetSet1").WithArguments("Public Overrides Property GetSet1 As UnavailableClass", "Public Overridable Overloads Property GetSet1 As UnavailableClass"), 299Diagnostic(ERRID.ERR_InvalidOverrideDueToReturn2, "GetSet2").WithArguments("Public Overrides Property GetSet2 As UnavailableClass()", "Public Overridable Overloads Property GetSet2 As UnavailableClass()")) 350Diagnostic(ERRID.ERR_UnreferencedAssembly3, "Get1").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 351Diagnostic(ERRID.ERR_UnreferencedAssembly3, "Get2").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 352Diagnostic(ERRID.ERR_UnreferencedAssembly3, "Set1").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 353Diagnostic(ERRID.ERR_UnreferencedAssembly3, "Set2").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 354Diagnostic(ERRID.ERR_UnreferencedAssembly3, "GetSet1").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 355Diagnostic(ERRID.ERR_UnreferencedAssembly3, "GetSet2").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass")) 408Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 409Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 410Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 411Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 412Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 413Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 414Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 415Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 416Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 417Diagnostic(ERRID.ERR_UndefinedType1, "UnavailableClass").WithArguments("UnavailableClass"), 418Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceProperties.Get1").WithArguments("Get1", "Get1", "property", "InterfaceProperties"), 419Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceProperties.Get2").WithArguments("Get2", "Get2", "property", "InterfaceProperties"), 420Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceProperties.Set1").WithArguments("Set1", "Set1", "property", "InterfaceProperties"), 421Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceProperties.Set2").WithArguments("Set2", "Set2", "property", "InterfaceProperties"), 422Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceProperties.GetSet1").WithArguments("GetSet1", "GetSet1", "property", "InterfaceProperties"), 423Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "CSharpErrors.InterfaceProperties.GetSet2").WithArguments("GetSet2", "GetSet2", "property", "InterfaceProperties"), 424Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceProperties").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 425Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceProperties").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 426Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceProperties").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 427Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceProperties").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 428Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceProperties").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass"), 429Diagnostic(ERRID.ERR_UnreferencedAssembly3, "CSharpErrors.InterfaceProperties").WithArguments("Unavailable, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "UnavailableClass")) 740Assert.True(Diagnostics.Any(Function(d) d.Code = ERRID.ERR_UnreferencedAssembly3)) 743If d.Code = ERRID.ERR_UnreferencedAssembly3 Then
Semantics\VariableTypeInference.vb (22)
485compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "a"), 486Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "b")) 506Diagnostic(ERRID.WRN_ObjectAssumedVar1, "a").WithArguments("Variable declaration without an 'As' clause; type of Object assumed."), 507Diagnostic(ERRID.WRN_ObjectAssumedVar1, "b").WithArguments("Variable declaration without an 'As' clause; type of Object assumed.")) 534compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "b")) 550compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "a"), 551Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "b")) 563compilation.VerifyDiagnostics(Diagnostic(ERRID.WRN_ObjectAssumedVar1, "b").WithArguments("Static variable declared without an 'As' clause; type of Object assumed.")) 572Diagnostic(ERRID.WRN_ObjectAssumedVar1, "a").WithArguments("Variable declaration without an 'As' clause; type of Object assumed."), 573Diagnostic(ERRID.WRN_ObjectAssumedVar1, "b").WithArguments("Static variable declared without an 'As' clause; type of Object assumed.")) 607Diagnostic(ERRID.ERR_UseOfLocalBeforeDeclaration1, "y").WithArguments("y"), 608Diagnostic(ERRID.ERR_CircularInference1, "x").WithArguments("x"), 609Diagnostic(ERRID.WRN_DefAsgUseNullRef, "x").WithArguments("x")) 634Diagnostic(ERRID.WRN_UnusedLocalConst, "bar1").WithArguments("bar1"), 635Diagnostic(ERRID.WRN_UnusedLocalConst, "bar2").WithArguments("bar2"), 636Diagnostic(ERRID.WRN_UnusedLocalConst, "bar3").WithArguments("bar3") 664Diagnostic(ERRID.ERR_ConstantWithNoValue, "bar6"), 665Diagnostic(ERRID.WRN_UnusedLocalConst, "bar1").WithArguments("bar1"), 666Diagnostic(ERRID.WRN_UnusedLocalConst, "bar2").WithArguments("bar2"), 667Diagnostic(ERRID.WRN_UnusedLocalConst, "bar3").WithArguments("bar3"), 668Diagnostic(ERRID.WRN_UnusedLocalConst, "bar4").WithArguments("bar4"), 669Diagnostic(ERRID.WRN_UnusedLocalConst, "bar5").WithArguments("bar5"))
Semantics\WithBlockErrorTests.vb (19)
31Diagnostic(ERRID.ERR_NameNotDeclared1, "o1").WithArguments("o1"), 32Diagnostic(ERRID.ERR_UseOfLocalBeforeDeclaration1, "o2").WithArguments("o2")) 57Diagnostic(ERRID.ERR_BlockLocalShadowing1, "o1").WithArguments("o1"), 58Diagnostic(ERRID.ERR_BlockLocalShadowing1, "o1").WithArguments("o1")) 83Diagnostic(ERRID.ERR_TooManyArgs1, """a""").WithArguments("Public Sub Method1()"), 84Diagnostic(ERRID.ERR_NameNotMember2, ".Property1").WithArguments("Property1", "Class2"), 85Diagnostic(ERRID.ERR_NameNotMember2, ".Method2").WithArguments("Method2", "Class2"), 86Diagnostic(ERRID.ERR_NameNotMember2, ".Method3").WithArguments("Method3", "Class2")) 222Diagnostic(ERRID.ERR_CannotLiftStructureMeLambda, "S")) 322Diagnostic(ERRID.ERR_LValueRequired, ".A"), 323Diagnostic(ERRID.ERR_LValueRequired, ".B")) 340</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_StrictDisallowsLateBinding, ".Goo")) 800Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "b").WithArguments("b")) 839Diagnostic(ERRID.WRN_DefAsgUseNullRef, ".B").WithArguments("B")) 881Diagnostic(ERRID.WRN_DefAsgUseNullRefByRef, ".B").WithArguments("B")) 916Diagnostic(ERRID.WRN_DefAsgUseNullRef, "c").WithArguments("c")) 1033Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1034Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1035Diagnostic(ERRID.ERR_InvalidConstructorCall, ".New"))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (410)
StaticLocalDeclarationTests.vb (35)
205compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_DuplicateLocalStatic1, "x").WithArguments("x")) 235compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_DuplicateLocalStatic1, "x").WithArguments("x")) 262compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_DuplicateLocalStatic1, "x").WithArguments("x")) 292compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_BlockLocalShadowing1, "y").WithArguments("y"), 293Diagnostic(ERRID.ERR_BlockLocalShadowing1, "x").WithArguments("x"), 294Diagnostic(ERRID.ERR_DuplicateLocalStatic1, "x").WithArguments("x")) 322compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_BadStaticLocalInGenericMethod, "Static")) 351compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_BadStaticLocalInStruct, "Static")) 382compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Public").WithArguments("Public"), 383Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Private").WithArguments("Private"), 384Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Protected").WithArguments("Protected"), 385Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Friend").WithArguments("Friend"), 386Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Protected").WithArguments("Protected"), 387Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Friend").WithArguments("Friend"), 388Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Shared").WithArguments("Shared"), 389Diagnostic(ERRID.WRN_UnusedLocal, "SLItem6").WithArguments("SLItem6")) 415compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_BadDimFlags1, "Static").WithArguments("Static")) 449compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_VoidValue, "StaticLocalInSub"), 450Diagnostic(ERRID.ERR_VoidValue, "StaticLocalInSub2")) 481compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_BlockLocalShadowing1, "sl1").WithArguments("sl1"), 482Diagnostic(ERRID.ERR_BinaryOperands3, "sl1 &= ""InCatch""").WithArguments("&", "System.Exception", "String")) 507compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "as"), 508Diagnostic(ERRID.ERR_DuplicateSpecifier, "Static")) 535compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Static")) 568compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedExpression, ""), 569Diagnostic(ERRID.ERR_SubDisallowsStatement, "static x1 As Integer = 0")) 615compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_StaticInLambda, "static"), 616Diagnostic(ERRID.ERR_StaticInLambda, "static")) 651compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_NameNotDeclared1, "SL").WithArguments("SL")) 676compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RestrictedType1, "ArgIterator").WithArguments("System.ArgIterator"), 677Diagnostic(ERRID.WRN_UnusedLocal, "SLItem2").WithArguments("SLItem2")) 702compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_RestrictedType1, "TypedReference").WithArguments("System.TypedReference")) 733compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedQueryableSource, "{1, 2, 3}").WithArguments("Integer()"), 734Diagnostic(ERRID.ERR_IterationVariableShadowLocal1, "sl").WithArguments("sl"), 735Diagnostic(ERRID.ERR_IterationVariableShadowLocal1, "sl").WithArguments("sl"))
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (2)
2251Diagnostic(ERRID.ERR_NameNotMember2, "x.Goo").WithArguments("Goo", "Integer"), 2252Diagnostic(ERRID.HDN_UnusedImportStatement, "Imports Extensions"))
SymbolsTests\Metadata\MetadataMemberTests.vb (9)
800Diagnostic(ERRID.ERR_NameNotMember2, "c._VtblGap1_1").WithArguments("_VtblGap1_1", "[Class]"), 801Diagnostic(ERRID.ERR_NameNotMember2, "c.BothAccessorsAreGaps").WithArguments("BothAccessorsAreGaps", "[Class]"), 802Diagnostic(ERRID.ERR_NameNotMember2, "c.BothAccessorsAreGaps").WithArguments("BothAccessorsAreGaps", "[Class]"), 803Diagnostic(ERRID.ERR_NoGetProperty1, "c.GetterIsGap").WithArguments("GetterIsGap"), 804Diagnostic(ERRID.ERR_NoSetProperty1, "c.SetterIsGap = x").WithArguments("SetterIsGap")) 853Diagnostic(ERRID.ERR_UnimplementedMember3, "[Interface]").WithArguments("Class", "Empty", "WriteOnly Property GetterIsGap As Integer", "[Interface]"), 854Diagnostic(ERRID.ERR_UnimplementedMember3, "[Interface]").WithArguments("Class", "Empty", "ReadOnly Property SetterIsGap As Integer", "[Interface]"), 855Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "[Interface]._VtblGap1_1").WithArguments("_VtblGap1_1", "_VtblGap1_1", "sub", "[Interface]"), 856Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "[Interface].BothAccessorsAreGaps").WithArguments("BothAccessorsAreGaps", "BothAccessorsAreGaps", "property", "[Interface]"))
SymbolsTests\Metadata\PE\LoadCustomModifiers.vb (1)
101Assert.Equal(ERRID.ERR_UnsupportedType1, p6Type.GetUseSiteErrorInfo().Code)
SymbolsTests\Metadata\PE\LoadingEvents.vb (2)
73Assert.True(diagnostics.Any(Function(d) d.Code = ERRID.ERR_UnreferencedAssemblyEvent3)) 76If d.Code = ERRID.ERR_UnreferencedAssemblyEvent3 Then
SymbolsTests\Metadata\PE\TypeForwarders.vb (25)
241Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "Base").WithArguments("Base", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 242Diagnostic(ERRID.ERR_TypeFwdCycle2, "Base").WithArguments("Base", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")) 317Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "Base").WithArguments("Base", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 318Diagnostic(ERRID.ERR_TypeFwdCycle2, "Base").WithArguments("Base", "pe3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")) 505Diagnostic(ERRID.ERR_TypeFwdCycle2, "us.Goo()").WithArguments("Cycle", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")) 737Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "Outer").WithArguments("Outer", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 738Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "Outer").WithArguments("Outer", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 739Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "Outer").WithArguments("Outer", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 740Diagnostic(ERRID.ERR_UndefinedType1, "Generic").WithArguments("Generic"), 741Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "Generic(Of Integer)").WithArguments("Generic", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 742Diagnostic(ERRID.ERR_UndefinedType1, "Generic(Of Integer, Integer)").WithArguments("Generic")) 778Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "upper").WithArguments("upper", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 779Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "uPPeR").WithArguments("uPPeR", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 780Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "LOWER.mixed").WithArguments("LOWER.mixed", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 781Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "lOwEr.MIXED").WithArguments("lOwEr.MIXED", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")) 831Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "t0").WithArguments("t0", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 832Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "ns.t1").WithArguments("ns.t1", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 833Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "ns.ms.t2").WithArguments("ns.ms.t2", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"), 834Diagnostic(ERRID.ERR_UndefinedType1, "ns.ms.ls.t3").WithArguments("ns.ms.ls.t3"), 835Diagnostic(ERRID.ERR_UndefinedType1, "nope").WithArguments("nope"), 836Diagnostic(ERRID.ERR_UndefinedType1, "ns.nope").WithArguments("ns.nope"), 837Diagnostic(ERRID.ERR_UndefinedType1, "ns.ms.nope").WithArguments("ns.ms.nope"), 838Diagnostic(ERRID.ERR_UndefinedType1, "ns.ms.ls.nope").WithArguments("ns.ms.ls.nope")) 895Diagnostic(ERRID.ERR_UndefinedType1, "n2.n3.t").WithArguments("n2.n3.t"), 896Diagnostic(ERRID.ERR_ForwardedTypeUnavailable3, "n1.n2.n3.t").WithArguments("n1.n2.n3.t", "TypeForwarders, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", "pe2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"))
SymbolsTests\Metadata\WinMdEventTest.vb (36)
788comp.VerifyEmitDiagnostics(Diagnostic(ERRID.ERR_WinRTEventWithoutDelegate, "E")) 1068Diagnostic(ERRID.ERR_MixingWinRTAndNETEvents, "I2.WinRT").WithArguments("Normal", "I2.WinRT", "I1.Normal"), 1069Diagnostic(ERRID.ERR_MixingWinRTAndNETEvents, "I2.Normal").WithArguments("WinRT", "I1.WinRT", "I2.Normal")) 1102Diagnostic(ERRID.ERR_MixingWinRTAndNETEvents, "I1.WinRT").WithArguments("Normal", "I1.WinRT", "I1.Normal"), 1103Diagnostic(ERRID.ERR_MixingWinRTAndNETEvents, "I2.WinRT").WithArguments("Normal", "I2.WinRT", "I1.Normal")) 1122Diagnostic(ERRID.ERR_WinRTEventWithoutDelegate, "E")) 1154Diagnostic(ERRID.ERR_WinRTEventWithoutDelegate, "E"), 1155Diagnostic(ERRID.ERR_CustomEventRequiresAs, "Public Custom Event E ' As System.Action" + Environment.NewLine), 1156Diagnostic(ERRID.ERR_ExpectedDeclaration, "AddHandler(value As System.Action)"), 1157Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return Nothing"), 1158Diagnostic(ERRID.ERR_InvalidEndAddHandler, "End AddHandler"), 1159Diagnostic(ERRID.ERR_ExpectedDeclaration, "RemoveHandler(value As System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken)"), 1160Diagnostic(ERRID.ERR_InvalidEndRemoveHandler, "End RemoveHandler"), 1161Diagnostic(ERRID.ERR_ExpectedDeclaration, "RaiseEvent()"), 1162Diagnostic(ERRID.ERR_InvalidEndRaiseEvent, "End RaiseEvent"), 1163Diagnostic(ERRID.ERR_InvalidEndEvent, "End Event")) 1208Diagnostic(ERRID.ERR_CustomEventRequiresAs, "Public Custom Event E2 Implements I.E2"), 1209Diagnostic(ERRID.ERR_ExpectedDeclaration, "AddHandler(value As System.Action)"), 1210Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return Nothing"), 1211Diagnostic(ERRID.ERR_InvalidEndAddHandler, "End AddHandler"), 1212Diagnostic(ERRID.ERR_ExpectedDeclaration, "RemoveHandler(value As System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken)"), 1213Diagnostic(ERRID.ERR_InvalidEndRemoveHandler, "End RemoveHandler"), 1214Diagnostic(ERRID.ERR_ExpectedDeclaration, "RaiseEvent()"), 1215Diagnostic(ERRID.ERR_InvalidEndRaiseEvent, "End RaiseEvent"), 1216Diagnostic(ERRID.ERR_InvalidEndEvent, "End Event"), 1217Diagnostic(ERRID.ERR_EventImplMismatch5, "I.E2").WithArguments("Public Event E2 As ?", "Event E2 As System.Action", "I", "?", "System.Action")) 1250Diagnostic(ERRID.ERR_AddParamWrongForWinRT, "AddHandler(value As System.Action(Of Integer))")) 1282Diagnostic(ERRID.ERR_RemoveParamWrongForWinRT, "RemoveHandler(value As System.Action)")) 1316Diagnostic(ERRID.ERR_TypeRefResolutionError3, <![CDATA[AddHandler(value As System.Action) 1356Diagnostic(ERRID.ERR_EventImplRemoveHandlerParamWrong, "RemoveHandler(value As System.Action)").WithArguments("F", "E", "I")) 1397Diagnostic(ERRID.ERR_TypeRefResolutionError3, <![CDATA[AddHandler(value As System.Action) 1400Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", outputName), 1401Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken", outputName)) 1526Diagnostic(ERRID.ERR_AddRemoveParamNotEventType, "RemoveHandler(value As System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken)")) 1596Diagnostic(ERRID.WRN_DefAsgNoRetValWinRtEventVal1, "End AddHandler").WithArguments("E")) 1690Diagnostic(ERRID.ERR_NameNotDeclared1, "CustomEventEvent").WithArguments("CustomEventEvent"))
SymbolsTests\Retargeting\RetargetingTests.vb (33)
353Diagnostic(ERRID.ERR_UndefinedType1, "E").WithArguments("System.Int32"), 354Diagnostic(ERRID.ERR_UndefinedType1, <![CDATA[Public Enum E 357Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Enum", "test.dll")) 391Diagnostic(ERRID.ERR_UndefinedType1, "Short").WithArguments("System.Int16"), 392Diagnostic(ERRID.ERR_UndefinedType1, <![CDATA[Public Enum E As Short 395Diagnostic(ERRID.ERR_TypeRefResolutionError3, "E").WithArguments("System.Enum", "test.dll")) 429Diagnostic(ERRID.ERR_BadImplementsType, "Short")) 496Diagnostic(ERRID.ERR_BadImplementsType, "Short")) 597Diagnostic(ERRID.ERR_UndefinedType1, "Short").WithArguments("System.Int16")) 1546main_NoRetarget.VerifyDiagnostics(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1547Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1548Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1549Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1550Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1551Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1552Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1553Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestStructure").WithArguments("TestStructure", "Friend")) 1556Main_Retarget.VerifyDiagnostics(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1557Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1558Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1559Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1560Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1561Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1562Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"), 1563Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestStructure").WithArguments("TestStructure", "Friend")) 2937main_NoRetarget.VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "NewClass").WithArguments("NewClass", "ClassLibrary1.TestInterface"), 2938Diagnostic(ERRID.ERR_NoSuitableNewForNewConstraint2, "ClassLibrary1.TestInterface").WithArguments("ClassLibrary1.TestInterface", "t"), 2939Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "Integer").WithArguments("Integer", "ClassLibrary1.TestClass"), 2940Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "ABC").WithArguments("ABC", "ClassLibrary1.TestClass")) 2945main_NoRetarget.VerifyDiagnostics(Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "NewClass").WithArguments("NewClass", "ClassLibrary1.TestInterface"), 2946Diagnostic(ERRID.ERR_NoSuitableNewForNewConstraint2, "ClassLibrary1.TestInterface").WithArguments("ClassLibrary1.TestInterface", "t"), 2947Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "Integer").WithArguments("Integer", "ClassLibrary1.TestClass"), 2948Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "ABC").WithArguments("ABC", "ClassLibrary1.TestClass"))
SymbolsTests\Source\ClsComplianceTests.vb (2)
2579Assert.Equal(ERRID.WRN_ParamNotCLSCompliant1, DirectCast(comp.GetDeclarationDiagnostics().Single().Code, ERRID))
SymbolsTests\Source\DelegateTests.vb (7)
19Diagnostic(ERRID.ERR_UndefinedType1, "Delegate Sub A()").WithArguments("System.Void"), 20Diagnostic(ERRID.ERR_UndefinedType1, "Delegate Sub A()").WithArguments("System.Void"), 21Diagnostic(ERRID.ERR_UndefinedType1, "Delegate Sub A()").WithArguments("System.IAsyncResult"), 22Diagnostic(ERRID.ERR_UndefinedType1, "Delegate Sub A()").WithArguments("System.Object"), 23Diagnostic(ERRID.ERR_UndefinedType1, "Delegate Sub A()").WithArguments("System.IntPtr"), 24Diagnostic(ERRID.ERR_UndefinedType1, "Delegate Sub A()").WithArguments("System.AsyncCallback"), 25Diagnostic(ERRID.ERR_TypeRefResolutionError3, "A").WithArguments("System.MulticastDelegate", "test.dll"))
SymbolsTests\Source\EnumTests.vb (7)
948CompilationUtils.CreateCompilationWithMscorlib40(text).VerifyDiagnostics(Diagnostic(ERRID.ERR_CircularEvaluation1, "A").WithArguments("A")) 963Diagnostic(ERRID.ERR_MissingEndEnum, "Enum E"), 964Diagnostic(ERRID.ERR_InvInsideEndsEnum, ""), 965Diagnostic(ERRID.ERR_MissingEndBrack, "[A"), 966Diagnostic(ERRID.ERR_InvalidEndEnum, "End Enum"), 967Diagnostic(ERRID.ERR_BadEmptyEnum1, "E").WithArguments("E")) 982Diagnostic(ERRID.ERR_InvInsideEnum, "goo:"))
SymbolsTests\Source\EventTests.vb (2)
1104comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_ParamArrayIllegal1, "paramarray").WithArguments("Event"), 1105Diagnostic(ERRID.ERR_ParamArrayIllegal1, "paramarray").WithArguments("Delegate"))
SymbolsTests\Source\FieldTests.vb (1)
448vbCompilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ObjectReferenceNotSupplied, "field"))
SymbolsTests\Source\ImplementsTests.vb (2)
3678Diagnostic(ERRID.ERR_IdentNotMemberOfInterface4, "IRef.P").WithArguments("P", "P", "property", "IRef"), 3679Diagnostic(ERRID.ERR_UnimplementedMember3, "IRef").WithArguments("Class", "Impl", "Property P(ByRef x As Integer) As String", "IRef"))
SymbolsTests\Source\MeMyBaseMyClassTests.vb (79)
36Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Me"), 37Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Me"), 38Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Me"), 39Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Me")) 86VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_UseOfKeywordFromModule1, "Me").WithArguments("Me")) 285VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_InaccessibleMember3, "Me.goo").WithArguments("BaseClass", "Private Sub goo()", "Private")) 661Diagnostic(ERRID.ERR_ExpectedProcedure, "Me"), 662Diagnostic(ERRID.ERR_ExpectedProcedure, "Me"), 663Diagnostic(ERRID.ERR_NameNotMember2, "Me.Me").WithArguments("Me", "Class1"), 664Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.me").WithArguments("me", "Object"), 665Diagnostic(ERRID.ERR_NameNotMember2, "Me.mybase").WithArguments("mybase", "Class1"), 666Diagnostic(ERRID.ERR_NameNotMember2, "Me.myclass").WithArguments("myclass", "Class1"), 667Diagnostic(ERRID.ERR_NameNotMember2, "MyClass.me").WithArguments("me", "Class1")) 686Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "MyBase"), 687Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "MyBase")) 701VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_UnrecognizedTypeKeyword, "")) 719Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "MyBase"), 720Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "mybase")) 742VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_InaccessibleMember3, "MyBase.goo").WithArguments("BaseClass", "Private Sub goo()", "Private")) 805Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 806Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 807Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 808Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 809Diagnostic(ERRID.ERR_MissingIsInTypeOf, ""), 810Diagnostic(ERRID.ERR_UnrecognizedType, ""), 811Diagnostic(ERRID.ERR_ExpectedRparen, ""), 812Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 813Diagnostic(ERRID.ERR_LValueRequired, "MyBase")) 841VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.mybase").WithArguments("mybase", "DerivedClass")) 858VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_UseOfKeywordFromModule1, "MyBase").WithArguments("MyBase")) 887VerifyDiagnostics(comp2, Diagnostic(ERRID.ERR_InaccessibleMember3, "MyBase.goo").WithArguments("Class1", "Friend Sub goo()", "Friend")) 909VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.goo").WithArguments("goo", "BaseClass")) 931VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.goo").WithArguments("goo", "BaseClass")) 960VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 961Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 962Diagnostic(ERRID.ERR_ExpectedProcedure, "MyBase"), 963Diagnostic(ERRID.ERR_ExpectedProcedure, "MyBase")) 989VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_InaccessibleSymbol2, "MyBase.id").WithArguments("BaseClass.ID", "Private")) 1276Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1277Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1278Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1279Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1280Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1281Diagnostic(ERRID.ERR_ExpectedProcedure, "MyBase"), 1282Diagnostic(ERRID.ERR_ExpectedProcedure, "MyBase")) 1305Diagnostic(ERRID.ERR_NameNotDeclared1, "MyBase!").WithArguments("MyBase"), 1306Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.MyBase").WithArguments("MyBase", "Object"), 1307Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.MyClass").WithArguments("MyClass", "Object"), 1308Diagnostic(ERRID.ERR_NameNotMember2, "MyClass.MyBase").WithArguments("MyBase", "C1"), 1309Diagnostic(ERRID.ERR_NameNotMember2, "Me.MyBase").WithArguments("MyBase", "C1"), 1310Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.Me").WithArguments("Me", "Object"), 1311Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.Whatever").WithArguments("Whatever", "Object")) 1348Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1349Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1350Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1351Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1352Diagnostic(ERRID.ERR_MissingIsInTypeOf, ""), 1353Diagnostic(ERRID.ERR_UnrecognizedType, ""), 1354Diagnostic(ERRID.ERR_ExpectedRparen, ""), 1355Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1356Diagnostic(ERRID.ERR_LValueRequired, "MyClass")) 1380VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyClass.goo").WithArguments("goo", "BaseClass")) 1567VerifyDiagnostics(comp, Diagnostic(ERRID.ERR_UseOfKeywordNotInInstanceMethod1, "MyClass").WithArguments("MyClass"), 1568Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo")) 1686Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1687Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1688Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1689Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1690Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"), 1691Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"), 1692Diagnostic(ERRID.ERR_LValueRequired, "Me"), 1693Diagnostic(ERRID.ERR_LValueRequired, "MyClass"), 1694Diagnostic(ERRID.ERR_LValueRequired, "MyBase"), 1695Diagnostic(ERRID.ERR_UseOfKeywordFromModule1, "Me").WithArguments("Me"), 1696Diagnostic(ERRID.ERR_MyClassNotInClass, "MyClass").WithArguments("MyClass"), 1697Diagnostic(ERRID.ERR_UseOfKeywordFromModule1, "MyBase").WithArguments("MyBase"), 1698Diagnostic(ERRID.ERR_LValueRequired, "Me"), 1699Diagnostic(ERRID.ERR_LValueRequired, "MyClass"), 1700Diagnostic(ERRID.ERR_UseOfKeywordFromStructure1, "MyBase").WithArguments("MyBase"))
SymbolsTests\Source\OverridesTests.vb (13)
1145Diagnostic(ERRID.ERR_BadOverrideAccess2, "Set").WithArguments("Private Overrides Property Set Property1(value As Long)", "Protected Overridable Property Set Property1(value As Long)")) 1181Diagnostic(ERRID.ERR_BadOverrideAccess2, "Get").WithArguments("Protected Overrides Property Get Property1() As Long", "Public Overridable Property Get Property1() As Long")) 1366Diagnostic(ERRID.ERR_FriendAssemblyBadAccessOverride2, "P").WithArguments("Protected Friend Overrides WriteOnly Property P As Integer", "Protected Friend Overrides WriteOnly Property P As Integer"), 1367Diagnostic(ERRID.ERR_FriendAssemblyBadAccessOverride2, "Set").WithArguments("Protected Friend Overrides Property Set P(value As Integer)", "Protected Friend Overridable Overloads Property Set P(value As Integer)"), 1368Diagnostic(ERRID.ERR_OverridingPropertyKind2, "P").WithArguments("Protected Overrides WriteOnly Property P As Integer", "Public Overrides ReadOnly Property P As Integer"), 1369Diagnostic(ERRID.ERR_OverridingPropertyKind2, "P").WithArguments("Public Overrides ReadOnly Property P As Integer", "Protected Friend Overrides WriteOnly Property P As Integer"), 1370Diagnostic(ERRID.ERR_BadOverrideAccess2, "P").WithArguments("Protected Overrides ReadOnly Property P As Integer", "Public Overrides ReadOnly Property P As Integer")) 1563Diagnostic(ERRID.ERR_FriendAssemblyBadAccessOverride2, "P").WithArguments("Protected Friend Overrides WriteOnly Property P As Integer", "Protected Friend Overrides WriteOnly Property P As Integer"), 1564Diagnostic(ERRID.ERR_FriendAssemblyBadAccessOverride2, "Set").WithArguments("Protected Friend Overrides Property Set P(value As Integer)", "Protected Friend Overridable Overloads Property Set P(value As Integer)"), 1565Diagnostic(ERRID.ERR_OverridingPropertyKind2, "P").WithArguments("Protected Overrides WriteOnly Property P As Integer", "Public Overrides ReadOnly Property P As Integer"), 1566Diagnostic(ERRID.ERR_OverridingPropertyKind2, "P").WithArguments("Public Overrides ReadOnly Property P As Integer", "Protected Friend Overrides WriteOnly Property P As Integer"), 1567Diagnostic(ERRID.ERR_BadOverrideAccess2, "P").WithArguments("Protected Overrides ReadOnly Property P As Integer", "Public Overrides ReadOnly Property P As Integer")) 2617Diagnostic(ERRID.ERR_OverrideWithByref2, "P").WithArguments("Public Overrides Property P(x As Integer) As String", "Public Overridable Property P(ByRef x As Integer) As String"))
SymbolsTests\Source\PropertyTests.vb (16)
665Diagnostic(ERRID.ERR_SetValueNotPropertyType, "value")) 4781Diagnostic(ERRID.WRN_SynthMemberShadowsMember5, "Goo").WithArguments("property", "Goo", "get_Goo", "interface", "IA")) 4828Diagnostic(ERRID.ERR_NameNotMember2, "x.get_Goo").WithArguments("get_Goo", "I")) 5234Diagnostic(ERRID.ERR_VoidValue, "A.Goo")) 5260VerifyDiagnostics(Diagnostic(ERRID.ERR_AmbiguousInUnnamedNamespace1, "A(Of Integer)").WithArguments("A")) 5284Diagnostic(ERRID.ERR_NameNotMember2, "B.Goo").WithArguments("Goo", "B")) 5512Diagnostic(ERRID.ERR_NameNotMember2, "i.Instance").WithArguments("Instance", "Mismatched"), 5513Diagnostic(ERRID.ERR_NameNotMember2, "i.Instance").WithArguments("Instance", "Mismatched"), 5514Diagnostic(ERRID.ERR_UnsupportedProperty1, "StaticAndInstance").WithArguments("Signatures.StaticAndInstance"), 5515Diagnostic(ERRID.ERR_UnsupportedProperty1, "GetUsedAsSet").WithArguments("Signatures.GetUsedAsSet"), 5516Diagnostic(ERRID.ERR_NameNotMember2, "Mismatched.[Static]").WithArguments("Static", "Mismatched"), 5517Diagnostic(ERRID.ERR_NameNotMember2, "Mismatched.[Static]").WithArguments("Static", "Mismatched")) 5628Assert.Equal(ERRID.ERR_UnsupportedProperty1, staticAndInstance.GetUseSiteErrorInfo().Code) 5634Assert.Equal(ERRID.ERR_UnsupportedProperty1, getUsedAsSet.GetUseSiteErrorInfo().Code) 8088Diagnostic(ERRID.ERR_SynthMemberClashesWithMember5, "A").WithArguments("property", "A", "set_A", "class", "C")) 8092Diagnostic(ERRID.ERR_SynthMemberClashesWithMember5, "A").WithArguments("property", "A", "put_A", "class", "C"))
SymbolsTests\Source\SourceSymbolTests.vb (4)
533Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 534Diagnostic(ERRID.ERR_MissingEndBrack, "[goo"), 535Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 536Diagnostic(ERRID.ERR_MissingEndBrack, "[goo"))
SymbolsTests\Source\TypeTests.vb (4)
2502Diagnostic(ERRID.ERR_NewInStruct, "new").WithLocation(2, 9) 2549Diagnostic(ERRID.WRN_NamespaceCaseMismatch3, "ns1").WithArguments("ns1", "NS1", "a.vb") 2612Diagnostic(ERRID.WRN_NamespaceCaseMismatch3, "ns1").WithArguments("ns1", "NS1", "a.vb") 2736Diagnostic(ERRID.WRN_NamespaceCaseMismatch3, "ns1").WithArguments("ns1", "NS1", "a.vb")
SymbolsTests\SymbolErrorTests.vb (130)
954</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_StrictDisallowsImplicitProc, "+"), 955Diagnostic(ERRID.WRN_DefAsgNoRetValOpRef1, "End Operator").WithArguments("+")) 1409Diagnostic(ERRID.ERR_DuplicateParamName1, "a").WithArguments("a"), 1410Diagnostic(ERRID.ERR_DuplicateParamName1, "b").WithArguments("b"), 1411Diagnostic(ERRID.ERR_DuplicateParamName1, "c").WithArguments("c")) 1465Diagnostic(ERRID.ERR_BadEventFlags1, "Overrides").WithArguments("Overrides"), 1466Diagnostic(ERRID.ERR_BadEventFlags1, "Overloads").WithArguments("Overloads"), 1467Diagnostic(ERRID.ERR_BadEventFlags1, "Overloads").WithArguments("Overloads"), 1468Diagnostic(ERRID.ERR_BadEventFlags1, "Overrides").WithArguments("Overrides"), 1469Diagnostic(ERRID.ERR_BadEventFlags1, "NotOverridable").WithArguments("NotOverridable"), 1470Diagnostic(ERRID.ERR_BadEventFlags1, "Default").WithArguments("Default"), 1471Diagnostic(ERRID.ERR_BadEventFlags1, "Static").WithArguments("Static"), 1472Diagnostic(ERRID.WRN_OverrideType5, "e1").WithArguments("event", "e1", "event", "class", "c1"), 1473Diagnostic(ERRID.WRN_OverrideType5, "e2").WithArguments("event", "e2", "event", "class", "c1")) 1493Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Shared").WithArguments("Shared"), 1494Diagnostic(ERRID.WRN_UnusedLocalConst, "x").WithArguments("x")) 2167</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InterfaceCantUseEventSpecifier1, "Friend").WithArguments("Friend"), 2168Diagnostic(ERRID.ERR_InterfaceCantUseEventSpecifier1, "Protected").WithArguments("Protected"), 2169Diagnostic(ERRID.ERR_InterfaceCantUseEventSpecifier1, "Private").WithArguments("Private")) 3972comp.VerifyDiagnostics(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "C.c_int").WithArguments("C.c_int", "Friend"), 3973Diagnostic(ERRID.ERR_InaccessibleSymbol2, "C.c_priv").WithArguments("C.c_priv", "Private"), 3974Diagnostic(ERRID.ERR_InaccessibleSymbol2, "D").WithArguments("D", "Friend")) 5973Diagnostic(ERRID.ERR_InvalidAssemblyAttribute1, "c1").WithArguments("c1Attribute"), 5974Diagnostic(ERRID.ERR_InvalidModuleAttribute1, "c1").WithArguments("c1Attribute")) 5991</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidModuleAttribute1, "InternalsVisibleTo").WithArguments("InternalsVisibleTo")) 6381</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_MustOverOnNotInheritPartClsMem1, "MustOverride").WithArguments("MustOverride")) 6953</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_LocalsCannotHaveAttributes, "<My(12345)>")) 6989</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "attr1").WithArguments("attr1", "Beep1"), 6990Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "attr2").WithArguments("attr2", "Beep2"), 6991Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "attr3").WithArguments("attr3", "Beep3"), 6992Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "attr4").WithArguments("attr4", "Beep4"), 6993Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "attr5").WithArguments("attr5", "Beep5")) 7129</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "Assembly:clscompliant(true)").WithArguments("CLSCompliantAttribute"), 7130Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "Assembly:clscompliant(true)").WithArguments("CLSCompliantAttribute"), 7131Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "Module:clscompliant(true)").WithArguments("CLSCompliantAttribute"), 7132Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "Module:clscompliant(true)").WithArguments("CLSCompliantAttribute"), 7133Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrDelegate()").WithArguments("attrDelegate"), 7134Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrDelegate()").WithArguments("attrDelegate"), 7135Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrEnum()").WithArguments("attrEnum"), 7136Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrEnum()").WithArguments("attrEnum"), 7137Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrInterface()").WithArguments("attrInterface"), 7138Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrInterface()").WithArguments("attrInterface"), 7139Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrClass()").WithArguments("attrClass"), 7140Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrClass()").WithArguments("attrClass"), 7141Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrStruct()").WithArguments("attrStruct"), 7142Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrStruct()").WithArguments("attrStruct"), 7143Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrParameter()").WithArguments("attrParameter"), 7144Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrParameter()").WithArguments("attrParameter"), 7145Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrClass()").WithArguments("attrClass"), 7146Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrClass()").WithArguments("attrClass"), 7147Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrCtor()").WithArguments("attrCtor"), 7148Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrCtor()").WithArguments("attrCtor"), 7149Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrField()").WithArguments("attrField"), 7150Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrField()").WithArguments("attrField"), 7151Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrProperty()").WithArguments("attrProperty"), 7152Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrProperty()").WithArguments("attrProperty"), 7153Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrReturnType()").WithArguments("attrReturnType"), 7154Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrReturnType()").WithArguments("attrReturnType"), 7155Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrMethod()").WithArguments("attrMethod"), 7156Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "attrMethod()").WithArguments("attrMethod")) 7190</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1")) 7224</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1"), 7225Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1")) 7257</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1")) 7289</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1"), 7290Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1")) 7794Diagnostic(ERRID.ERR_ModuleCantUseDLLDeclareSpecifier1, "Protected").WithArguments("Protected")) 7808Diagnostic(ERRID.ERR_StructCantUseDLLDeclareSpecifier1, "Protected").WithArguments("Protected")) 7927compilation1.VerifyDiagnostics(Diagnostic(ERRID.ERR_ObsoleteAsAny, "Any").WithArguments("Any")) 9557</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_SynthMemberClashesWithMember5, "obj1").WithArguments("event", "obj1", "obj1Event", "module", "M1")) 9767</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_MemberClashesWithSynth6, "ObjEvent").WithArguments("WithEvents variable", "ObjEvent", "event", "Obj", "module", "M1")) 13269</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_AttributeMustInheritSysAttr, "MyAttribute").WithArguments("MyAttribute")) 13291</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_AttributeCannotBeAbstract, "My").WithArguments("MyAttribute")) 13315</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_AttributeCannotBeAbstract, "My").WithArguments("MyAttribute")) 13402Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1"")").WithArguments("Test, Version=1").WithLocation(11, 2), 13403Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1.*"")").WithArguments("Test, Version=1.*").WithLocation(12, 2), 13404Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1.1.*"")").WithArguments("Test, Version=1.1.*").WithLocation(13, 2), 13405Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, Version=1.1.1.*"")").WithArguments("Test, Version=1.1.1.*").WithLocation(14, 2), 13406Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, ProcessorArchitecture=MSIL"")").WithArguments("Test, ProcessorArchitecture=MSIL").WithLocation(15, 2), 13407Diagnostic(ERRID.ERR_FriendAssemblyBadArguments, "Assembly: InternalsVisibleTo(""Test, CuLTure=EN"")").WithArguments("Test, CuLTure=EN").WithLocation(16, 2)) 13431Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""\u1000000;a"")").WithArguments("\u1000000;a").WithLocation(6, 2), 13432Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""a'b'c"")").WithArguments("a'b'c").WithLocation(7, 2), 13433Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""Test, PublicKey=Null"")").WithArguments("Test, PublicKey=Null").WithLocation(8, 2), 13434Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""Test, Bar"")").WithArguments("Test, Bar").WithLocation(9, 2), 13435Diagnostic(ERRID.ERR_FriendAssemblyNameInvalid, "Assembly: InternalsVisibleTo(""Test, Version"")").WithArguments("Test, Version").WithLocation(10, 2)) 13968</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_AttrCannotBeGenerics, "attributeusageattribute").WithArguments("attributeusageattribute"), 13969Diagnostic(ERRID.ERR_AttrCannotBeGenerics, "myattr").WithArguments("Test(Of attributeusageattribute).myattr"), 13970Diagnostic(ERRID.ERR_GenericClassCannotInheritAttr, "myattr")) 14187compilation1.VerifyDiagnostics(Diagnostic(ERRID.ERR_DeclaresCantBeInGeneric, "goo")) 16539</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_OperatorMustBePublic, "Private").WithArguments("Private")) 16560</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_OperatorMustBeShared, "IsFalse")) 16580</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_BadOperatorFlags1, "Overridable").WithArguments("Overridable")) 16602Diagnostic(ERRID.ERR_OneParameterRequired1, "IsFalse").WithArguments("IsFalse"), 16603Diagnostic(ERRID.ERR_OneParameterRequired1, "IsTrue").WithArguments("IsTrue")) 16620</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_TwoParametersRequired1, "And").WithArguments("And")) 16637Diagnostic(ERRID.ERR_ExpectedLparen, ""), 16638Diagnostic(ERRID.ERR_ExpectedRparen, ""), 16639Diagnostic(ERRID.ERR_Syntax, "("), 16640Diagnostic(ERRID.ERR_OneOrTwoParametersRequired1, "+").WithArguments("+"), 16641Diagnostic(ERRID.WRN_DefAsgNoRetValOpRef1, "End Operator").WithArguments("+")) 16667</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConvMustBeWideningOrNarrowing, "CType")) 16681</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_InvalidSpecifierOnNonConversion1, "Widening").WithArguments("Widening")) 16696</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_UnaryParamMustBeContainingType1, "IsTrue").WithArguments("S1")) 16711</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_BinaryParamMustBeContainingType1, "And").WithArguments("S1")) 16726</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConvParamMustBeContainingType1, "CType").WithArguments("S1")) 16741</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_OperatorRequiresBoolReturnType1, "IsTrue").WithArguments("IsTrue")) 16756</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionToSameType, "CType")) 16773Diagnostic(ERRID.ERR_AccessMismatchOutsideAssembly4, "I1").WithArguments("op_Implicit", "I1", "structure", "S1"), 16774Diagnostic(ERRID.ERR_ConversionToInterfaceType, "CType")) 16792</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionToBaseType, "CType")) 16810</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionToDerivedType, "CType")) 16825</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionToObject, "CType")) 16842</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionFromInterfaceType, "CType")) 16859</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionFromBaseType, "CType")) 16876</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionFromDerivedType, "CType")) 16891</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_ConversionFromObject, "CType")) 16908</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_MatchingOperatorExpected2, "IsFalse").WithArguments("IsTrue", "Public Shared Operator IsFalse(z As S1) As Boolean")) 16922</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_OperatorRequiresIntegerParameter1, ">>").WithArguments(">>")) 17469compilation1.VerifyDiagnostics(Diagnostic(ERRID.ERR_LambdasCannotHaveAttributes, "<System.Runtime.InteropServices.InAttribute()>")) 17486</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_CantSpecifyParamsOnLambdaParamNoType, "y()")) 17499</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_AutoPropertyInitializedInStructure, "AP"), 17500Diagnostic(ERRID.ERR_NewIfNullOnGenericParam, "T")) 18763</compilation>).VerifyDiagnostics(Diagnostic(ERRID.WRN_SynthMemberShadowsMember5, "E").WithArguments("event", "E", "EEventHandler", "class", "A"), 18764Diagnostic(ERRID.WRN_SynthMemberShadowsMember5, "E").WithArguments("event", "E", "EEvent", "class", "A"), 18765Diagnostic(ERRID.WRN_SynthMemberShadowsMember5, "E").WithArguments("event", "E", "add_E", "class", "A"), 18766Diagnostic(ERRID.WRN_SynthMemberShadowsMember5, "E").WithArguments("event", "E", "remove_E", "class", "A")) 19347</compilation>).VerifyDiagnostics(Diagnostic(ERRID.WRN_ShadowingGenericParamWithParam1, "T").WithArguments("T")) 20993Assert.Equal(DirectCast(ERRID.ERR_UndefinedType1, Integer), err.Code) 24625Assert.Equal(ERRID.ERR_UnsupportedType1, CType(info.Code, ERRID))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (608)
Parser\ParseAsyncTests.vb (1)
369Assert.True(Aggregate d In tree.GetDiagnostics() Into All(d.Code = ERRID.ERR_ObsoleteArgumentsNeedParens))
Parser\ParseAttributes.vb (11)
73Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Dim"), 74Diagnostic(ERRID.ERR_ExpectedGreater, ""), 75Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "clscompliant(true)"), 76Diagnostic(ERRID.ERR_ExpectedEOS, ">")) 174Diagnostic(ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt, "<SomeAttribute()>"), 175Diagnostic(ERRID.ERR_UnrecognizedType, ""), 176Diagnostic(ERRID.ERR_ExpectedDeclaration, "IMammals")) 200]]>, Diagnostic(ERRID.ERR_FileAttributeNotAssemblyOrModule, "")) 208]]>, Diagnostic(ERRID.ERR_FileAttributeNotAssemblyOrModule, ""), 209Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 210Diagnostic(ERRID.ERR_ExpectedGreater, ""))
Parser\ParseDeclarationTests.vb (39)
241Diagnostic(ERRID.ERR_InvInsideEnum, "A:")) 248Diagnostic(ERRID.ERR_InvInsideEnum, "A:")) 496Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 497Diagnostic(ERRID.ERR_TypeParamMissingAsCommaOrRParen, ""), 498Diagnostic(ERRID.ERR_IllegalChar, "]")) 512Diagnostic(ERRID.ERR_MissingEndEnum, "Enum myenum"), 513Diagnostic(ERRID.ERR_InvInsideEndsEnum, "Shared Narrowing Operator CType(ByVal x As Integer) As c2"), 514Diagnostic(ERRID.ERR_InvalidEndEnum, "End Enum")) 553Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "VERSION 1.0 CLASS"), 554Diagnostic(ERRID.ERR_ObsoleteArgumentsNeedParens, "1.0 CLASS"), 555Diagnostic(ERRID.ERR_ArgumentSyntax, "CLASS"), 556Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "BEGIN"), 557Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "MultiUse = -1"), 558Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Persistable = 0"), 559Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "DataBindingBehavior = 0"), 560Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "DataSourceBehavior = 0"), 561Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "MTSTransactionMode = 0"), 562Diagnostic(ERRID.ERR_UnrecognizedEnd, "END"), 563Diagnostic(ERRID.ERR_ExpectedSpecifier, "VB_Name = ""Class1"""), 564Diagnostic(ERRID.ERR_ExpectedDeclaration, "Attribute"), 565Diagnostic(ERRID.ERR_ExpectedSpecifier, "VB_GlobalNameSpace = False"), 566Diagnostic(ERRID.ERR_ExpectedDeclaration, "Attribute"), 567Diagnostic(ERRID.ERR_ExpectedSpecifier, "VB_Creatable = True"), 568Diagnostic(ERRID.ERR_ExpectedDeclaration, "Attribute"), 569Diagnostic(ERRID.ERR_ExpectedSpecifier, "VB_PredeclaredId = False"), 570Diagnostic(ERRID.ERR_ExpectedDeclaration, "Attribute"), 571Diagnostic(ERRID.ERR_ExpectedSpecifier, "VB_Exposed = True"), 572Diagnostic(ERRID.ERR_ExpectedDeclaration, "Attribute"), 573Diagnostic(ERRID.ERR_ObsoleteObjectNotVariant, "Variant")) 689Diagnostic(ERRID.ERR_InvalidParameterSyntax, "anonymous1"), 690Diagnostic(ERRID.ERR_AutoPropertyCantHaveParams, <![CDATA[( 768<error id=<%= CInt(ERRID.ERR_ExpectedEndModule) %>/> 769<error id=<%= CInt(ERRID.ERR_NamespaceNotAtNamespace) %>/> 770<error id=<%= CInt(ERRID.ERR_EndModuleNoModule) %>/> 804<error id=<%= CInt(ERRID.ERR_ExpectedEndModule) %>/> 805<error id=<%= CInt(ERRID.ERR_NamespaceNotAtNamespace) %>/> 806<error id=<%= CInt(ERRID.ERR_ExpectedEndNamespace) %>/> 807<error id=<%= CInt(ERRID.ERR_ExpectedEndClass) %>/> 808<error id=<%= CInt(ERRID.ERR_EndModuleNoModule) %>/>
Parser\ParseDirectives.vb (103)
310Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "BlahBlah"), 311Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "BlahBlah") 491Diagnostic(ERRID.ERR_ExpectedEndIf, "If "), 492Diagnostic(ERRID.ERR_ExpectedExpression, ""), 493Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 494Diagnostic(ERRID.ERR_Syntax, "True"), 495Diagnostic(ERRID.ERR_UnrecognizedEnd, "End"), 496Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 497Diagnostic(ERRID.ERR_ExpectedEndIf, "If"), 498Diagnostic(ERRID.ERR_ExpectedExpression, ""), 499Diagnostic(ERRID.ERR_LbNoMatchingIf, "#End If")) 847Diagnostic(ERRID.WRN_BadGUIDFormatExtChecksum, """{12345678-1234-1234-1234-12345678901bc}"""), 848Diagnostic(ERRID.WRN_BadChecksumValExtChecksum, """1a2b3c4e65f617239a49b9a9c0391849d34950f923fab9484""") 865Diagnostic(ERRID.WRN_BadChecksumValExtChecksum, """1a2v""") 934Diagnostic(ERRID.ERR_ExpectedEndClass, "Class MissingEnd").WithLocation(4, 1) 1041Diagnostic(ERRID.ERR_IllegalChar, "$")) 1104]]>, Diagnostic(ERRID.ERR_IllegalChar, "$")) 1111]]>, Diagnostic(ERRID.ERR_IllegalChar, "$")) 1147Diagnostic(ERRID.ERR_ExpectedEndRegion, "#Region ""Start""")) 1162Diagnostic(ERRID.ERR_ExpectedEndRegion, "#Region ""Start"""), 1163Diagnostic(ERRID.ERR_ExpectedEndRegion, "#Region ""Tailing""")) 1229Diagnostic(ERRID.ERR_ExpectedEndRegion, "#region """""), 1230Diagnostic(ERRID.ERR_ExpectedEOS, "#")) 2358Assert.Equal(37306, ERRID.ERR_CommentsAfterLineContinuationNotAvailable1) 2380Assert.Equal(37306, ERRID.ERR_CommentsAfterLineContinuationNotAvailable1) 2444Assert.Equal(37306, ERRID.ERR_CommentsAfterLineContinuationNotAvailable1) 2468Assert.Equal(37306, ERRID.ERR_CommentsAfterLineContinuationNotAvailable1) 2783Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13)) 2789Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 2798Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 2823Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13)) 2829Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 2838Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 2863Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13)) 2869Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 2878Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 2903Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13)) 2909Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 2918Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 2941Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13), 2942Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17), 2943Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13)) 2949Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True), 2950Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17), 2951Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 2957Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17)) 2961Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True), 2962Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17).WithWarningAsError(True), 2963Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 2986Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13), 2987Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17), 2988Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13)) 2994Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True), 2995Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17), 2996Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 3002Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17)) 3006Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13).WithWarningAsError(True), 3007Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17).WithWarningAsError(True), 3008Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 3033Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17), 3034Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(5, 13)) 3040Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True), 3041Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17)) 3047Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17)) 3051Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True), 3052Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17).WithWarningAsError(True)) 3076Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17), 3077Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13)) 3083Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17), 3084Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 3090Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17)) 3094Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17).WithWarningAsError(True), 3095Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13).WithWarningAsError(True)) 3125Diagnostic(ERRID.WRN_UnusedLocal, "f").WithArguments("f").WithLocation(10, 13), 3126Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").WithLocation(13, 17)) 3132Diagnostic(ERRID.WRN_UnusedLocal, "f").WithArguments("f").WithLocation(10, 13).WithWarningAsError(True), 3133Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").WithLocation(13, 17)) 3139Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").WithLocation(13, 17)) 3143Diagnostic(ERRID.WRN_UnusedLocal, "f").WithArguments("f").WithLocation(10, 13).WithWarningAsError(True), 3144Diagnostic(ERRID.WRN_DefAsgUseNullRef, "g").WithArguments("g").WithLocation(13, 17).WithWarningAsError(True)) 3256Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(5, 13), 3257Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17), 3258Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13)) 3264Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True), 3265Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17), 3266Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 3272Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17)) 3276Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(5, 13).WithWarningAsError(True), 3277Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(7, 17).WithWarningAsError(True), 3278Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(9, 13).WithWarningAsError(True)) 3363Diagnostic(ERRID.WRN_DefAsgUseNullRef, "b").WithArguments("b").WithLocation(6, 17), 3364Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13)) 3383Diagnostic(ERRID.ERR_TypeMismatch2, "x").WithArguments("Integer", "System.Exception").WithLocation(5, 37)) 3544Diagnostic(ERRID.ERR_ExpectedWarningKeyword, "").WithLocation(3, 10), 3545Diagnostic(ERRID.ERR_ExpectedWarningKeyword, "").WithLocation(5, 9), 3546Diagnostic(ERRID.WRN_UnusedLocal, "a").WithArguments("a").WithLocation(4, 13)) 3569Diagnostic(ERRID.ERR_ExpectedIdentifier, "").WithLocation(3, 26), 3570Diagnostic(ERRID.ERR_ExpectedIdentifier, "").WithLocation(7, 17), 3571Diagnostic(ERRID.ERR_ExpectedIdentifier, "").WithLocation(8, 1), 3572Diagnostic(ERRID.WRN_DefAsgUseNullRef, "e").WithArguments("e").WithLocation(10, 17), 3573Diagnostic(ERRID.WRN_UnusedLocal, "d").WithArguments("d").WithLocation(8, 13)) 3602Diagnostic(ERRID.WRN_SharedMemberThroughInstance, "j.MaxValue").WithLocation(9, 25), 3603Diagnostic(ERRID.WRN_SharedMemberThroughInstance, "j.MaxValue").WithLocation(14, 21))
Parser\ParseErrorTests.vb (82)
45Diagnostic(ERRID.ERR_LbExpectedEndIf, "#If True")) 59Diagnostic(ERRID.ERR_LbExpectedEndIf, "#If True Then")) 75Diagnostic(ERRID.ERR_LbExpectedEndIf, "#If True ThEn"), 76Diagnostic(ERRID.ERR_LbExpectedEndIf, "#If True TheN"), 77Diagnostic(ERRID.ERR_LbExpectedEndIf, "#If True Then")) 94Diagnostic(ERRID.ERR_LbExpectedEndIf, "#If True TheN"), 95Diagnostic(ERRID.ERR_LbExpectedEndIf, "#If True Then")) 108Diagnostic(ERRID.ERR_LbElseNoMatchingIf, "#Else"), 109Diagnostic(ERRID.ERR_LbExpectedEndIf, "")) 458Diagnostic(ERRID.ERR_ExecutableAsDeclaration, ".Dim(x131 = Sub())"), 459Diagnostic(ERRID.ERR_SubRequiresSingleStatement, "Sub()")) 543Diagnostic(ERRID.ERR_ExpectedDeclaration, "Global")) 862</compilation>).VerifyDiagnostics(Diagnostic(ERRID.ERR_RequiredConstExpr, "New Integer(1, 1) {{1, 2}, {2, 3}}"), 863Diagnostic(ERRID.ERR_OverloadWithDefault2, "goo").WithArguments("Public Sub goo([i As Integer(*,*)])", "Public Sub goo([i As Integer(*,*) = Nothing])")) 874Diagnostic(ERRID.ERR_RequiredConstConversion2, "#If Var Then").WithArguments("String", "Boolean")) 1157Diagnostic(ERRID.ERR_ExpectedNext, "For Each item As String In collectionObject"), 1158Diagnostic(ERRID.ERR_NextNoMatchingFor, "Next"), 1159Diagnostic(ERRID.ERR_InvalidEndSub, "End Sub")) 1298ParseAndVerify(code, Diagnostic(ERRID.ERR_UnrecognizedType, ""), 1299Diagnostic(ERRID.ERR_UnrecognizedType, "")) 1343]]>, Diagnostic(ERRID.ERR_InvOutsideProc, "File:"), 1344Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "abc")) 1356Diagnostic(ERRID.ERR_MethodMustBeFirstStatementOnLine, "Sub sub1()"), 1357Diagnostic(ERRID.ERR_ExpectedDeclaration, "Unicode")) 1808ParseAndVerify(code, Diagnostic(ERRID.ERR_ExpectedEOS, "{")) 2027ParseAndVerify(code, Diagnostic(ERRID.ERR_ExpectedEndExternalSource, "#externalsource("""",2)")) 2037Diagnostic(ERRID.ERR_InvInsideInterface, "Declare Sub Goo Lib ""My""")) 2066Diagnostic(ERRID.ERR_MissingEndEnum, "Public Enum e"), 2067Diagnostic(ERRID.ERR_InvInsideEndsEnum, "Class Goo")) 2389Diagnostic(ERRID.ERR_ExpectedEndClass, "Class C1"), 2390Diagnostic(ERRID.ERR_UnrecognizedEnd, "End")) 2404Diagnostic(ERRID.ERR_EndProp, "Public Property strProperty() as string"), 2405Diagnostic(ERRID.ERR_UnrecognizedEnd, "End"), 2406Diagnostic(ERRID.ERR_InvalidEndProperty, "End Property")) 2430Diagnostic(ERRID.ERR_ExpectedEndRegion, "#Region ""Start""")) 2438Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "On 1 Goto 1000"), 2439Diagnostic(ERRID.ERR_ObsoleteOnGotoGosub, "")) 2759Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 2760Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 2761Diagnostic(ERRID.ERR_ExpectedIdentifier, "_")) 2816Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 2817Diagnostic(ERRID.ERR_ExpectedIdentifier, "_")) 2900Diagnostic(ERRID.ERR_InvInsideEnum, "if(true,3,4)").WithLocation(5, 21)) 2914Diagnostic(ERRID.ERR_InvInsideBlock, "Class Goo").WithArguments("If")) 2927Diagnostic(ERRID.ERR_InvInsideBlock, "Function Goo").WithArguments("Do Loop")) 2940Diagnostic(ERRID.ERR_InvInsideBlock, "Sub Goo").WithArguments("While")) 2957Diagnostic(ERRID.ERR_ExpectedExpression, ""), 2958Diagnostic(ERRID.ERR_InvalidDate, "#8/13/2002 29:14:00 PM#"), 2959Diagnostic(ERRID.ERR_ExpectedExpression, ""), 2960Diagnostic(ERRID.ERR_InvalidDate, "#23/04/2002#"), 2961Diagnostic(ERRID.ERR_ExpectedExpression, ""), 2962Diagnostic(ERRID.ERR_InvalidDate, "#02/29/2009#")) 3793ParseAndVerify(code, Diagnostic(ERRID.ERR_UnrecognizedType, "").WithLocation(2, 50), 3794Diagnostic(ERRID.ERR_BadConstraintSyntax, "").WithLocation(2, 50)) 3820ParseAndVerify(code, Diagnostic(ERRID.ERR_TypeParamMissingCommaOrRParen, ""), 3821Diagnostic(ERRID.ERR_TypeParamMissingCommaOrRParen, ""), 3822Diagnostic(ERRID.ERR_TypeParamMissingCommaOrRParen, "T"), 3823Diagnostic(ERRID.ERR_TypeParamMissingCommaOrRParen, "Integer")) 3838]]>, Diagnostic(ERRID.ERR_UnknownOperator, "__"), 3839Diagnostic(ERRID.ERR_UnknownOperator, "")) 4001ParseAndVerify(code, Diagnostic(ERRID.ERR_ExpectedExpression, ""), 4002Diagnostic(ERRID.ERR_ExpectedExpression, ""), 4003Diagnostic(ERRID.ERR_ExpectedExpression, "")) 4019ParseAndVerify(code, Diagnostic(ERRID.ERR_ExpectedExpression, ""), 4020Diagnostic(ERRID.ERR_ExpectedExpression, ""), 4021Diagnostic(ERRID.ERR_ExpectedExpression, ""), 4022Diagnostic(ERRID.ERR_ExpectedExpression, "")) 4076Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using stream As New IO.MemoryStream()"), 4077Diagnostic(ERRID.ERR_EndUsingWithoutUsing, "End Using"), 4078Diagnostic(ERRID.ERR_EndUsingWithoutUsing, "End USING")) 4512Diagnostic(ERRID.ERR_OptionStmtWrongOrder, "option Compare Binary"), 4513Diagnostic(ERRID.ERR_OptionStmtWrongOrder, "option Explicit Off"), 4514Diagnostic(ERRID.ERR_OptionStmtWrongOrder, "option Strict off"), 4515Diagnostic(ERRID.ERR_ImportsMustBeFirst, "Imports VB6 = Microsoft.VisualBasic"), 4516Diagnostic(ERRID.ERR_ImportsMustBeFirst, "Imports Microsoft.VisualBasic"), 4517Diagnostic(ERRID.ERR_ExpectedSpecifier, "x"), 4518Diagnostic(ERRID.ERR_ExpectedDeclaration, "deflng"), 4519Diagnostic(ERRID.ERR_ImplementsStmtWrongOrder, "Implements I1"), 4520Diagnostic(ERRID.ERR_InheritsStmtWrongOrder, "Inherits c2"), 4521Diagnostic(ERRID.ERR_EndSubExpected, "Sub goo()")) 4578Diagnostic(ERRID.ERR_ExpectedEndClass, "class c1"), 4579Diagnostic(ERRID.ERR_UnrecognizedEnd, "end")).VerifyNoAdjacentTriviaHaveSameKind()
Parser\ParseExpression.vb (30)
1083Diagnostic(ERRID.ERR_SubRequiresSingleStatement, "sub () select case 0 : case 0 : end select")) 1108]]>, Diagnostic(ERRID.ERR_ExpectedExpression, "")) 1129Diagnostic(ERRID.ERR_ExpectedEndModule, "Module Module1"), 1130Diagnostic(ERRID.ERR_MultilineLambdaMissingFunction, "Function()")) 2053ParseAndVerify(code, Diagnostic(ERRID.ERR_ExpectedIn, ""), 2054Diagnostic(ERRID.ERR_ExpectedEOS, "Equals"), 2055Diagnostic(ERRID.ERR_ExpectedEOS, "Class")) 2071]]>, Diagnostic(ERRID.ERR_ExpectedEndOfExpression, "Sum")) 2086]]>, Diagnostic(ERRID.ERR_ExpectedIdentifier, "")) 2099ParseAndVerify(code, Diagnostic(ERRID.ERR_UnrecognizedTypeKeyword, "")) 2113ParseAndVerify(code, Diagnostic(ERRID.ERR_UnrecognizedType, ")"), 2114Diagnostic(ERRID.ERR_UnrecognizedType, ")"), 2115Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 2116Diagnostic(ERRID.ERR_UnrecognizedType, ")")) 2149Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 2150Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 2151Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 2152Diagnostic(ERRID.ERR_ExpectedXmlName, "Name"), 2153Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " ")) 2213Diagnostic(ERRID.ERR_UnrecognizedType, ""), 2214Diagnostic(ERRID.ERR_IllegalChar, "$"), 2215Diagnostic(ERRID.ERR_ExpectedInto, "")) 2230Diagnostic(ERRID.ERR_ExpectedExpression, ""), 2231Diagnostic(ERRID.ERR_ExpectedOn, ""), 2232Diagnostic(ERRID.ERR_ExpectedInto, ""), 2233Diagnostic(ERRID.ERR_IllegalChar, "$")) 2836Assert.Equal(CInt(ERRID.ERR_TooLongOrComplexExpression), diagnostic.Code) 2870Assert.Equal(CInt(ERRID.ERR_TooLongOrComplexExpression), diagnostic.Code) 2891Assert.Equal(CInt(ERRID.ERR_TooLongOrComplexExpression), diagnostic.Code) 2912Assert.Equal(CInt(ERRID.ERR_TooLongOrComplexExpression), diagnostic.Code)
Parser\ParseImports.vb (6)
76Diagnostic(ERRID.ERR_ExpectedXmlns, ""), 77Diagnostic(ERRID.ERR_ExpectedGreater, "") 86Diagnostic(ERRID.ERR_ExpectedXmlns, ""), 87Diagnostic(ERRID.ERR_ExpectedGreater, "xml")) 95Diagnostic(ERRID.ERR_ExpectedXmlns, ""), 96Diagnostic(ERRID.ERR_ExpectedGreater, "p"))
Parser\ParseLanguageVersionTests.vb (32)
28Diagnostic(ERRID.ERR_LanguageVersion, "Async").WithArguments("9.0", "async methods or lambdas", "11").WithLocation(3, 5), 29Diagnostic(ERRID.ERR_LanguageVersion, "Async").WithArguments("9.0", "async methods or lambdas", "11").WithLocation(7, 5)) 45Diagnostic(ERRID.ERR_LanguageVersion, "Iterator").WithArguments("9.0", "iterators", "11").WithLocation(3, 13), 46Diagnostic(ERRID.ERR_LanguageVersion, "Yield").WithArguments("9.0", "iterators", "11").WithLocation(4, 9), 47Diagnostic(ERRID.ERR_LanguageVersion, "Yield").WithArguments("9.0", "iterators", "11").WithLocation(5, 9), 48Diagnostic(ERRID.ERR_LanguageVersion, "Yield").WithArguments("9.0", "iterators", "11").WithLocation(6, 9)) 62Diagnostic(ERRID.ERR_LanguageVersion, "From").WithArguments("9.0", "collection initializers", "10").WithLocation(4, 51)) 76Diagnostic(ERRID.ERR_LanguageVersion, "Out").WithArguments("9.0", "variance", "10").WithLocation(2, 23), 77Diagnostic(ERRID.ERR_LanguageVersion, "In").WithArguments("9.0", "variance", "10").WithLocation(2, 30)) 100Diagnostic(ERRID.ERR_LanguageVersion, "Async").WithArguments("9.0", "async methods or lambdas", "11").WithLocation(3, 13)) 120Diagnostic(ERRID.ERR_LanguageVersion), 121Diagnostic(ERRID.ERR_LanguageVersion)) 142Diagnostic(ERRID.ERR_LanguageVersion, "Public Property Name As String").WithArguments("9.0", "auto-implemented properties", "10").WithLocation(3, 5), 143Diagnostic(ERRID.ERR_LanguageVersion, "Public Property Owner As String = ""DefaultName""").WithArguments("9.0", "auto-implemented properties", "10").WithLocation(4, 5)) 173Diagnostic(ERRID.ERR_LanguageVersion), 174Diagnostic(ERRID.ERR_LanguageVersion), 175Diagnostic(ERRID.ERR_LanguageVersion), 176Diagnostic(ERRID.ERR_LanguageVersion), 177Diagnostic(ERRID.ERR_LanguageVersion)) 203Diagnostic(ERRID.ERR_LanguageVersion), 204Diagnostic(ERRID.ERR_LanguageVersion)) 220Diagnostic(ERRID.ERR_LanguageVersion, "NameOf").WithArguments("9.0", "'nameof' expressions", "14").WithLocation(5, 41)) 236Diagnostic(ERRID.ERR_LanguageVersion, "?").WithArguments("9.0", "null conditional operations", "14").WithLocation(4, 31), 237Diagnostic(ERRID.ERR_LanguageVersion, "?").WithArguments("9.0", "null conditional operations", "14").WithLocation(5, 22)) 256Diagnostic(ERRID.ERR_LanguageVersion, "Global").WithArguments($"{CInt(version)}.0", "declaring a Global namespace", "11").WithLocation(4, 11)) 297Diagnostic(ERRID.ERR_LanguageVersion, "Global").WithArguments($"{CInt(version)}.0", "declaring a Global namespace", "11").WithLocation(4, 11)) 320Diagnostic(ERRID.ERR_LanguageVersion, "$""world""").WithArguments("12.0", "interpolated strings", "14").WithLocation(4, 18), 321Diagnostic(ERRID.ERR_LanguageVersion, "$""hello {x1}""").WithArguments("12.0", "interpolated strings", "14").WithLocation(5, 18)) 339Diagnostic(ERRID.ERR_LanguageVersion, "(1, 2)").WithArguments("14.0", "tuples", "15").WithLocation(4, 18), 340Diagnostic(ERRID.ERR_LanguageVersion, "(A:=1, B:=2)").WithArguments("14.0", "tuples", "15").WithLocation(5, 18)) 358Diagnostic(ERRID.ERR_LanguageVersion, "(Integer, Integer)").WithArguments("14.0", "tuples", "15").WithLocation(4, 19), 359Diagnostic(ERRID.ERR_LanguageVersion, "(A As Integer, B As Integer)").WithArguments("14.0", "tuples", "15").WithLocation(5, 19))
Parser\ParseMethods.vb (5)
153Diagnostic(ERRID.ERR_InvInsideInterface, "shared operator +(i as integer, j as integer) as integer"), 154Diagnostic(ERRID.ERR_InvInsideInterface, "return 0"), 155Diagnostic(ERRID.ERR_InvInsideInterface, "end operator")) 1058Diagnostic(ERRID.ERR_ExpectedNext, "For j = 1 To 10"), 1059Diagnostic(ERRID.ERR_ExtraNextVariable, "i"))
Parser\ParserRegressionTests.vb (2)
761tree.GetDiagnostics().VerifyErrorCodes(Diagnostic(ERRID.ERR_BinaryFile)) 934Assert.Equal(Syntax.InternalSyntax.Scanner.BadTokenCountLimit, tree.GetDiagnostics().Where(Function(d) d.Code = ERRID.ERR_IllegalChar).Count())
Parser\ParseStatements.vb (137)
380Diagnostic(ERRID.ERR_ExpectedEOS, "ElseIf True Then").WithLocation(4, 18), 381Diagnostic(ERRID.ERR_ExpectedEOS, "x").WithLocation(4, 35), 382Diagnostic(ERRID.ERR_ExpectedEOS, "elseIf").WithLocation(5, 24) 407Diagnostic(ERRID.ERR_LineContWithCommentOrNoPrecSpace, "_")) 672]]>, Diagnostic(ERRID.ERR_ExpectedEndIf, "If True Then")) 848]]>, Diagnostic(ERRID.ERR_ExpectedComma, ""), 849Diagnostic(ERRID.ERR_ExpectedExpression, "") 866]]>, Diagnostic(ERRID.ERR_ExpectedComma, ""), 867Diagnostic(ERRID.ERR_ExpectedExpression, ""), 868Diagnostic(ERRID.ERR_ExpectedEQ, ""), 869Diagnostic(ERRID.ERR_ExpectedExpression, "") 882]]>, Diagnostic(ERRID.ERR_ExpectedExpression, ""), 883Diagnostic(ERRID.ERR_ExpectedEQ, ""), 884Diagnostic(ERRID.ERR_ExpectedExpression, "") 896]]>, Diagnostic(ERRID.ERR_ExpectedExpression, ""), 897Diagnostic(ERRID.ERR_ExpectedRparen, ""), 898Diagnostic(ERRID.ERR_ExpectedEQ, ""), 899Diagnostic(ERRID.ERR_ExpectedExpression, "") 2008Diagnostic(ERRID.ERR_NextNoMatchingFor, "Next.goo(GetType(Func(Of A))), """""), 2009Diagnostic(ERRID.ERR_ExtraNextVariable, ".goo(GetType(Func(Of A)))")) 2311]]>, Diagnostic(ERRID.ERR_ExpectedIn, ""), 2312Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "In"), 2313Diagnostic(ERRID.ERR_ExpectedIn, "")) 2328End Module]]>, Diagnostic(ERRID.ERR_Syntax, "100")) 3397]]>, Diagnostic(ERRID.ERR_CantCombineInitializers, "FROM {2,3}"), 3398Diagnostic(ERRID.ERR_CantCombineInitializers, "with"), 3399Diagnostic(ERRID.ERR_CantCombineInitializers, "From"), 3400Diagnostic(ERRID.ERR_CantCombineInitializers, "From {""Hello World!""}"), 3401Diagnostic(ERRID.ERR_CantCombineInitializers, "with {.a = ""goo""}")) 3419Diagnostic(ERRID.ERR_ObsoleteLetSetNotNeeded, "Let"), 3420Diagnostic(ERRID.ERR_UnrecognizedEnd, "End"), 3421Diagnostic(ERRID.ERR_ExpectedDeclaration, "Get"), 3422Diagnostic(ERRID.ERR_InvalidEndGet, "End Get"), 3423Diagnostic(ERRID.ERR_ExpectedDeclaration, "Set"), 3424Diagnostic(ERRID.ERR_InvalidEndSet, "End Set"), 3425Diagnostic(ERRID.ERR_InvalidEndProperty, "End Property")) 3439]]>, Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, Environment.NewLine), 3440Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " ")) 3456Diagnostic(ERRID.ERR_ExpectedXmlns, ""), 3457Diagnostic(ERRID.ERR_ExpectedGreater, "xmlns"), 3458Diagnostic(ERRID.ERR_ExpectedXmlns, ""), 3459Diagnostic(ERRID.ERR_ExpectedGreater, "xmlns"), 3460Diagnostic(ERRID.ERR_ExpectedXmlName, "ns5"), 3461Diagnostic(ERRID.ERR_ExpectedXmlns, ""), 3462Diagnostic(ERRID.ERR_ExpectedGreater, "xmlns")) 3523Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If VarType(a1.GetValue(x)) > Variant"), 3524Diagnostic(ERRID.ERR_ObsoleteObjectNotVariant, "Variant")) 3689]]>, Diagnostic(ERRID.ERR_ExpectedEndIf, "If True"), 3690Diagnostic(ERRID.ERR_BogusWithinLineIf, "End If"), 3691Diagnostic(ERRID.ERR_ExpectedEndIf, "If True"), 3692Diagnostic(ERRID.ERR_BogusWithinLineIf, "End If") 3732Diagnostic(ERRID.ERR_InvOutsideProc, "100:"), 3733Diagnostic(ERRID.ERR_InvOutsideProc, "200:"), 3734Diagnostic(ERRID.ERR_InvOutsideProc, "300:"), 3735Diagnostic(ERRID.ERR_InvInsideEnum, "300:")) 3940]]>, Diagnostic(ERRID.ERR_ExpectedEndClass, "Class C1").WithLocation(2, 13), 3941Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Namespace").WithLocation(19, 33), 3942Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Class").WithLocation(20, 33), 3943Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "End").WithLocation(21, 23), 3944Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Namespace").WithLocation(25, 25), 3945Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Class").WithLocation(26, 25), 3946Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "End").WithLocation(27, 27), 3947Diagnostic(ERRID.ERR_NamespaceNotAtNamespace, "namespace").WithLocation(31, 21), 3948Diagnostic(ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt, "dim").WithLocation(31, 17), 3949Diagnostic(ERRID.ERR_ExpectedIdentifier, "").WithLocation(31, 30), 3950Diagnostic(ERRID.ERR_EndClassNoClass, "End Class").WithLocation(37, 13), 3951Diagnostic(ERRID.ERR_SpecifiersInvalidOnInheritsImplOpt, "dim").WithLocation(40, 13), 3952Diagnostic(ERRID.ERR_ExpectedIdentifier, "").WithLocation(40, 26)) 4041Diagnostic(ERRID.ERR_ExpectedEndTry, "try"), 4042Diagnostic(ERRID.ERR_FinallyNoMatchingTry, "finally"), 4043Diagnostic(ERRID.ERR_EndTryNoTry, "end try"), 4044Diagnostic(ERRID.ERR_ExpectedEndSelect, "select case true"), 4045Diagnostic(ERRID.ERR_ExpectedCase, ""), 4046Diagnostic(ERRID.ERR_EndSelectNoSelect, "end select"), 4047Diagnostic(ERRID.ERR_ExpectedEndUsing, "using resource As New Object()"), 4048Diagnostic(ERRID.ERR_EndUsingWithoutUsing, "end using"), 4049Diagnostic(ERRID.ERR_ExpectedEndWhile, "while true"), 4050Diagnostic(ERRID.ERR_EndWhileNoWhile, "end while"), 4051Diagnostic(ERRID.ERR_ExpectedLoop, "do while true"), 4052Diagnostic(ERRID.ERR_LoopNoMatchingDo, "loop"), 4053Diagnostic(ERRID.ERR_ExpectedEndWith, "with nothing"), 4054Diagnostic(ERRID.ERR_EndWithWithoutWith, "end with"), 4055Diagnostic(ERRID.ERR_ExpectedNext, "for each x as object in nothing"), 4056Diagnostic(ERRID.ERR_NextNoMatchingFor, "next"), 4057Diagnostic(ERRID.ERR_ExpectedNext, "for x as object = 1 to 12"), 4058Diagnostic(ERRID.ERR_NextNoMatchingFor, "next"), 4059Diagnostic(ERRID.ERR_ExpectedEndIf, "if true"), 4060Diagnostic(ERRID.ERR_EndIfNoMatchingIf, "end if"), 4061Diagnostic(ERRID.ERR_ExpectedEndSyncLock, "synclock new Object()"), 4062Diagnostic(ERRID.ERR_EndSyncLockNoSyncLock, "end synclock"), 4063Diagnostic(ERRID.ERR_ExpectedEndTry, "try"), 4064Diagnostic(ERRID.ERR_FinallyNoMatchingTry, "finally"), 4065Diagnostic(ERRID.ERR_EndTryNoTry, "end try"), 4066Diagnostic(ERRID.ERR_ExpectedEndSelect, "select case true"), 4067Diagnostic(ERRID.ERR_ExpectedCase, ""), 4068Diagnostic(ERRID.ERR_EndSelectNoSelect, "end select"), 4069Diagnostic(ERRID.ERR_ExpectedEndUsing, "using resource As New Object()"), 4070Diagnostic(ERRID.ERR_EndUsingWithoutUsing, "end using"), 4071Diagnostic(ERRID.ERR_ExpectedEndWhile, "while true"), 4072Diagnostic(ERRID.ERR_EndWhileNoWhile, "end while"), 4073Diagnostic(ERRID.ERR_ExpectedLoop, "do while true"), 4074Diagnostic(ERRID.ERR_LoopNoMatchingDo, "loop"), 4075Diagnostic(ERRID.ERR_ExpectedEndWith, "with nothing"), 4076Diagnostic(ERRID.ERR_EndWithWithoutWith, "end with"), 4077Diagnostic(ERRID.ERR_ExpectedNext, "for each x as object in nothing"), 4078Diagnostic(ERRID.ERR_NextNoMatchingFor, "next"), 4079Diagnostic(ERRID.ERR_ExpectedNext, "for x as object = 1 to 12"), 4080Diagnostic(ERRID.ERR_NextNoMatchingFor, "next"), 4081Diagnostic(ERRID.ERR_ExpectedEndIf, "if true"), 4082Diagnostic(ERRID.ERR_EndIfNoMatchingIf, "end if"), 4083Diagnostic(ERRID.ERR_ExpectedEndSyncLock, "synclock new Object()"), 4084Diagnostic(ERRID.ERR_EndSyncLockNoSyncLock, "end synclock")) 4095Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "else if "), 4096Diagnostic(ERRID.ERR_ExpectedExpression, "")) 4105]]>, Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Catch ex As Exception"), 4106Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Finally")) 4119]]>, Diagnostic(ERRID.ERR_ExpectedEOS, "Main"), 4120Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"), 4121Diagnostic(ERRID.ERR_EndTryNoTry, "End Try"), 4122Diagnostic(ERRID.ERR_InvalidEndSub, "End Sub")) 4144compilation.VerifyDiagnostics(Diagnostic(ERRID.ERR_ExpectedNext, "For j = 1 To 10"), 4145Diagnostic(ERRID.ERR_ExtraNextVariable, "i"), 4146Diagnostic(ERRID.ERR_NameNotDeclared1, "j").WithArguments("j")) 4766Diagnostic(ERRID.ERR_SubRequiresSingleStatement, "Sub() "), 4767Diagnostic(ERRID.ERR_InvalidEndSub, "End Sub")) 6288Diagnostic(ERRID.ERR_Syntax, "5").WithLocation(4, 22) 6513Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 6514Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 6515Diagnostic(ERRID.ERR_ExpectedIdentifier, "_"), 6516Diagnostic(ERRID.ERR_ExpectedIdentifier, "_")) 6873Diagnostic(ERRID.ERR_ExpectedEOS, "Else").WithLocation(4, 60)) 8169Diagnostic(ERRID.ERR_InvInsideProc, "Implements I").WithLocation(3, 37)) 8310Diagnostic(ERRID.ERR_InvInsideEndsProc, "<A> Property P").WithLocation(3, 37)) 8422Diagnostic(ERRID.ERR_LineContWithCommentOrNoPrecSpace, "_").WithLocation(4, 1) 8439Diagnostic(ERRID.ERR_LineContWithCommentOrNoPrecSpace, "_").WithLocation(6, 1) 8500Diagnostic(ERRID.ERR_CommentsAfterLineContinuationNotAvailable1, "' Comment").WithLocation(4, 36).WithArguments("16") 8516Diagnostic(ERRID.ERR_CommentsAfterLineContinuationNotAvailable1, "' Comment").WithLocation(4, 36).WithArguments("16")
Parser\ParseVarDecl.vb (24)
269]]>, Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 270Diagnostic(ERRID.ERR_MissingEndBrack, "[goo"), 271Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 272Diagnostic(ERRID.ERR_MissingEndBrack, "[goo"), 273Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 274Diagnostic(ERRID.ERR_ExpectedIdentifier, "["), 275Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 276Diagnostic(ERRID.ERR_ExpectedIdentifier, "["), 277Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 278Diagnostic(ERRID.ERR_ExpectedIdentifier, "[]"), 279Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 280Diagnostic(ERRID.ERR_ExpectedIdentifier, "[]"), 281Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 282Diagnostic(ERRID.ERR_ExpectedIdentifier, "["), 283Diagnostic(ERRID.ERR_IllegalChar, "$"), 284Diagnostic(ERRID.ERR_IllegalChar, "]"), 285Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 286Diagnostic(ERRID.ERR_ExpectedIdentifier, "["), 287Diagnostic(ERRID.ERR_IllegalChar, "%"), 288Diagnostic(ERRID.ERR_IllegalChar, "]"), 289Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 290Diagnostic(ERRID.ERR_ExpectedIdentifier, "["), 291Diagnostic(ERRID.ERR_ExpectedIdentifier, "[]"), 292Diagnostic(ERRID.ERR_IllegalChar, "]"))
Parser\ParseXml.vb (77)
64Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, Environment.NewLine), 65Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 66Diagnostic(ERRID.ERR_ExpectedXmlName, "x")) 119Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, Environment.NewLine), 120Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 121Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 122Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "VB")) 145Diagnostic(ERRID.ERR_ExpectedXmlWhiteSpace, "c")) 156Diagnostic(ERRID.ERR_ExpectedXmlWhiteSpace, "a")) 449Diagnostic(ERRID.ERR_ExpectedIdentifier, ""), 450Diagnostic(ERRID.ERR_ExpectedIdentifier, "")) 1074Diagnostic(ERRID.ERR_ExpectedEndNamespace, "Namespace DynLateSetLHS010"), 1075Diagnostic(ERRID.ERR_ExpectedEndModule, "Friend Module DynLateSetLHS010mod"), 1076Diagnostic(ERRID.ERR_EndSubExpected, "Sub DynLateSetLHS010()"), 1077Diagnostic(ERRID.ERR_ExpectedExpression, ""), 1078Diagnostic(ERRID.ERR_LineContWithCommentOrNoPrecSpace, "_"), 1079Diagnostic(ERRID.ERR_StandaloneAttribute, ""), 1080Diagnostic(ERRID.ERR_LocalsCannotHaveAttributes, "<name1>"), 1081Diagnostic(ERRID.ERR_ExpectedIdentifier, "")) 1174Diagnostic(ERRID.ERR_EmbeddedExpression, "<%="), 1175Diagnostic(ERRID.ERR_ExpectedExpression, ""), 1176Diagnostic(ERRID.ERR_ExpectedXmlEndEmbedded, "")) 1356]]>, Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1357Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, Environment.NewLine), 1358Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1359Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1360Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1361Diagnostic(ERRID.ERR_ExpectedXmlName, "b"), 1362Diagnostic(ERRID.ERR_ExpectedXmlName, ""), 1363Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1364Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1365Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1366Diagnostic(ERRID.ERR_ExpectedXmlName, "b"), 1367Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1368Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " "), 1369Diagnostic(ERRID.ERR_ExpectedXmlName, "c")) 1639Diagnostic(ERRID.ERR_FullWidthAsXmlDelimiter, "<"), 1640Diagnostic(ERRID.ERR_FullWidthAsXmlDelimiter, "<"), 1641Diagnostic(ERRID.ERR_FullWidthAsXmlDelimiter, "<")) 1929Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, "< /"), 1930Diagnostic(ERRID.ERR_ExpectedLT, "")) 1954Diagnostic(ERRID.WRN_XMLDocParseError1, "</").WithArguments("XML end element must be preceded by a matching start element."), 1955Diagnostic(ERRID.WRN_XMLDocParseError1, "").WithArguments("'>' expected.")) 1998Diagnostic(ERRID.ERR_ExpectedEndModule, "Module M"), 1999Diagnostic(ERRID.ERR_MissingXmlEndTag, <![CDATA[<<%= x + 2002Diagnostic(ERRID.ERR_ExpectedExpression, ""), 2003Diagnostic(ERRID.ERR_Syntax, "Return"), 2004Diagnostic(ERRID.ERR_ExpectedXmlEndEmbedded, ""), 2005Diagnostic(ERRID.ERR_IllegalXmlStartNameChar, "%").WithArguments("%", "&H25"), 2006Diagnostic(ERRID.ERR_ExpectedEQ, ""), 2007Diagnostic(ERRID.ERR_ExpectedLT, ""), 2008Diagnostic(ERRID.ERR_ExpectedGreater, "")) 2014Diagnostic(ERRID.ERR_ExpectedEndModule, "Module M"), 2015Diagnostic(ERRID.ERR_MissingXmlEndTag, <![CDATA[<<%= x + 2017Diagnostic(ERRID.ERR_ExpectedExpression, ""), 2018Diagnostic(ERRID.ERR_Syntax, "Return"), 2019Diagnostic(ERRID.ERR_ExpectedXmlEndEmbedded, ""), 2020Diagnostic(ERRID.ERR_ExpectedGreater, ":"), 2021Diagnostic(ERRID.ERR_IllegalXmlStartNameChar, "%").WithArguments("%", "&H25"), 2022Diagnostic(ERRID.ERR_ExpectedLT, ""), 2023Diagnostic(ERRID.ERR_ExpectedGreater, "")) 2355Diagnostic(ERRID.ERR_FullWidthAsXmlDelimiter, "<")) 3528Diagnostic(ERRID.ERR_ExpectedEndModule, "Module M"), 3529Diagnostic(ERRID.ERR_IllegalXmlWhiteSpace, " 3531Diagnostic(ERRID.ERR_ExpectedXmlName, "y"), 3532Diagnostic(ERRID.ERR_ExpectedQuote, ""), 3533Diagnostic(ERRID.ERR_ExpectedLT, ""), 3534Diagnostic(ERRID.ERR_ExpectedGreater, "") 3538tree1.GetDiagnostics().Verify(commonExpectedErrors.Concat({Diagnostic(ERRID.ERR_MissingXmlEndTag, String.Format(squiggleTemplate, "e"))}).ToArray()) 3541tree2.GetDiagnostics().Verify(commonExpectedErrors.Concat({Diagnostic(ERRID.ERR_MissingXmlEndTag, String.Format(squiggleTemplate, "ee"))}).ToArray()) 4405Diagnostic(ERRID.ERR_ExpectedXmlName, "@").WithLocation(4, 22)) 4413Diagnostic(ERRID.ERR_ExpectedXmlName, "@").WithLocation(4, 22)) 4421Diagnostic(ERRID.ERR_ExpectedXmlName, "").WithLocation(4, 27)) 4429Diagnostic(ERRID.ERR_ExpectedXmlName, "").WithLocation(4, 27)) 4533Diagnostic(ERRID.ERR_ExpectedDeclaration, "Distinct")) 4562Diagnostic(ERRID.ERR_ExpectedDeclaration, "Distinct")) 4575Diagnostic(ERRID.ERR_Syntax, "Then"))
Parser\VisualBasicParseOptionsTests.vb (13)
269options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 275options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("-2147483648").WithLocation(1, 1)) 316options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 323options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1)) 330options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1)) 340options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "1").WithLocation(1, 1)) 349options.Errors.Verify(Diagnostic(ERRID.ERR_BadSourceCodeKind).WithArguments("Interactive").WithLocation(1, 1)) 356options.Errors.Verify(Diagnostic(ERRID.ERR_BadDocumentationMode).WithArguments("100").WithLocation(1, 1)) 363options.Errors.Verify(Diagnostic(ERRID.ERR_BadLanguageVersion).WithArguments("10000").WithLocation(1, 1)) 372options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "").WithLocation(1, 1)) 381options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", " ").WithLocation(1, 1)) 391options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad.Symbol").WithLocation(1, 1)) 401options.Errors.Verify(Diagnostic(ERRID.ERR_ConditionalCompilationConstantNotValid).WithArguments("Identifier expected.", "Bad\\Symbol").WithLocation(1, 1))
PreprocessorEETests.vb (7)
11Imports ERRID = Microsoft.CodeAnalysis.VisualBasic.ERRID 174Assert.Equal(CInt(ERRID.ERR_RequiredConstConversion2), DirectCast(cond, BadCConst).ErrorId) 228Assert.Equal(CInt(ERRID.ERR_RequiredConstConversion2), DirectCast(res, BadCConst).ErrorId) 294Assert.Equal(ERRID.ERR_TryCastOfValueType1, res.ErrorId) 307Assert.Equal(ERRID.ERR_TryCastOfValueType1, res.ErrorId) 320Assert.Equal(ERRID.ERR_TryCastOfValueType1, res.ErrorId) 333Assert.Equal(ERRID.ERR_TryCastOfValueType1, res.ErrorId)
Scanner\ScannerTests.vb (34)
90Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 116Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 144Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 170Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 201Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 213Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 236Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 256Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 275Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 299Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 311Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 323Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 346Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 366Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 385Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 400Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, trivia.Errors().First().Code) 442Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 454Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 477Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 497Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 516Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 540Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 552Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 564Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 587Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 607Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 626Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, err.Code) 641Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, trivia.Errors().First().Code) 665Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, trivia.Errors().First().Code) 677Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, trivia.Errors().First().Code) 689Assert.Equal(ERRID.ERR_Merge_conflict_marker_encountered, trivia.Errors().First().Code) 842Assert.Equal(ERRID.ERR_CommentsAfterLineContinuationNotAvailable1, tk.Errors.First().Code) 1950Assert.Equal(CInt(ERRID.ERR_IllegalChar), tk.GetSyntaxErrorsNoTree(0).Code) 2035Diagnostic(ERRID.ERR_BadCCExpression, "<!--"))
Syntax\GeneratedTests.vb (2)
35Dim nodeWithDiags = node.SetDiagnostics(New DiagnosticInfo() {New DiagnosticInfo(msgProvider, ERRID.ERR_AccessMismatch6)}) 40Assert.Equal(ERRID.ERR_AccessMismatch6, diags(0).Code)
TestSyntaxNodes.vb (3)
2114Diagnostic(ERRID.ERR_ExpectedEOS, "#").WithLocation(2, 15)) 3310Diagnostic(ERRID.ERR_ModuleCantInherit, "Inherits aaa"), 3311Diagnostic(ERRID.ERR_ModuleCantImplement, "Implements Ifoo"))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (3)
CompilationTestUtils.vb (2)
88If Not compileDiagnostics.Any(Function(d) d.Code = ERRID.HDN_UnusedImportClause OrElse d.Code = ERRID.HDN_UnusedImportStatement) Then
ParserTestUtilities.vb (1)
40expectedDiagnostics(i) = TestBase.Diagnostic(CType(CInt(e.@id), ERRID))