152 references to CustomSymbolDisplayFormatter
Microsoft.CodeAnalysis.VisualBasic (152)
Analysis\ForLoopVerification.vb (2)
82
CustomSymbolDisplayFormatter
.ShortErrorName(controlVariableSymbol))
116
CustomSymbolDisplayFormatter
.ShortErrorName(ForLoopVerification.ReferencedSymbol(controlVariable)))
Binding\Binder_Conversions.vb (6)
901
containerFormatter =
CustomSymbolDisplayFormatter
.DelegateSignature(oneVariantDifference.TypeParameter.ContainingSymbol)
903
containerFormatter =
CustomSymbolDisplayFormatter
.ErrorNameWithKind(oneVariantDifference.TypeParameter.ContainingSymbol)
947
containerFormatter =
CustomSymbolDisplayFormatter
.DelegateSignature(oneInvariantDifference.ContainingSymbol)
949
containerFormatter =
CustomSymbolDisplayFormatter
.ErrorNameWithKind(oneInvariantDifference.ContainingSymbol)
1384
CType(
CustomSymbolDisplayFormatter
.DelegateSignature(targetDelegateType), Object),
1436
CType(
CustomSymbolDisplayFormatter
.DelegateSignature(targetDelegateType), Object),
Binding\Binder_Delegates.vb (4)
730
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType))
737
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType),
754
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType))
761
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType),
Binding\Binder_Expressions.vb (3)
1276
ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoGetProperty1,
CustomSymbolDisplayFormatter
.ShortErrorName(propertySymbol))
1289
ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoAccessibleGet,
CustomSymbolDisplayFormatter
.ShortErrorName(propertySymbol))
3547
CustomSymbolDisplayFormatter
.WithContainingType(member)))
Binding\Binder_Invocation.vb (18)
1482
ReportDiagnostic(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoTypeArgumentCountOverloadCand1,
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)))
1500
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)))
1517
ReportDiagnostic(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoArgumentCountOverloadCandidates1,
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)))
1801
diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate1,
CustomSymbolDisplayFormatter
.WithContainingType(bestSymbol)))
1809
diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2,
CustomSymbolDisplayFormatter
.WithContainingType(bestSymbol), notMostSpecificMessage))
1818
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)),
1921
ErrorFactory.ErrorInfo(errorNo,
CustomSymbolDisplayFormatter
.ShortErrorName(candidates(0).Candidate.UnderlyingSymbol),
1925
ErrorFactory.ErrorInfo(errorNo,
CustomSymbolDisplayFormatter
.ShortErrorName(candidates(0).Candidate.UnderlyingSymbol),
1926
CustomSymbolDisplayFormatter
.DelegateSignature(delegateSymbol),
2342
ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1,
CustomSymbolDisplayFormatter
.ShortErrorName(param))
2345
ERRID.ERR_OmittedArgument3,
CustomSymbolDisplayFormatter
.ShortErrorName(param),
2349
ERRID.ERR_OmittedArgument2,
CustomSymbolDisplayFormatter
.ShortErrorName(param),
2423
ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1,
CustomSymbolDisplayFormatter
.ShortErrorName(param))
2426
ERRID.ERR_OmittedArgument3,
CustomSymbolDisplayFormatter
.ShortErrorName(param),
2430
ERRID.ERR_OmittedArgument2,
CustomSymbolDisplayFormatter
.ShortErrorName(param), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2509
CustomSymbolDisplayFormatter
.ShortErrorName(param), targetType, copyBackType)
2611
CustomSymbolDisplayFormatter
.ShortErrorName(param), targetType)
2614
CustomSymbolDisplayFormatter
.ShortErrorName(param), argument.Type, targetType)
Binding\Binder_Lookup.vb (3)
261
CustomSymbolDisplayFormatter
.QualifiedName(sym),
1570
CustomSymbolDisplayFormatter
.DefaultErrorFormat(symbols(i).ContainingType),
1571
CustomSymbolDisplayFormatter
.DefaultErrorFormat(symbols(j).ContainingType))
Binding\Binder_Statements.vb (3)
1948
ReportDiagnostic(diagnostics, node, ERRID.ERR_NoSetProperty1,
CustomSymbolDisplayFormatter
.ShortErrorName(propertySymbol))
1951
ReportDiagnostic(diagnostics, node, ERRID.ERR_AssignmentInitOnly,
CustomSymbolDisplayFormatter
.ShortErrorName(propertySymbol))
1980
ReportDiagnostic(diagnostics, node, ERRID.ERR_NoAccessibleSet,
CustomSymbolDisplayFormatter
.ShortErrorName(propertySymbol))
Compilation\VisualBasicCompilation.vb (1)
1636
New FormattedSymbolList(viableEntryPoints.ToArray(),
CustomSymbolDisplayFormatter
.ErrorMessageFormatNoModifiersNoReturnType))
Emit\PEModuleBuilder.vb (10)
458
diagnostics.Add(ERRID.ERR_ForwardedTypeConflictsWithDeclaration, NoLocation.Singleton,
CustomSymbolDisplayFormatter
.DefaultErrorFormat(type))
474
CustomSymbolDisplayFormatter
.DefaultErrorFormat(type),
475
CustomSymbolDisplayFormatter
.DefaultErrorFormat(type.ContainingModule),
476
CustomSymbolDisplayFormatter
.DefaultErrorFormat(contender),
477
CustomSymbolDisplayFormatter
.DefaultErrorFormat(contender.ContainingModule))
481
CustomSymbolDisplayFormatter
.DefaultErrorFormat(type),
483
CustomSymbolDisplayFormatter
.DefaultErrorFormat(contender),
484
CustomSymbolDisplayFormatter
.DefaultErrorFormat(contender.ContainingModule))
488
CustomSymbolDisplayFormatter
.DefaultErrorFormat(type),
490
CustomSymbolDisplayFormatter
.DefaultErrorFormat(contender),
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
404
Binder.ReportDiagnostic(bag, Body.Syntax, ERRID.ERR_NoGetProperty1,
CustomSymbolDisplayFormatter
.QualifiedName(symbol))
Symbols\EventSymbol.vb (1)
221
useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedType1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me)))
Symbols\Metadata\PE\PEMethodSymbol.vb (4)
299
InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))))
1072
InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))))
1138
errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))
1230
errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
79
result._lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1,
CustomSymbolDisplayFormatter
.QualifiedName(result)))
125
_lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1,
CustomSymbolDisplayFormatter
.QualifiedName(Me)))
Symbols\MissingMetadataTypeSymbol.vb (1)
55
Dim arg = If(Me.SpecialType <> SpecialType.None, DirectCast(
CustomSymbolDisplayFormatter
.DefaultErrorFormat(Me), Object), Me)
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.vb (1)
72
Return ErrorFactory.ErrorInfo(ERRID.ERR_AbsentReferenceToPIA1,
CustomSymbolDisplayFormatter
.QualifiedName(_firstCandidate))
Symbols\Source\ImplementsHelper.vb (9)
146
CustomSymbolDisplayFormatter
.ShortErrorName(implementingSym),
147
CustomSymbolDisplayFormatter
.QualifiedName(If(firstIsWinRT, implementedMembers(0), implementedMember)),
148
CustomSymbolDisplayFormatter
.QualifiedName(If(firstIsWinRT, implementedMember, implementedMembers(0))))
292
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(first.ContainingType),
294
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(first.ContainingType),
390
CustomSymbolDisplayFormatter
.ShortErrorName(implementingSym), implementedMethodName,
392
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(interfaceType))
514
CustomSymbolDisplayFormatter
.ShortErrorName(implementingSym),
517
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(interfaceType),
Symbols\Source\OverrideHidingHelper.vb (10)
251
CustomSymbolDisplayFormatter
.QualifiedName(member.ContainingType),
252
CustomSymbolDisplayFormatter
.ShortErrorName(container)),
265
CustomSymbolDisplayFormatter
.ShortErrorName(container),
413
CustomSymbolDisplayFormatter
.ShortErrorName(hiddenMember.ContainingType)),
423
CustomSymbolDisplayFormatter
.ShortErrorName(hiddenMember.ContainingType)),
430
CustomSymbolDisplayFormatter
.ShortErrorName(hiddenMember.ContainingType)),
446
CustomSymbolDisplayFormatter
.ShortErrorName(hiddenMember.ContainingType)),
453
CustomSymbolDisplayFormatter
.ShortErrorName(hiddenMember.ContainingType)),
478
CustomSymbolDisplayFormatter
.ShortErrorName(hiddenMember.ContainingType)),
865
CustomSymbolDisplayFormatter
.ShortErrorName(overriddenMembers(0).ContainingType),
Symbols\Source\SourceFieldSymbol.vb (1)
246
diagnostics.Add(ERRID.ERR_CircularEvaluation1, Locations(0),
CustomSymbolDisplayFormatter
.ShortErrorName(Me))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (52)
713
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType)))
775
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
788
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType)))
800
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType),
802
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
861
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
862
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType)))
866
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
867
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType)))
871
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
872
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType),
874
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
880
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
881
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType),
882
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType)))
886
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
887
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType),
888
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType),
890
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
2339
defaultPropertyName, baseDefaultPropertyName, baseType.GetKindText(),
CustomSymbolDisplayFormatter
.ShortErrorName(baseType))
3126
DirectCast(
CustomSymbolDisplayFormatter
.ErrorNameWithKind(secondSymbol), Object),
3394
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(interfaceMember.ContainingType),
3395
CustomSymbolDisplayFormatter
.ShortErrorName(interfaceMember))
3419
CustomSymbolDisplayFormatter
.ShortErrorName(Me),
3421
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(iface)))
3914
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3915
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
3918
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3919
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
3920
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
3923
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
3924
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3925
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
3929
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
3930
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3931
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
3932
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
3963
CustomSymbolDisplayFormatter
.QualifiedName(directInterface2),
3964
CustomSymbolDisplayFormatter
.QualifiedName(directInterface1),
3965
CustomSymbolDisplayFormatter
.ErrorNameWithKind(interface1.OriginalDefinition))
3995
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3996
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
3999
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
4000
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
4001
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
4004
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
4005
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
4006
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
4010
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
4011
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
4012
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
4013
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
Symbols\Symbol.vb (3)
998
useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedField1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me)))
1001
useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me)))
1004
useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me)))
Symbols\Symbol_Attributes.vb (14)
513
diagnostics.Add(ERRID.ERR_InvalidMultipleAttributeUsage1, node.GetLocation(),
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType))
539
diagnostics.Add(ERRID.ERR_InvalidAssemblyAttribute1, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType))
542
diagnostics.Add(ERRID.ERR_InvalidModuleAttribute1, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType))
553
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType), accessorName,
CustomSymbolDisplayFormatter
.ShortErrorName(method.AssociatedSymbol))
560
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType),
CustomSymbolDisplayFormatter
.ShortErrorName(Me).ToString())
566
ownerName =
CustomSymbolDisplayFormatter
.ShortErrorName(withEventsBackingField.AssociatedSymbol).ToString()
568
ownerName =
CustomSymbolDisplayFormatter
.ShortErrorName(Me).ToString()
571
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType), ownerName)
574
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType),
578
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType),
579
CustomSymbolDisplayFormatter
.ShortErrorName(Me).ToString())
591
diagnostics.Add(ERRID.ERR_SecurityAttributeInvalidTarget, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType))
Symbols\SymbolExtensions.vb (1)
108
Return
CustomSymbolDisplayFormatter
.DefaultErrorFormat(target)
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
426
CustomSymbolDisplayFormatter
.QualifiedName(outermostVariantInterface),
Symbols\TypeParameterConstraint.vb (1)
63
Return
CustomSymbolDisplayFormatter
.ErrorNameWithKind(TypeConstraint)