288 references to ReportDiagnostic
Microsoft.CodeAnalysis.VisualBasic (288)
Binding\Binder_AnonymousTypes.vb (6)
253
ReportDiagnostic
(diagnostics, initExpression, ERRID.ERR_RestrictedType1, restrictedType)
409
ReportDiagnostic
(diagnostics, DirectCast(nameSyntax, GenericNameSyntax).TypeArgumentList,
425
ReportDiagnostic
(diagnostics, node, ERRID.ERR_AnonymousTypePropertyOutOfOrder1, name)
433
ReportDiagnostic
(diagnostics, node, ERRID.ERR_CannotLiftAnonymousType1, node.Name.Identifier.ValueText)
461
ReportDiagnostic
(diagnostics, node, ERRID.ERR_NameNotMemberOfAnonymousType2, name, StringConstants.AnonymousTypeName)
468
ReportDiagnostic
(diagnostics, node, ERRID.ERR_NoDefaultNotExtend1, StringConstants.AnonymousTypeName)
Binding\Binder_Attributes.vb (15)
327
ReportDiagnostic
(diagnostics, node.Name, ERRID.ERR_BadAttributeConstructor1, param.Type)
330
ReportDiagnostic
(diagnostics, node.Name, ERRID.ERR_BadAttributeConstructor2, param.Type)
336
ReportDiagnostic
(diagnostics, node.Name, ERRID.ERR_BadAttributeNonPublicType1, param.Type)
343
ReportDiagnostic
(diagnostics, node.Name, ERRID.ERR_BadAttributeNonPublicContType2, param.Type, container)
477
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_NoNonIndexProperty1, sym.Name)
482
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_InaccessibleMember3,
499
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_AttrAssignmentNotFieldOrProp1, identifierName.Identifier.ValueText)
504
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_BadAttributeNonPublicProperty1, sym.Name)
510
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_BadAttributeSharedProperty1, sym.Name)
515
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_BadAttributeReadOnlyProperty1, sym.Name)
521
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_BadAttributePropertyType1, sym.Name)
545
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_PropertyOrFieldNotDefined1, identifierName.Identifier.ValueText)
766
ReportDiagnostic
(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, conv.Operand.Type, conv.Type)
780
ReportDiagnostic
(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, conv.Operand.Type, conv.Type)
795
ReportDiagnostic
(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, If(conv.Operand.Type, _binder.Compilation.GetSpecialType(SpecialType.System_Object)), conv.Type)
Binding\Binder_ConditionalAccess.vb (1)
58
ReportDiagnostic
(diagnostics, node.QuestionMarkToken, ERRID.ERR_UnaryOperand2, node.QuestionMarkToken.ValueText, type)
Binding\Binder_Conversions.vb (39)
123
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.ERR_RestrictedConversion1, sourceType)
236
ReportDiagnostic
(diagnostics, If(castSyntax IsNot Nothing, castSyntax.Type, node), ERRID.ERR_TryCastOfValueType1, targetType)
241
ReportDiagnostic
(diagnostics, If(castSyntax IsNot Nothing, castSyntax.Type, node), ERRID.ERR_TryCastOfUnconstrainedTypeParam1, targetType)
246
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.ERR_RestrictedConversion1, sourceType)
502
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.ERR_RestrictedConversion1, sourceType)
515
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.ERR_StrictArgumentCopyBackNarrowing3,
518
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.WRN_ImplicitConversionCopyBack,
546
ReportDiagnostic
(diagnostics, argument.Syntax, err, sourceType, targetType)
564
ReportDiagnostic
(diagnostics, argument.Syntax, wrnId1, ErrorFactory.ErrorInfo(wrnId2, sourceType, targetType))
581
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.ERR_ExpressionOverflow1, errorTargetType)
743
ReportDiagnostic
(diagnostics, location, ERRID.WRN_ImplicitConversionSubst1,
746
ReportDiagnostic
(diagnostics, location, ERRID.ERR_VarianceIEnumerableSuggestion3, sourceType, targetType, suggestion)
899
ReportDiagnostic
(diagnostics, location, ERRID.WRN_ImplicitConversionSubst1,
910
ReportDiagnostic
(diagnostics, location, If(oneVariantDifference.TypeParameter.Variance = VarianceKind.Out,
945
ReportDiagnostic
(diagnostics, location, ERRID.WRN_ImplicitConversionSubst1,
954
ReportDiagnostic
(diagnostics, location, If(oneInvariantConvertibleDifference IsNot Nothing,
1134
ReportDiagnostic
(diagnostics, argumentSyntax, ERRID.WRN_RecursiveOperatorCall, convKind.Value)
1220
ReportDiagnostic
(diagnostics, addressOfExpression.Syntax, ERRID.ERR_AddressOfNotDelegate1, targetType)
1333
ReportDiagnostic
(diagnostics, unboundLambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetType)
1339
ReportDiagnostic
(diagnostics, unboundLambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetDelegateType)
1367
ReportDiagnostic
(diagnostics,
1419
ReportDiagnostic
(diagnostics,
1507
ReportDiagnostic
(diagnostics, lambda.Syntax, ERRID.ERR_LambdaNotCreatableDelegate1, targetType)
1510
ReportDiagnostic
(diagnostics, lambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetType)
1515
ReportDiagnostic
(diagnostics, lambda.Syntax, ERRID.ERR_LambdaNotDelegate1, targetDelegateType)
1536
ReportDiagnostic
(diagnostics, lambda.Syntax, ERRID.ERR_LambdaBindingMismatch1, targetDelegateType)
1578
ReportDiagnostic
(diagnostics, location, ERRID.ERR_RestrictedType1, restrictedType)
1716
ReportDiagnostic
(diagnostics, location, ERRID.WRN_UseValueForXmlExpression3, sourceType, targetType, sourceType)
1718
ReportDiagnostic
(diagnostics, location, ERRID.WRN_InterfaceConversion2, sourceType, targetType)
1745
ReportDiagnostic
(diagnostics, location, ERRID.ERR_ConvertArrayRankMismatch2, sourceType, targetType)
1748
ReportDiagnostic
(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType)
1757
ReportDiagnostic
(diagnostics, location, ERRID.ERR_ConvertObjectArrayMismatch3, sourceType, targetType, sourceElement)
1762
ReportDiagnostic
(diagnostics, location, ERRID.ERR_ConvertArrayMismatch4, sourceType, targetType, sourceElement, targetElement)
1765
ReportDiagnostic
(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType)
1776
ReportDiagnostic
(diagnostics, location, ERRID.ERR_IntegralToCharTypeMismatch1, sourceType)
1779
ReportDiagnostic
(diagnostics, location, ERRID.ERR_CharToIntegralTypeMismatch1, targetType)
1782
ReportDiagnostic
(diagnostics, location, ERRID.ERR_CopyBackTypeMismatch3,
1786
ReportDiagnostic
(diagnostics, location, ERRID.ERR_TypeMismatchForXml3, sourceType, targetType, sourceType)
1789
ReportDiagnostic
(diagnostics, location, ERRID.ERR_TypeMismatch2, sourceType, targetType)
Binding\Binder_Delegates.vb (11)
197
ReportDiagnostic
(diagnostics,
232
ReportDiagnostic
(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotCreatableDelegate1, targetType)
237
ReportDiagnostic
(diagnostics, syntaxTree, ERRID.ERR_AddressOfNotDelegate1, targetType)
262
ReportDiagnostic
(diagnostics, syntaxTree, ERRID.ERR_UnsupportedMethod1, targetType)
289
ReportDiagnostic
(diagnostics, addressOfExpression.MethodGroup.Syntax,
309
ReportDiagnostic
(diagnostics,
729
ReportDiagnostic
(diagnostics,
736
ReportDiagnostic
(diagnostics,
753
ReportDiagnostic
(diagnostics,
760
ReportDiagnostic
(diagnostics,
1036
ReportDiagnostic
(diagnostics, addressOfExpression.MethodGroup.Syntax, ERRID.ERR_NoPartialMethodInAddressOf1, target)
Binding\Binder_Expressions.vb (36)
560
Binder.
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_TupleReservedElementNameAnyPosition, name)
564
Binder.
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_TupleReservedElementName, name, reserved)
767
ReportDiagnostic
(diagnostics, node.Expression, ERRID.ERR_TypeOfRequiresReferenceType1, operandType)
777
ReportDiagnostic
(diagnostics, node, ERRID.ERR_TypeOfExprAlwaysFalse2, operandType, targetType)
955
ReportDiagnostic
(diagnostics, access.Syntax, ERRID.ERR_CannotBeMadeNullable1, resultType)
1002
ReportDiagnostic
(diagnostics, expr.Syntax, GetTypeNotExpressionErrorId(type), type)
1009
ReportDiagnostic
(diagnostics, expr.Syntax, ERRID.ERR_CannotCallEvent1, DirectCast(expr, BoundEventAccess).EventSymbol)
1013
ReportDiagnostic
(diagnostics, expr.Syntax, ERRID.ERR_NamespaceNotExpression1, DirectCast(expr, BoundNamespaceExpression).NamespaceSymbol)
1017
ReportDiagnostic
(diagnostics, expr.Syntax, ERRID.ERR_VoidValue, DirectCast(expr, BoundLabel).Label.Name)
1121
ReportDiagnostic
(diagnostics, typeExpr.Syntax, ERRID.ERR_CantReferToMyGroupInsideGroupType1, classType)
1255
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_NoGetProperty1, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1268
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_NoAccessibleGet, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1435
ReportDiagnostic
(diagnostics, address.MethodGroup.Syntax, ERRID.ERR_NoViableOverloadCandidates1,
1584
ReportDiagnostic
(diagnostics, arrayLiteral.Syntax, ERRID.ERR_RestrictedType1, targetElementType)
2315
ReportDiagnostic
(diagnostics, node, err, SyntaxFacts.GetText(node.Keyword.Kind))
2338
ReportDiagnostic
(diagnostics, node, err, SyntaxFacts.GetText(node.Keyword.Kind))
2350
ReportDiagnostic
(diagnostics, node, err, SyntaxFacts.GetText(node.Keyword.Kind))
3003
ReportDiagnostic
(diagnostics, node, ERRID.ERR_UseOfLocalBeforeDeclaration1, localSymbol)
3023
ReportDiagnostic
(diagnostics, node, ERRID.ERR_CircularEvaluation1, localSymbol)
3025
ReportDiagnostic
(diagnostics, node, ERRID.ERR_CircularInference1, localSymbol)
3244
ReportDiagnostic
(diagnostics, node, ERRID.WRN_LiftControlVariableQuery, localSymbol.Name)
3246
ReportDiagnostic
(diagnostics, node, ERRID.WRN_LiftControlVariableLambda, localSymbol.Name)
3562
ReportDiagnostic
(diagnostics, node, ERRID.ERR_LabelNotDefined1, labelName)
3812
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_NoDefaultNotExtend1, type)
3815
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_StructureNoDefault1, type)
3820
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_InterfaceNoDefault1, type)
3826
ReportDiagnostic
(diagnostics, expr.Syntax, ERRID.ERR_QualNotObjectRecord1, expr.Type)
3833
ReportDiagnostic
(diagnostics, expr.Syntax, ERRID.ERR_DefaultMemberNotProperty1, expr.Type)
3856
ReportDiagnostic
(diagnostics, nodeOrToken, ERRID.ERR_TypecharNoMatch2, typeCharacterString, type)
3878
ReportDiagnostic
(diagnostics, name, ERRID.ERR_TypecharNoMatch2, typeCharacterString, type)
4277
ReportDiagnostic
(diagnostics, node, ERRID.ERR_InitializerTooManyElements1, initializers.Count - curSize.Size)
4281
ReportDiagnostic
(diagnostics, node, ERRID.ERR_InitializerTooFewElements1, curSize.Size - initializers.Count)
4642
ReportDiagnostic
(diagnostics, operand.Syntax, ERRID.ERR_CantAwaitAsyncSub1, method.Name)
4859
ReportDiagnostic
(diagnostics, node, ERRID.ERR_DoesntImplementAwaitInterface2, getAwaiter.Type, notifyCompletion)
4871
ReportDiagnostic
(diagnostics, node, ERRID.ERR_BadGetAwaiterMethod1, operand.Type)
4879
ReportDiagnostic
(diagnostics, node, ERRID.ERR_BadIsCompletedOnCompletedGetResult2, getAwaiter.Type, operand.Type)
Binding\Binder_Imports.vb (7)
91
Binder.
ReportDiagnostic
(diagBag,
105
Binder.
ReportDiagnostic
(diagBag, aliasIdentifier, ERRID.ERR_DuplicateNamedImportAlias1, aliasText)
113
Binder.
ReportDiagnostic
(diagBag,
174
Binder.
ReportDiagnostic
(diagBag,
187
Binder.
ReportDiagnostic
(diagBag, importsName, ERRID.ERR_DuplicateImport1, importedSymbol)
201
Binder.
ReportDiagnostic
(diagBag, importsName, ERRID.ERR_DuplicateRawGenericTypeImport1, namedType)
238
Binder.
ReportDiagnostic
(diagBag, syntax, ERRID.ERR_DuplicatePrefix, prefix)
Binding\Binder_Initializers.vb (1)
602
ReportDiagnostic
(diagnostics, name, ERRID.ERR_CircularEvaluation1, symbol)
Binding\Binder_Invocation.vb (29)
296
ReportDiagnostic
(diagnostics, target.Syntax, ERRID.ERR_DelegateNoInvoke1, target.Type)
471
ReportDiagnostic
(diagnostics,
877
ReportDiagnostic
(diagnostics, group.Syntax,
910
ReportDiagnostic
(diagnostics, target, ERRID.WRN_RecursiveOperatorCall, method)
1008
ReportDiagnostic
(diagnostics, propertyAccess.Syntax, ERRID.WRN_RecursivePropertyCall, [property])
1115
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1129
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1155
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1178
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_CannotConvertValue2, argumentValue, method.ReturnType)
1398
ReportDiagnostic
(diagnostics, If(groupOpt IsNot Nothing, groupOpt.Syntax, node), ERRID.ERR_NoViableOverloadCandidates1, bestSymbols(0).Name)
1463
ReportDiagnostic
(diagnostics, mg.TypeArgumentsOpt.Syntax,
1467
ReportDiagnostic
(diagnostics, mg.TypeArgumentsOpt.Syntax,
1475
ReportDiagnostic
(diagnostics, mg.TypeArgumentsOpt.Syntax,
1479
ReportDiagnostic
(diagnostics, mg.TypeArgumentsOpt.Syntax,
2067
ReportDiagnostic
(diagnostics, arguments(i).Syntax,
2071
ReportDiagnostic
(diagnostics, arguments(i).Syntax,
2124
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(seenOutOfPositionNamedArgIndex).Syntax),
2134
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedParamNotFound1, argumentNames(i))
2136
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax),
2140
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax),
2161
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedArgUsedTwice1, argumentNames(i))
2163
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax),
2167
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax),
2182
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedArgAlsoOmitted1, argumentNames(i))
2184
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax),
2188
ReportDiagnostic
(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax),
2514
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.ERR_ArgumentCopyBackNarrowing3,
2616
ReportDiagnostic
(diagnostics, argument.Syntax, ERRID.ERR_ArgumentNarrowing2,
2619
ReportDiagnostic
(diagnostics, argument.Syntax, err,
Binding\Binder_Lambda.vb (10)
47
ReportDiagnostic
(diagnostics, node.SubOrFunctionHeader.AsClause.Type, ERRID.ERR_RestrictedType1, returnType)
108
ReportDiagnostic
(diagnostics, unboundParam.IdentifierSyntax, ERRID.ERR_RestrictedResumableType1, unboundType)
270
ReportDiagnostic
(diagnostics,
290
ReportDiagnostic
(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType)
655
ReportDiagnostic
(diagnostics, unboundParam.IdentifierSyntax, ERRID.WRN_ObjectAssumedVar1, ErrorFactory.ErrorInfo(ERRID.WRN_MissingAsClauseinVarDecl))
805
ReportDiagnostic
(diagnostics, sourceParameter.TypeSyntax, ERRID.ERR_RestrictedType1, parameters(i).Type)
949
ReportDiagnostic
(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType)
964
ReportDiagnostic
(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_RestrictedType1, restrictedType)
980
ReportDiagnostic
(diagnostics, LambdaHeaderErrorNode(source), ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_LambdaNoTypeObjectAssumed))
984
ReportDiagnostic
(diagnostics, LambdaHeaderErrorNode(source), ERRID.WRN_ObjectAssumed1, ErrorFactory.ErrorInfo(ERRID.WRN_LambdaTooManyTypesObjectAssumed))
Binding\Binder_ObjectInitializer.vb (2)
525
ReportDiagnostic
(diagnostics, node, ERRID.ERR_NoPIAAttributeMissing2, coClass, AttributeDescription.GuidAttribute.FullName)
533
ReportDiagnostic
(diagnostics, node, ERRID.ERR_NoArgumentCountOverloadCandidates1, "New")
Binding\Binder_Operators.vb (10)
87
ReportDiagnostic
(diagnostics, targetArgument.Syntax,
96
ReportDiagnostic
(diagnostics, targetArgument.Syntax,
109
ReportDiagnostic
(diagnostics, targetArgument.Syntax,
659
ReportDiagnostic
(diagnostics, node, ERRID.ERR_UnacceptableLogicalOperator3,
690
ReportDiagnostic
(diagnostics, node, ERRID.ERR_ConditionOperatorRequired3,
706
ReportDiagnostic
(diagnostics, node, ERRID.ERR_BinaryOperands3,
953
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_ReferenceComparison3, operatorTokenText, leftType, rightType)
956
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_BinaryOperandsForXml4, operatorTokenText, leftType, rightType, leftType)
959
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_BinaryOperandsForXml4, operatorTokenText, leftType, rightType, rightType)
962
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_BinaryOperands3, operatorTokenText, leftType, rightType)
Binding\Binder_Query.vb (5)
2896
ReportDiagnostic
(diagnostics, rangeVarNameSyntax, ERRID.ERR_QueryDuplicateAnonTypeMemberName1, rangeVarName)
3511
ReportDiagnostic
(diagnostics, joinCondition, ERRID.ERR_EqualsTypeMismatch, outerKey.Type, innerKey.Type)
4073
ReportDiagnostic
(diagnostics, rangeVarNameSyntax, ERRID.ERR_QueryDuplicateAnonTypeMemberName1, rangeVarName)
4138
ReportDiagnostic
(diagnostics, syntax.Expression, ERRID.ERR_ExpectedQueryableSource, source.Type)
4207
ReportDiagnostic
(diagnostics, syntax.Identifier.Identifier, ERRID.ERR_QueryDuplicateAnonTypeMemberName1, rangeVarName)
Binding\Binder_Statements.vb (42)
658
ReportDiagnostic
(diagnostics, local.IdentifierToken, ERRID.ERR_DuplicateLocalStatic1, local.Name)
720
ReportDiagnostic
(diagnostics, redimOperand.Expression, ERRID.ERR_ExpectedArray1, "Redim")
781
ReportDiagnostic
(diagnostics, operand, ERRID.ERR_ExpectedArray1, "Erase")
912
ReportDiagnostic
(diagnostics, labelToken, ERRID.ERR_MultiplyDefined1, labelName)
942
ReportDiagnostic
(diagBag, keywordSyntax, ERRID.ERR_BadLocalDimFlags1, keywordSyntax.ToString())
962
ReportDiagnostic
(diagBag, firstDim, ERRID.ERR_BadLocalConstFlags1, firstDim.ToString())
964
ReportDiagnostic
(diagBag, firstStatic, ERRID.ERR_BadLocalConstFlags1, firstStatic.ToString())
1129
ReportDiagnostic
(diagnostics, errSyntax, ERRID.ERR_RestrictedType1, restrictedType)
1134
ReportDiagnostic
(diagnostics, errSyntax, ERRID.ERR_RestrictedType1, type)
1142
ReportDiagnostic
(diagnostics, errSyntax, ERRID.ERR_CannotLiftRestrictedTypeResumable1, type)
1172
ReportDiagnostic
(diagnostics, asNew.NewExpression.NewKeyword, ERRID.ERR_BadLocalConstFlags1, asNew.NewExpression.NewKeyword.ToString())
1486
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_NoSuitableWidestType1, identifierName.Identifier.ValueText)
1490
ReportDiagnostic
(diagnostics, identifierName, ERRID.ERR_AmbiguousWidestType3, identifierName.Identifier.ValueText)
1597
ReportDiagnostic
(diagnostics, identifier, ERRID.ERR_CannotInferNullableForVariable1, name.Identifier.ToString())
1602
ReportDiagnostic
(diagnostics, identifier, ERRID.ERR_InferringNonArrayType1, valueType)
1610
ReportDiagnostic
(diagnostics, identifier, ERRID.ERR_CannotInferNullableForVariable1, identifier.ToString())
1650
ReportDiagnostic
(diagnostics, identifier, ERRID.ERR_CannotInferNullableForVariable1, identifier.ToString())
1659
ReportDiagnostic
(diagnostics, name, ERRID.ERR_TypeInferenceArrayRankMismatch1, name.Identifier.ToString())
1762
ReportDiagnostic
(diagnostics, nameSyntax, ERRID.ERR_DuplicateLocals1, name)
1837
ReportDiagnostic
(diagnostics, nameSyntax, err, name)
1858
ReportDiagnostic
(diagnostics, nameSyntax, err, name)
1866
ReportDiagnostic
(diagnostics, nameSyntax, ERRID.ERR_NameSameAsMethodTypeParam1, name)
1919
ReportDiagnostic
(diagnostics, node, ERRID.ERR_NoSetProperty1, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1922
ReportDiagnostic
(diagnostics, node, ERRID.ERR_AssignmentInitOnly, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
1951
ReportDiagnostic
(diagnostics, node, ERRID.ERR_NoAccessibleSet, CustomSymbolDisplayFormatter.ShortErrorName(propertySymbol))
2293
ReportDiagnostic
(diagnostics,
2423
ReportDiagnostic
(diagnostics, notQualifiedSyntax, ERRID.ERR_NameNotEvent2, name, container)
2437
ReportDiagnostic
(diagnostics, node.Name, ERRID.ERR_NameNotEvent2, node.Name.ToString, Me.ContainingType)
2510
ReportDiagnostic
(diagnostics, node.Name, ERRID.ERR_MissingRaiseEventDef1, node.Name.ToString)
2539
ReportDiagnostic
(diagnostics, node.Name, ERRID.ERR_CantRaiseBaseEvent, node.Name.ToString)
2549
ReportDiagnostic
(diagnostics,
3262
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_ForLoopOperatorRequired2, left.Type, SyntaxFacts.GetText(OverloadResolution.GetOperatorTokenKind(opCode)))
3273
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_UnacceptableForLoopRelOperator2, bestCandidate.UnderlyingSymbol,
3278
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_UnacceptableForLoopOperator2, bestCandidate.UnderlyingSymbol,
3315
ReportDiagnostic
(diagnostics, DirectCast(node.ForOrForEachStatement, ForStatementSyntax).ControlVariable, ERRID.ERR_ForLoopType1, targetType)
4795
ReportDiagnostic
(diagnostics, name, ERRID.ERR_CatchVariableNotLocal1, name.ToString())
4806
ReportDiagnostic
(diagnostics,
4846
ReportDiagnostic
(diagnostics, declaration, ERRID.WRN_DuplicateCatch, exceptionType)
4856
ReportDiagnostic
(diagnostics, declaration, ERRID.WRN_OverlappingCatch, exceptionType, previousType)
4982
ReportDiagnostic
(diagnostics, originalSyntax, ERRID.ERR_KeywordNotAllowedInScript, SyntaxFacts.GetText(SyntaxKind.ReturnKeyword))
5033
ReportDiagnostic
(diagnostics, arg.Syntax, ERRID.ERR_BadAsyncReturnOperand1, retType)
5109
ReportDiagnostic
(diagnostics, originalSyntax, ERRID.ERR_KeywordNotAllowedInScript, SyntaxFacts.GetText(SyntaxKind.YieldKeyword))
Binding\Binder_Symbols.vb (4)
433
Binder.
ReportDiagnostic
(diagBag, typeSyntax, ERRID.ERR_TypeFwdCycle2, fullName, forwardedType.ContainingAssembly)
660
Binder.
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_TupleElementNamesAttributeMissing, AttributeDescription.TupleElementNamesAttribute.FullName)
722
Binder.
ReportDiagnostic
(diagBag, typeSyntax, ERRID.ERR_TypeInItsInheritsClause1, typeWithBaseBeingResolved)
725
Binder.
ReportDiagnostic
(diagBag, typeSyntax,
Binding\Binder_Utils.vb (11)
532
ReportDiagnostic
(diagBag, modifiedIdentifier, ERRID.ERR_BadTypeArgForStructConstraintNull, baseType)
684
ReportDiagnostic
(diagBag, identifier, ERRID.ERR_TypeCharWithType1, typeCharacterString)
911
ReportDiagnostic
(diagBag, paramSyntax.Identifier, ERRID.ERR_NameSameAsMethodTypeParam1, name)
1019
ReportDiagnostic
(diagnostics, syntax.Identifier, ERRID.ERR_DuplicateParamName1, name)
1096
ReportDiagnostic
(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType)
1100
ReportDiagnostic
(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, paramType)
1104
ReportDiagnostic
(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedResumableType1, paramType)
1405
ReportDiagnostic
(diagnostics,
1447
ReportDiagnostic
(diagnostics,
1476
ReportDiagnostic
(diagnostics,
1508
ReportDiagnostic
(diagnostics,
Binding\Binder_XmlLiterals.vb (7)
669
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_TypeDisallowsAttributes, receiverType)
729
ReportDiagnostic
(diagnostics, syntax, typeDisallowsError, receiverType)
902
ReportDiagnostic
(diagnostics, prefixToken, ERRID.ERR_UndefinedXmlPrefix, prefix)
1151
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_DuplicateXmlAttribute, syntax.ToString())
1214
ReportDiagnostic
(diagnostics, nameSyntax.LocalName, ERRID.ERR_ReservedXmlPrefix, prefix)
1245
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_ReservedXmlNamespace, prefix, reservedPrefix)
1284
ReportDiagnostic
(diagnostics, syntax, ERRID.WRN_PrefixAndXmlnsLocalName, prefixName)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
404
Binder.
ReportDiagnostic
(bag, Body.Syntax, ERRID.ERR_NoGetProperty1, CustomSymbolDisplayFormatter.QualifiedName(symbol))
Semantics\AccessCheck.vb (10)
1057
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_InheritanceAccessMismatch5,
1067
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_InheritsTypeArgAccessMismatch7,
1079
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_InheritanceAccessMismatchOutside3,
1088
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_InheritsTypeArgAccessMismatchOutside5,
1130
Binder.
ReportDiagnostic
(diagBag, errorLocation, ERRID.ERR_AccessMismatch6,
1140
Binder.
ReportDiagnostic
(diagBag, errorLocation, ERRID.ERR_AccessMismatchOutsideAssembly4,
1192
Binder.
ReportDiagnostic
(diagBag, errorLocation, ERRID.ERR_AccessMismatchImplementedEvent6,
1201
Binder.
ReportDiagnostic
(diagBag, errorLocation, ERRID.ERR_AccessMismatch6,
1213
Binder.
ReportDiagnostic
(diagBag, errorLocation, ERRID.ERR_AccessMismatchImplementedEvent4,
1220
Binder.
ReportDiagnostic
(diagBag, errorLocation, ERRID.ERR_AccessMismatchOutsideAssembly4,
Semantics\OverloadResolution.vb (1)
4908
Binder.
ReportDiagnostic
(diagnostics,
Symbols\Source\ImplementsHelper.vb (10)
108
Binder.
ReportDiagnostic
(diagBag, implementsClause, errorid, implementsClause.ImplementsKeyword.ToString())
143
Binder.
ReportDiagnostic
(diagBag,
185
Binder.
ReportDiagnostic
(diagBag, interfaceName, ERRID.ERR_InterfaceNotImplemented1,
209
Binder.
ReportDiagnostic
(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplementsMember3,
291
Binder.
ReportDiagnostic
(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplements3,
305
Binder.
ReportDiagnostic
(diagBag, implementedMemberSyntax, ERRID.ERR_AmbiguousImplementsMember3,
389
Binder.
ReportDiagnostic
(diagBag, implementedMemberSyntax, ERRID.ERR_IdentNotMemberOfInterface4,
488
Binder.
ReportDiagnostic
(diagBag, implementedMemberSyntax, ERRID.ERR_PropertyDoesntImplementAllAccessors,
503
Binder.
ReportDiagnostic
(diagBag, implementedMemberSyntax, ERRID.ERR_PropertyDoesntImplementInitOnly,
513
Binder.
ReportDiagnostic
(diagBag, implementedMemberSyntax, ERRID.ERR_ImplementingInterfaceWithDifferentTupleNames5,
Symbols\Source\SourceComplexParameterSymbol.vb (1)
166
Binder.
ReportDiagnostic
(diagnostics, defaultSyntax.Value, ERRID.ERR_CircularEvaluation1, Me)
Symbols\Source\SourceEventSymbol.vb (2)
175
Binder.
ReportDiagnostic
(diagnostics, syntax.AsClause.Type, ERRID.ERR_UnsupportedType1, type.Name)
259
Binder.
ReportDiagnostic
(diagnostics, implementsKeyword, ERRID.ERR_InterfaceEventCantUse1, implementsKeyword.ValueText)
Symbols\Source\SourceMemberFieldSymbol.vb (1)
129
binder.
ReportDiagnostic
(diagBag, declarator.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType)
Symbols\Source\SourceMemberMethodSymbol.vb (3)
398
Binder.
ReportDiagnostic
(diagBag,
726
Binder.
ReportDiagnostic
(diagBag, singleHandleClause.EventMember, ERRID.ERR_EventNotFound1, eventName)
834
Binder.
ReportDiagnostic
(diagBag, singleHandleClause.EventMember, ERRID.ERR_EventHandlerSignatureIncompatible2, Me.Name, eventName)
Symbols\Source\SourceMethodSymbol.vb (1)
2303
binder.
ReportDiagnostic
(diagBag, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
Symbols\Source\SourceNamedTypeSymbol.vb (16)
528
Binder.
ReportDiagnostic
(diagBag, id, ERRID.ERR_TypeClashesWithVbCoreType4,
560
Binder.
ReportDiagnostic
(diagBag, id, ERRID.ERR_TypeConflict6,
615
Binder.
ReportDiagnostic
(diagBag, id, ERRID.ERR_CollisionWithPublicTypeInModule, Me, collision.ContainingModule)
625
Binder.
ReportDiagnostic
(diagBag, id, ERRID.ERR_ShadowingGenericParamWithMember1, Me.Name)
684
Binder.
ReportDiagnostic
(diagBag, id, errorCode,
717
Binder.
ReportDiagnostic
(diagnostics, syntax.EnumStatement.Identifier, ERRID.ERR_BadEmptyEnum1, syntax.EnumStatement.Identifier.ValueText)
850
Binder.
ReportDiagnostic
(diagBag, identSymbol, ERRID.ERR_PartialTypeTypeParamNameMismatch3, name, typeParameter.Name, Me.Name)
855
Binder.
ReportDiagnostic
(diagBag, identSymbol, ERRID.ERR_PartialTypeConstraintMismatch1, Me.Name)
1111
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_GenericParamBase2, "Class", Me.Name)
1123
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromRestrictedType1, baseClassType)
1127
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromCantInherit3, Me.Name, baseClassType.Name, baseClassType.GetKindText())
1135
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_BaseMismatchForPartialClass3,
1173
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_DuplicateInInherits1, typeSymbol)
1182
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_GenericParamBase2, "Interface", Me.Name)
1228
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_InterfaceImplementedTwice1, typeSymbol)
1233
Binder.
ReportDiagnostic
(diagBag, baseClassSyntax, ERRID.ERR_ImplementsGenericParam, "Interface", Me.Name)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
399
binder.
ReportDiagnostic
(diagnostics, attributeSyntax, ERRID.ERR_PropertyNameConflictInMyCollection, conflictsWith, targetType)
Symbols\Source\SourcePropertySymbol.vb (2)
379
Binder.
ReportDiagnostic
(diagnostics, errorLocation, ERRID.ERR_RestrictedType1, restrictedType)
1109
Binder.
ReportDiagnostic
(diagnostics,
Symbols\Source\UnboundLambdaParameterSymbol.vb (2)
71
Binder.
ReportDiagnostic
(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.ParamArrayKeyword), ERRID.ERR_ParamArrayIllegal1, StringConstants.Lambda)
76
Binder.
ReportDiagnostic
(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.OptionalKeyword), ERRID.ERR_OptionalIllegal1, StringConstants.Lambda)
Symbols\Tuples\TupleTypeSymbol.vb (1)
649
Binder.
ReportDiagnostic
(diagnostics, syntax, ERRID.ERR_MissingRuntimeHelper, type.Name & "."c & descriptor.Name)