32 instantiations of GoDocContent
Aspire.Hosting.CodeGeneration.Go (10)
AtsGoCodeGenerator.cs (10)
968return new GoDocContent 1018WriteDocLines(_docs.Render(new GoDocContent 1035WriteDocLines(_docs.Render(new GoDocContent 1075WriteDocLines(_docs.Render(new GoDocContent 1102WriteDocLines(_docs.Render(new GoDocContent 1181foreach (var line in _docs.Render(new GoDocContent 1384WriteDocLines(_docs.Render(new GoDocContent 1536WriteDocLines(_docs.Render(new GoDocContent 1628return _docs.Render(new GoDocContent { GoName = goName, Summary = summary }); 2383WriteDocLines(_docs.Render(new GoDocContent
Aspire.Hosting.CodeGeneration.Go.Tests (22)
GoDocCommentTests.cs (22)
54("method summary is reworded to start with the name", new GoDocContent { GoName = "AddRedis", Summary = "Adds a Redis container resource." }), 55("summary that already starts with the name is kept", new GoDocContent { GoName = "AddRedis", Summary = "AddRedis adds a Redis container resource." }), 56("getter", new GoDocContent { GoName = "DisplayName", Subject = GoDocSubject.Getter, Summary = "Gets or sets the display name." }), 57("setter", new GoDocContent { GoName = "SetDisplayName", Subject = GoDocSubject.Setter, Summary = "Gets or sets the display name." }), 58("boolean getter", new GoDocContent { GoName = "IsEnabled", Subject = GoDocSubject.Getter, Summary = "Gets or sets a value indicating whether the resource is enabled." }), 59("setter falls back to the description when the property text cannot be reworded", new GoDocContent { GoName = "SetPort", Subject = GoDocSubject.Setter, Summary = "The port.", FallbackSummary = "Sets the Port property" }), 60("field with a noun phrase", new GoDocContent { GoName = "Port", Subject = GoDocSubject.Field, Summary = "The port to listen on." }), 61("field with a sentence", new GoDocContent { GoName = "Pending", Subject = GoDocSubject.Field, Summary = "The resource is pending." }), 62("field with whether", new GoDocContent { GoName = "UseTls", Subject = GoDocSubject.Field, Summary = "Whether TLS is used." }), 63("type without a verb", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, Summary = "Test settings." }), 64("fallback summary", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, FallbackSummary = "Settings represents Settings." }), 65("nothing to document", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type }), 66("remarks, notes, parameters and returns", new GoDocContent 75("experimental", new GoDocContent { GoName = "WithPreview", Summary = "Adds a preview.", IsExperimental = true }), 76("obsolete with a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true, ObsoleteMessage = "Use WithPreview instead.\nIt replaces this method." }), 77("obsolete without a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true }), 78("experimental and obsolete", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsExperimental = true, IsObsolete = true, ObsoleteMessage = "Use WithPreview." }), 79("long text wraps without splitting words or starting a list", new GoDocContent 85("a remark that looks like a heading stays a paragraph", new GoDocContent { GoName = "WithHeading", Summary = "Adds a heading.", Remarks = "Overview\n- first item" }), 86("special characters are kept", new GoDocContent { GoName = "WithSpecialCharacters", Summary = "Adds <special> characters & \"quotes\", a backslash \\ and a */ terminator. Unicode: 你好こんにちは." }), 102var lines = CreateDocComment().Render(new GoDocContent 126var lines = CreateDocComment().Render(new GoDocContent
5 references to GoDocContent
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (1)
944private GoDocContent CreateCapabilityDoc(AtsCapabilityInfo capability)
GoDocComment.cs (3)
152public IReadOnlyList<string> Render(GoDocContent content) 199public IReadOnlyList<string> RenderSummary(GoDocContent content) 206private List<Block> GetSummaryBlocks(GoDocContent content, Dictionary<string, string> parameterNames)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
GoDocCommentTests.cs (1)
52var cases = new (string Label, GoDocContent Content)[]