10 writes to Content
Aspire.Hosting.CodeGeneration.Go (9)
AtsGoCodeGenerator.ApiProjection.cs (9)
155Content = RenderRuntimeFragment(declarations, membersByOwner, unexportedTypes), 408Content = function.Signature, 438Content = function.Signature, 476Content = declarationContent ?? RenderTypeFragment(type, members), 575Content = FormatProjectionSource($"var {name} {typeText}"), 675Content = RenderInterfaceFragment(name, []), 689Content = RenderInterfaceFragment(name, members), 736Content = RenderInterfaceFragment(interfaceName, []), 763Content = RenderInterfaceFragment(interfaceName, members),
Aspire.Hosting.CodeGeneration.Go.Tests (1)
GoApiExportTests.cs (1)
1185Content = "type RedisResource interface {\r\n\thandleReference\r\n}",
5 references to Content
Aspire.Hosting.CodeGeneration.Go (1)
GoApiExportWriter.cs (1)
39["content"] = declaration.Content
Aspire.Hosting.CodeGeneration.Go.Tests (4)
GoApiExportTests.cs (4)
221declaration => declaration.Content.StartsWith("type WithPersistenceOption interface", StringComparison.Ordinal)); 224optionDeclaration.Content); 247declaration => declaration.Content == 910.SelectMany(declaration => declaration.Content.ReplaceLineEndings("\n").Split('\n'))