57 references to ToDisplayString
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder.cs (1)
920
sub.Add(new TreeDumperNode("containing symbol", currentContainer.
ToDisplayString
(), null));
Binder\Binder_Attributes.cs (2)
252
Error(diagnostics, ErrorCode.ERR_AttributeCtorInParameter, node, attributeConstructor.
ToDisplayString
(SymbolDisplayFormat.CSharpErrorMessageFormat));
962
Binder.Error(diagnostics, ErrorCode.ERR_AttrArgWithTypeVars, node.Syntax, typeOfArgument.
ToDisplayString
(SymbolDisplayFormat.CSharpErrorMessageFormat));
Binder\Binder_Expressions.cs (1)
9661
properties[0].
ToDisplayString
(s_propertyGroupFormat));
Binder\Binder_Patterns.cs (2)
1335
diagnostics.Add(ErrorCode.ERR_VarMayNotBindToType, node.VarKeyword.GetLocation(), foundSymbol.
ToDisplayString
());
1658
diagnostics.Add(ErrorCode.ERR_UnsupportedTypeForRelationalPattern, node.Location, type.
ToDisplayString
());
Binder\Binder_Symbols.cs (1)
2718
var fullMetadataName = MetadataHelpers.BuildQualifiedName(qualifierOpt?.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat), metadataName);
Binder\PatternExplainer.cs (10)
324
return !sense ? "null" : requireExactType ? input.Type.
ToDisplayString
() : "not null";
326
return sense ? "null" : requireExactType ? input.Type.
ToDisplayString
() : "not null";
329
return testedType.
ToDisplayString
();
583
string typeName = requireExactType ? input.Type.
ToDisplayString
() : null;
593
return requireExactType ? input.Type.
ToDisplayString
() : "_";
657
return field.
ToDisplayString
();
677
return $"> ({type.
ToDisplayString
()})int.MaxValue";
680
return $"< ({type.
ToDisplayString
()})int.MinValue";
685
return $"> ({type.
ToDisplayString
()})uint.MaxValue";
696
return requiresCast ? $"({type.
ToDisplayString
()}){valueString}" : valueString;
Binder\Semantics\Conversions\Conversion.cs (1)
1228
sub.Add(new TreeDumperNode("method", self.Method.
ToDisplayString
(), null));
BoundTree\TupleBinaryOperatorInfo.cs (3)
88
sub.Add(new TreeDumperNode("methodSymbolOpt", MethodSymbolOpt.
ToDisplayString
(), null));
90
sub.Add(new TreeDumperNode("leftConversion", LeftConvertedTypeOpt?.
ToDisplayString
(), null));
91
sub.Add(new TreeDumperNode("rightConversion", RightConvertedTypeOpt?.
ToDisplayString
(), null));
BoundTree\UnboundLambda.cs (1)
1267
builder.Builder.Append(parameter.
ToDisplayString
(SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat));
Compilation\CSharpCompilation.cs (6)
1702
Debug.Fail($"Unsupported type argument: {typeArgument.
ToDisplayString
()}");
4440
throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.
ToDisplayString
()} operator {name}({csharpLeftType.
ToDisplayString
()}, {csharpRightType.
ToDisplayString
()})"));
4522
throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.
ToDisplayString
()} operator {name}({csharpOperandType.
ToDisplayString
()})"));
Emitter\EditAndContinue\EmitHelpers.cs (1)
175
string.Format(CodeAnalysisResources.Type0DoesNotHaveExpectedConstructor, type.
ToDisplayString
(SymbolDisplayFormat.CSharpErrorMessageFormat)));
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
91
public override string ToString() => _underlying.
ToDisplayString
(SymbolDisplayFormat.ILVisualizationFormat);
Emitter\Model\NamedTypeReference.cs (1)
151
return UnderlyingNamedType.
ToDisplayString
(SymbolDisplayFormat.ILVisualizationFormat);
Emitter\Model\ParameterTypeInformation.cs (1)
66
return _underlyingParameter.
ToDisplayString
(SymbolDisplayFormat.ILVisualizationFormat);
Emitter\Model\PEModuleBuilder.cs (1)
751
orderedForwardedTypes = orderedForwardedTypes.OrderBy(t => t.OriginalDefinition.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameArityFormat));
Emitter\Model\TypeMemberReference.cs (1)
36
return UnderlyingSymbol.
ToDisplayString
(SymbolDisplayFormat.ILVisualizationFormat);
Emitter\NoPia\EmbeddedTypesManager.cs (1)
503
Error(diagnostics, ErrorCode.ERR_InteropMethodWithBody, syntaxNodeOpt, method.AdaptedMethodSymbol.
ToDisplayString
(SymbolDisplayFormat.MinimallyQualifiedFormat));
FlowAnalysis\NullableWalker.cs (2)
1912
RoslynDebug.Assert(AreCloseEnough(originalSymbol, updatedSymbol), $"Attempting to set {node.Syntax} from {originalSymbol.
ToDisplayString
()} to {updatedSymbol.
ToDisplayString
()}");
Symbols\Attributes\AttributeData.cs (1)
139
string className = this.AttributeClass.
ToDisplayString
(SymbolDisplayFormat.TestFormat);
Symbols\NamespaceOrTypeSymbol.cs (1)
272
Debug.Assert(!isTopLevel || scope.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat) == emittedTypeName.NamespaceName);
Symbols\NamespaceSymbol.cs (1)
359
(_lazyQualifiedName = this.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat));
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
338
MetadataTypeName name = MetadataTypeName.FromFullName(type.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat), forcedArity: type.Arity);
430
string namespaceName = type.ContainingNamespace.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat);
467
string namespaceName = type.ContainingNamespace.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat);
Symbols\Source\ExplicitInterfaceHelpers.cs (1)
69
string interfaceName = explicitInterfaceTypeOpt.
ToDisplayString
(SymbolDisplayFormat.ExplicitInterfaceImplementationFormat);
Symbols\Source\SourceAssemblySymbol.cs (2)
1095
y.
ToDisplayString
(SymbolDisplayFormat.ShortFormat),
2840
string fullEmittedName = MetadataHelpers.BuildQualifiedName(originalDefinition.ContainingSymbol.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat),
Symbols\Source\SourceMemberContainerSymbol.cs (1)
278
var emittedName = ContainingSymbol.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat);
Symbols\Symbol.cs (4)
848
/// This will provide a useful representation, but it would be clearer to call <see cref="
ToDisplayString
"/>
850
/// Sealed so that <see cref="ToString"/> and <see cref="
ToDisplayString
"/> can't get out of sync.
854
return this.
ToDisplayString
();
1017
return $"{this.Kind} {this.
ToDisplayString
(s_debuggerDisplayFormat)}";
Symbols\SymbolDistinguisher.cs (2)
91
string description0 = _symbol0.
ToDisplayString
(SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat);
92
string description1 = _symbol1.
ToDisplayString
(SymbolDisplayFormat.CSharpErrorMessageNoParameterNamesFormat);
Symbols\TypeSymbolExtensions.cs (1)
1781
return string.Equals(container.
ToDisplayString
(SymbolDisplayFormat.QualifiedNameOnlyFormat), qualifiedName, comparison);
Symbols\TypeWithAnnotations.cs (3)
297
return DefaultType.
ToDisplayString
(format) + "?";
300
return DefaultType.
ToDisplayString
(format);
304
var str = !HasType ? "<null>" : Type.
ToDisplayString
(format);