12 references to Method
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.ApiProjection.cs (7)
136declaration is { Kind: GoDeclarationKind.Method, Name: "Err", Owner: "handleWrapperBase" }) 148.Where(declaration => declaration.Kind is GoDeclarationKind.Method or GoDeclarationKind.Field or GoDeclarationKind.Constant) 233declaration is { Kind: GoDeclarationKind.Method, Name: "Build" }) 711markers.Select(marker => new GoDeclaration { Kind = GoDeclarationKind.Method, Name = marker, Signature = $"{marker}()" }), 1012members.AddRange(ProjectMembers(interfaceName, helpers.Where(helper => helper.Kind == GoDeclarationKind.Method), GoApiErrorModel.Returned)); 1038GoDeclarationKind.Method => GoApiMemberKind.Method, 1151foreach (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)
617(GoDeclarationKind.Method, "Greeter", "ToMap", "ToMap() map[string]any"), 622(GoDeclarationKind.Method, "List", "Count", "Count() (int, error)"), 681(GoDeclarationKind.Method, "\u00C9tat", "\u00C9crire", "\u00C9crire() error"), 705var err = Assert.Single(declarations, declaration => declaration is { Kind: GoDeclarationKind.Method, Name: "Err", Owner: "handleWrapperBase" });