32 instantiations of GoDocContent
Aspire.Hosting.CodeGeneration.Go (10)
AtsGoCodeGenerator.cs (10)
696return new GoDocContent 746WriteDocLines(_docs.Render(new GoDocContent 763WriteDocLines(_docs.Render(new GoDocContent 803WriteDocLines(_docs.Render(new GoDocContent 830WriteDocLines(_docs.Render(new GoDocContent 909foreach (var line in _docs.Render(new GoDocContent 1112WriteDocLines(_docs.Render(new GoDocContent 1264WriteDocLines(_docs.Render(new GoDocContent 1353return _docs.Render(new GoDocContent { GoName = goName, Summary = summary }); 2143WriteDocLines(_docs.Render(new GoDocContent
Aspire.Hosting.CodeGeneration.Go.Tests (22)
GoDocCommentTests.cs (22)
53("method summary is reworded to start with the name", new GoDocContent { GoName = "AddRedis", Summary = "Adds a Redis container resource." }), 54("summary that already starts with the name is kept", new GoDocContent { GoName = "AddRedis", Summary = "AddRedis adds a Redis container resource." }), 55("getter", new GoDocContent { GoName = "DisplayName", Subject = GoDocSubject.Getter, Summary = "Gets or sets the display name." }), 56("setter", new GoDocContent { GoName = "SetDisplayName", Subject = GoDocSubject.Setter, Summary = "Gets or sets the display name." }), 57("boolean getter", new GoDocContent { GoName = "IsEnabled", Subject = GoDocSubject.Getter, Summary = "Gets or sets a value indicating whether the resource is enabled." }), 58("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" }), 59("field with a noun phrase", new GoDocContent { GoName = "Port", Subject = GoDocSubject.Field, Summary = "The port to listen on." }), 60("field with a sentence", new GoDocContent { GoName = "Pending", Subject = GoDocSubject.Field, Summary = "The resource is pending." }), 61("field with whether", new GoDocContent { GoName = "UseTls", Subject = GoDocSubject.Field, Summary = "Whether TLS is used." }), 62("type without a verb", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, Summary = "Test settings." }), 63("fallback summary", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, FallbackSummary = "Settings represents Settings." }), 64("nothing to document", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type }), 65("remarks, notes, parameters and returns", new GoDocContent 74("experimental", new GoDocContent { GoName = "WithPreview", Summary = "Adds a preview.", IsExperimental = true }), 75("obsolete with a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true, ObsoleteMessage = "Use WithPreview instead.\nIt replaces this method." }), 76("obsolete without a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true }), 77("experimental and obsolete", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsExperimental = true, IsObsolete = true, ObsoleteMessage = "Use WithPreview." }), 78("long text wraps without splitting words or starting a list", new GoDocContent 84("a remark that looks like a heading stays a paragraph", new GoDocContent { GoName = "WithHeading", Summary = "Adds a heading.", Remarks = "Overview\n- first item" }), 85("special characters are kept", new GoDocContent { GoName = "WithSpecialCharacters", Summary = "Adds <special> characters & \"quotes\", a backslash \\ and a */ terminator. Unicode: 你好こんにちは." }), 101var lines = CreateDocComment().Render(new GoDocContent 125var lines = CreateDocComment().Render(new GoDocContent
5 references to GoDocContent
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (1)
671private 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)
51var cases = new (string Label, GoDocContent Content)[]