9 references to ToCSharpString
Microsoft.CodeAnalysis.CSharp (3)
Symbols\Attributes\AttributeData.cs (2)
159stringBuilder.Append(constructorArgument.ToCSharpString()); 172stringBuilder.Append(namedArgument.Value.ToCSharpString());
Symbols\TypedConstantExtensions.cs (1)
27return "{" + string.Join(", ", constant.Values.Select(v => v.ToCSharpString())) + "}";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableReferenceTypesTests.cs (2)
6476Assert.Equal(@"{{""a""}}", attribute.CommonConstructorArguments.Single().ToCSharpString()); 6498Assert.Equal(@"{{""a""}}", attribute.CommonConstructorArguments.Single().ToCSharpString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\RequiredMembersTests.cs (1)
7981constructor.GetAttributes().Select(a => $"{a.AttributeClass.ToTestDisplayString()}({string.Join(", ", a.CommonConstructorArguments.Select(arg => arg.ToCSharpString()))})"));
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (1)
489withAttributes.Append(arg.ToCSharpString());
Microsoft.Interop.ComInterfaceGenerator (2)
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
59argument = ctorArg0.ToCSharpString();
AttributeInfo.cs (1)
18var args = attribute.ConstructorArguments.Select(ca => ca.ToCSharpString());