60 references to ReportDiagnostic
Microsoft.CodeAnalysis.VisualBasic (60)
Binding\Binder_AnonymousTypes.vb (1)
33
ReportDiagnostic
(diagnostics, field.Location, ERRID.ERR_RestrictedType1, restrictedType)
Binding\Binder_Conversions.vb (1)
1559
ReportDiagnostic
(diagnostics, lambda.LambdaSymbol.Parameters(delegateParam.Ordinal).Locations(0),
Binding\Binder_Invocation.vb (21)
1445
ReportDiagnostic
(diagnostics, diagnosticLocationOpt, ERRID.ERR_MetadataMembersAmbiguous3, candidate.Name, container.GetKindText(), container)
1484
ReportDiagnostic
(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoTypeArgumentCountOverloadCand1, CustomSymbolDisplayFormatter.ShortErrorName(bestSymbols(0)))
1497
ReportDiagnostic
(diagnostics,
1519
ReportDiagnostic
(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoArgumentCountOverloadCandidates1, CustomSymbolDisplayFormatter.ShortErrorName(bestSymbols(0)))
2218
ReportDiagnostic
(diagnostics, diagnosticLocation, ERRID.ERR_UnboundTypeParam1, candidate.TypeParameters(i))
2220
ReportDiagnostic
(diagnostics, diagnosticLocation,
2224
ReportDiagnostic
(diagnostics, diagnosticLocation,
2243
ReportDiagnostic
(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous3, ERRID.ERR_TypeInferenceFailureAmbiguous3), candidateSymbol, candidateSymbol.ContainingType)
2245
ReportDiagnostic
(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitAmbiguous2, ERRID.ERR_TypeInferenceFailureAmbiguous2), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2251
ReportDiagnostic
(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitNoBest3, ERRID.ERR_TypeInferenceFailureNoBest3), candidateSymbol, candidateSymbol.ContainingType)
2253
ReportDiagnostic
(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicitNoBest2, ERRID.ERR_TypeInferenceFailureNoBest2), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2265
ReportDiagnostic
(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicit3, ERRID.ERR_TypeInferenceFailure3), candidateSymbol, candidateSymbol.ContainingType)
2267
ReportDiagnostic
(diagnostics, diagnosticLocation, If(queryMode, ERRID.ERR_TypeInferenceFailureNoExplicit2, ERRID.ERR_TypeInferenceFailure2), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2348
ReportDiagnostic
(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1, CustomSymbolDisplayFormatter.ShortErrorName(param))
2350
ReportDiagnostic
(diagnostics, diagnosticLocation,
2354
ReportDiagnostic
(diagnostics, diagnosticLocation,
2362
ReportDiagnostic
(diagnostics, diagnosticLocation,
2365
ReportDiagnostic
(diagnostics, diagnosticLocation,
2429
ReportDiagnostic
(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1, CustomSymbolDisplayFormatter.ShortErrorName(param))
2431
ReportDiagnostic
(diagnostics, diagnosticLocation,
2435
ReportDiagnostic
(diagnostics, diagnosticLocation,
Binding\Binder_Latebound.vb (1)
116
ReportDiagnostic
(diagnostics, GetLocationForOverloadResolutionDiagnostic(node, group), ERRID.ERR_LateBoundOverloadInterfaceCall1, memberName)
Binding\Binder_Query.vb (5)
1961
ReportDiagnostic
(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2000
ReportDiagnostic
(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2039
ReportDiagnostic
(diagnostics,
2075
ReportDiagnostic
(diagnostics,
4716
ReportDiagnostic
(diagnostics, Location.Create(node.SyntaxTree, operatorNameLocation), ERRID.ERR_QueryOperatorNotFound, operatorName)
Binding\ImplicitVariableBinder.vb (1)
101
ReportDiagnostic
(diagnostics, shadowingVariableInfo.Location, shadowingVariableInfo.ErrorId, shadowingVariableInfo.Name)
Compilation\MethodCompiler.vb (1)
767
Binder.
ReportDiagnostic
(_diagnostics, location, ERRID.WRN_ExpectedInitComponentCall2, sourceMethod, sourceTypeSymbol)
Symbols\Source\SourceEventSymbol.vb (1)
207
Binder.
ReportDiagnostic
(diagnostics,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (7)
2941
Binder.
ReportDiagnostic
(diagBag,
2949
Binder.
ReportDiagnostic
(diagBag, sym.Locations(0), ERRID.ERR_ShadowingGenericParamWithMember1, sym.Name)
3041
Binder.
ReportDiagnostic
(
3061
Binder.
ReportDiagnostic
(
3077
Binder.
ReportDiagnostic
(
3097
Binder.
ReportDiagnostic
(
3109
Binder.
ReportDiagnostic
(
Symbols\Source\SourceMemberMethodSymbol.vb (2)
262
Binder.
ReportDiagnostic
(diagnostics, location, ERRID.ERR_PartialMethodParamArrayMismatch2, methodImpl, Me)
264
Binder.
ReportDiagnostic
(diagnostics, location, ERRID.ERR_PartialMethodDefaultParameterValueMismatch2, methodImpl, Me)
Symbols\Source\SourceMethodSymbol.vb (2)
1737
Binder.
ReportDiagnostic
(diagnostics, arguments.AttributeSyntaxOpt.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecurityCritical")
1740
Binder.
ReportDiagnostic
(diagnostics, arguments.AttributeSyntaxOpt.GetLocation(), ERRID.ERR_SecurityCriticalAsync, "SecuritySafeCritical")
Symbols\Source\SourceNamedTypeSymbol.vb (3)
541
Binder.
ReportDiagnostic
(diagBag, location, ERRID.ERR_TypeClashesWithVbCoreType4,
962
Binder.
ReportDiagnostic
(diagBag, s.Locations(0), ERRID.WRN_ShadowingGenericParamWithParam1, s.Name)
965
Binder.
ReportDiagnostic
(diagBag, s.Locations(0), ERRID.ERR_DuplicateTypeParamName1, s.Name)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (14)
139
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassDuplicateGuids1, comClass.Name)
145
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.GuidAttribute.Name)
150
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ClassInterfaceAttribute.Name)
155
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ComSourceInterfacesAttribute.Name)
160
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassAndReservedAttribute1, AttributeDescription.ComVisibleAttribute.Name & "(False)")
165
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassRequiresPublicClass1, comClass.Name)
171
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_ComClassRequiresPublicClass2,
193
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.WRN_ComClassNoMembers1, comClass.Name)
288
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.ERR_BadAttributeUuid2, AttributeDescription.VisualBasicComClassAttribute.Name, id)
330
Binder.
ReportDiagnostic
(diagnostics, member.Locations(0), ERRID.ERR_MemberConflictWithSynth4,
344
Binder.
ReportDiagnostic
(diagnostics, comClass.Locations(0), ERRID.WRN_ComClassInterfaceShadows5,
427
Binder.
ReportDiagnostic
(diagnostics, prop.Locations(0), ERRID.WRN_ComClassPropertySetObject1, prop)
494
Binder.
ReportDiagnostic
(diagnostics, target.Locations(0), ERRID.ERR_ComClassReservedDispIdZero1, target.Name)
500
Binder.
ReportDiagnostic
(diagnostics, target.Locations(0), ERRID.ERR_ComClassReservedDispId1, target.Name)