22 references to ToDisplayString
Microsoft.CodeAnalysis.CSharp (6)
BoundTree\BoundNode_Source.cs (1)
98appendLine($"{local.TypeWithAnnotations.ToDisplayString()} {name(synthesized)};");
BoundTree\UnboundLambda.cs (1)
1293builder.Builder.Append(lambda.ReturnTypeWithAnnotations.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat));
Symbols\Synthesized\SynthesizedLocal.cs (2)
208builder.Append(_type.ToDisplayString(SymbolDisplayFormat.TestFormat)); 228builder.Append(_type.ToDisplayString(SymbolDisplayFormat.TestFormat));
Symbols\TypeWithAnnotations.cs (2)
331internal string GetDebuggerDisplay() => !this.HasType ? "<null>" : ToDisplayString(DebuggerDisplayFormat); 335return ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenDynamicTests.cs (1)
606field.TypeWithAnnotations.ToDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_NativeInteger.cs (2)
1060Assert.Equal("A<nint>", getConstraintType(type).ToDisplayString(FormatWithSpecialTypes)); 1062Assert.Equal("A<nuint[]>", getConstraintType(type).ToDisplayString(FormatWithSpecialTypes));
Attributes\AttributeTests_Nullable.cs (1)
4207Assert.Equal(expectedDisplay, type.ToDisplayString(_displayFormat));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\BindingAsyncTasklikeMoreTests.cs (6)
438Assert.Equal("C.MyTask", method.ReturnTypeWithAnnotations.ToDisplayString()); 442Assert.Equal("C.MyTask<int>", method.ReturnTypeWithAnnotations.ToDisplayString()); 519Assert.Equal("MyTask", method.ReturnTypeWithAnnotations.ToDisplayString()); 523Assert.Equal("MyTask<int>", method.ReturnTypeWithAnnotations.ToDisplayString()); 598Assert.Equal("MyTask", method.ReturnTypeWithAnnotations.ToDisplayString()); 602Assert.Equal("MyTask<T>", method.ReturnTypeWithAnnotations.ToDisplayString());
Semantics\NullableReferenceTypesTests.cs (2)
34985Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.TestDisplayFormat)); 35003Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
SymbolDisplay\SymbolDisplayTests.cs (1)
6544Assert.Equal("T?", type.ToDisplayString(format));
Symbols\AnonymousTypesSymbolTests.cs (1)
1134Assert.Equal(retType, method.ReturnTypeWithAnnotations.ToDisplayString());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (1)
479return type.ToDisplayString(TypeWithAnnotations.TestDisplayFormat);
SymbolUtilities.cs (1)
108return type.ToDisplayString(format);