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