58 references to GoApiItemKind
Aspire.Hosting.CodeGeneration.Go (27)
AtsGoCodeGenerator.ApiProjection.cs (17)
173Kind = GoApiItemKind.Type,
187Kind = GoApiItemKind.Function,
245Kind = GoApiItemKind.Function,
353AddGeneratedType(scope, GoApiItemKind.Enum, "enum", enumType.TypeId, owner, type, members, usedBy: [], dtoType: null);
358AddGeneratedType(scope, GoApiItemKind.Dto, "dto", dtoType.TypeId, owner, type, members, usedBy: [], dtoType);
363AddGeneratedType(scope, GoApiItemKind.Options, "options", $"{owner}/{type.Name}", owner, type, members, producer.UsedBy, dtoType: null);
370GoApiItemKind.Type,
383AddGeneratedType(scope, GoApiItemKind.Type, "type", $"{owner}/{type.Name}", owner, type, members, producer.UsedBy, dtoType: null);
389GoApiItemKind.Type,
417Kind = GoApiItemKind.Function,
447Kind = GoApiItemKind.Function,
463GoApiItemKind kind,
502IsOptional = kind == GoApiItemKind.Options ||
583Kind = GoApiItemKind.Variable,
697Kind = GoApiItemKind.Interface,
746Kind = GoApiItemKind.Augmentation,
771Kind = GoApiItemKind.Interface,
Aspire.Hosting.CodeGeneration.Go.Tests (31)
GoApiExportTests.cs (31)
110var builder = Assert.Single(items, item => item.Kind == GoApiItemKind.Augmentation && item.Name == "DistributedApplicationBuilder");
115items.Where(item => item.Kind != GoApiItemKind.Augmentation),
122GoApiItemKind.Interface,
123GoApiItemKind.Augmentation,
124GoApiItemKind.Dto,
125GoApiItemKind.Options,
126GoApiItemKind.Enum,
127GoApiItemKind.Variable,
128GoApiItemKind.Function,
129GoApiItemKind.Type
146items.Where(item => item.Kind != GoApiItemKind.Augmentation),
182items.Where(item => item.Kind == GoApiItemKind.Interface),
187items.Where(item => item.Kind is GoApiItemKind.Dto or GoApiItemKind.Options),
251item => item.Name == "DistributedApplication" && item.Kind == GoApiItemKind.Interface);
341var fields = Assert.Single(model.Modules.Single().Items, item => item.Kind == GoApiItemKind.Dto)
406items.Where(item => item.Kind == GoApiItemKind.Function).Select(item => item.Name));
413var typeItems = items.Where(item => IsTypeItem(item) && item.Kind != GoApiItemKind.Interface).ToList();
428var interfaces = s_everything.Value.Modules.Single().Items.Where(item => item.Kind == GoApiItemKind.Interface).ToList();
459var variables = s_everything.Value.Modules.Single().Items.Where(item => item.Kind == GoApiItemKind.Variable).ToList();
530Assert.Contains(exported, item => item.Kind == GoApiItemKind.Augmentation && item.Members.Any(member => member.Name == "AddTestRedis"));
828.Where(item => item.Kind == GoApiItemKind.Type)
876=> item.Kind is GoApiItemKind.Interface or GoApiItemKind.Dto or GoApiItemKind.Options or GoApiItemKind.Enum or GoApiItemKind.Type;
1046Kind = GoApiItemKind.Interface,
1127Kind = GoApiItemKind.Options,
1150Kind = GoApiItemKind.Enum,
1172Kind = GoApiItemKind.Augmentation,