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)
893
containerFormatter =
CustomSymbolDisplayFormatter
.DelegateSignature(oneVariantDifference.TypeParameter.ContainingSymbol)
895
containerFormatter =
CustomSymbolDisplayFormatter
.ErrorNameWithKind(oneVariantDifference.TypeParameter.ContainingSymbol)
939
containerFormatter =
CustomSymbolDisplayFormatter
.DelegateSignature(oneInvariantDifference.ContainingSymbol)
941
containerFormatter =
CustomSymbolDisplayFormatter
.ErrorNameWithKind(oneInvariantDifference.ContainingSymbol)
1371
CType(
CustomSymbolDisplayFormatter
.DelegateSignature(targetDelegateType), Object),
1423
CType(
CustomSymbolDisplayFormatter
.DelegateSignature(targetDelegateType), Object),
Binding\Binder_Delegates.vb (4)
733
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType))
740
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType),
757
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType))
764
CustomSymbolDisplayFormatter
.DelegateSignature(delegateType),
Binding\Binder_Expressions.vb (3)
1255
ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoGetProperty1,
CustomSymbolDisplayFormatter
.ShortErrorName(propertySymbol))
1268
ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoAccessibleGet,
CustomSymbolDisplayFormatter
.ShortErrorName(propertySymbol))
3520
CustomSymbolDisplayFormatter
.WithContainingType(member)))
Binding\Binder_Invocation.vb (18)
1484
ReportDiagnostic(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoTypeArgumentCountOverloadCand1,
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)))
1502
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)))
1519
ReportDiagnostic(diagnostics, diagnosticLocationOpt, ERRID.ERR_NoArgumentCountOverloadCandidates1,
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)))
1803
diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate1,
CustomSymbolDisplayFormatter
.WithContainingType(bestSymbol)))
1811
diagnosticInfos.Add(ErrorFactory.ErrorInfo(ERRID.ERR_OverloadCandidate2,
CustomSymbolDisplayFormatter
.WithContainingType(bestSymbol), notMostSpecificMessage))
1820
CustomSymbolDisplayFormatter
.ShortErrorName(bestSymbols(0)),
1923
ErrorFactory.ErrorInfo(errorNo,
CustomSymbolDisplayFormatter
.ShortErrorName(candidates(0).Candidate.UnderlyingSymbol),
1927
ErrorFactory.ErrorInfo(errorNo,
CustomSymbolDisplayFormatter
.ShortErrorName(candidates(0).Candidate.UnderlyingSymbol),
1928
CustomSymbolDisplayFormatter
.DelegateSignature(delegateSymbol),
2348
ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1,
CustomSymbolDisplayFormatter
.ShortErrorName(param))
2351
ERRID.ERR_OmittedArgument3,
CustomSymbolDisplayFormatter
.ShortErrorName(param),
2355
ERRID.ERR_OmittedArgument2,
CustomSymbolDisplayFormatter
.ShortErrorName(param),
2429
ReportDiagnostic(diagnostics, diagnosticLocation, ERRID.ERR_OmittedArgument1,
CustomSymbolDisplayFormatter
.ShortErrorName(param))
2432
ERRID.ERR_OmittedArgument3,
CustomSymbolDisplayFormatter
.ShortErrorName(param),
2436
ERRID.ERR_OmittedArgument2,
CustomSymbolDisplayFormatter
.ShortErrorName(param), If(representCandidateInDiagnosticsOpt, candidateSymbol))
2515
CustomSymbolDisplayFormatter
.ShortErrorName(param), targetType, copyBackType)
2617
CustomSymbolDisplayFormatter
.ShortErrorName(param), targetType)
2620
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)
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))
Compilation\VisualBasicCompilation.vb (1)
1631
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)
269
InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))))
1016
InitializeUseSiteInfo(New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))))
1072
errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))
1163
errorInfo = ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me))
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
75
result._lazyCachedUseSiteInfo.Initialize(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1,
CustomSymbolDisplayFormatter
.QualifiedName(result)))
121
_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)
227
diagnostics.Add(ERRID.ERR_CircularEvaluation1, Locations(0),
CustomSymbolDisplayFormatter
.ShortErrorName(Me))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (52)
721
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType)))
783
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
796
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType)))
808
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType),
810
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
869
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
870
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType)))
874
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
875
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType)))
879
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
880
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType),
882
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
888
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
889
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType),
890
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType)))
894
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(type.OriginalDefinition),
895
CustomSymbolDisplayFormatter
.QualifiedName(outermostVarianceContainerOfType),
896
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType),
898
CustomSymbolDisplayFormatter
.QualifiedName(typeParameterInfo.ConstructedType.OriginalDefinition)))
2328
defaultPropertyName, baseDefaultPropertyName, baseType.GetKindText(),
CustomSymbolDisplayFormatter
.ShortErrorName(baseType))
3115
DirectCast(
CustomSymbolDisplayFormatter
.ErrorNameWithKind(secondSymbol), Object),
3383
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(interfaceMember.ContainingType),
3384
CustomSymbolDisplayFormatter
.ShortErrorName(interfaceMember))
3408
CustomSymbolDisplayFormatter
.ShortErrorName(Me),
3410
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgs(iface)))
3903
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3904
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
3907
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3908
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
3909
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
3912
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
3913
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3914
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
3918
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
3919
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3920
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
3921
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
3952
CustomSymbolDisplayFormatter
.QualifiedName(directInterface2),
3953
CustomSymbolDisplayFormatter
.QualifiedName(directInterface1),
3954
CustomSymbolDisplayFormatter
.ErrorNameWithKind(interface1.OriginalDefinition))
3984
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3985
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
3988
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3989
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
3990
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
3993
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
3994
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
3995
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1))
3999
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface2),
4000
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface2),
4001
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(interface1),
4002
CustomSymbolDisplayFormatter
.ShortNameWithTypeArgsAndContainingTypes(directInterface1))
Symbols\Symbol.vb (3)
937
useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedField1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me)))
940
useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedMethod1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me)))
943
useSiteInfo = New UseSiteInfo(Of AssemblySymbol)(ErrorFactory.ErrorInfo(ERRID.ERR_UnsupportedProperty1,
CustomSymbolDisplayFormatter
.ShortErrorName(Me)))
Symbols\Symbol_Attributes.vb (14)
504
diagnostics.Add(ERRID.ERR_InvalidMultipleAttributeUsage1, node.GetLocation(),
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType))
530
diagnostics.Add(ERRID.ERR_InvalidAssemblyAttribute1, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType))
533
diagnostics.Add(ERRID.ERR_InvalidModuleAttribute1, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType))
544
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType), accessorName,
CustomSymbolDisplayFormatter
.ShortErrorName(method.AssociatedSymbol))
551
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType),
CustomSymbolDisplayFormatter
.ShortErrorName(Me).ToString())
557
ownerName =
CustomSymbolDisplayFormatter
.ShortErrorName(withEventsBackingField.AssociatedSymbol).ToString()
559
ownerName =
CustomSymbolDisplayFormatter
.ShortErrorName(Me).ToString()
562
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType), ownerName)
565
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType),
569
diagnostics.Add(ERRID.ERR_InvalidAttributeUsage2, node.Name.GetLocation,
CustomSymbolDisplayFormatter
.ShortErrorName(attributeType),
570
CustomSymbolDisplayFormatter
.ShortErrorName(Me).ToString())
582
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)
415
CustomSymbolDisplayFormatter
.QualifiedName(outermostVariantInterface),
Symbols\TypeParameterConstraint.vb (1)
63
Return
CustomSymbolDisplayFormatter
.ErrorNameWithKind(TypeConstraint)