12 references to Method
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.ApiProjection.cs (7)
123declaration is { Kind: GoDeclarationKind.Method, Name: "Err", Owner: "handleWrapperBase" }) 135.Where(declaration => declaration.Kind is GoDeclarationKind.Method or GoDeclarationKind.Field or GoDeclarationKind.Constant) 220declaration is { Kind: GoDeclarationKind.Method, Name: "Build" }) 561markers.Select(marker => new GoDeclaration { Kind = GoDeclarationKind.Method, Name = marker, Signature = $"{marker}()" }), 864members.AddRange(ProjectMembers(interfaceName, helpers.Where(helper => helper.Kind == GoDeclarationKind.Method), GoApiErrorModel.Returned)); 890GoDeclarationKind.Method => GoApiMemberKind.Method, 993foreach (var method in members.Where(member => member.Kind == GoDeclarationKind.Method))
GoDeclarationScanner.cs (1)
371Kind = GoDeclarationKind.Method,
Aspire.Hosting.CodeGeneration.Go.Tests (4)
GoApiExportTests.cs (4)
479(GoDeclarationKind.Method, "Greeter", "ToMap", "ToMap() map[string]any"), 484(GoDeclarationKind.Method, "List", "Count", "Count() (int, error)"), 543(GoDeclarationKind.Method, "\u00C9tat", "\u00C9crire", "\u00C9crire() error"), 554var err = Assert.Single(declarations, declaration => declaration is { Kind: GoDeclarationKind.Method, Name: "Err", Owner: "handleWrapperBase" });