12 instantiations of GoApiItem
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.ApiProjection.cs (8)
156scope.AddItem(new GoApiItem 170scope.AddItem(new GoApiItem 228scope.AddItem(new GoApiItem 346scope.AddItem(new GoApiItem 430scope.AddItem(new GoApiItem 543scope.AddItem(new GoApiItem 592scope.AddItem(new GoApiItem 617scope.AddItem(new GoApiItem
Aspire.Hosting.CodeGeneration.Go.Tests (4)
GoApiExportTests.cs (4)
891new GoApiItem 972new GoApiItem 993new GoApiItem 1014new GoApiItem
24 references to GoApiItem
Aspire.Hosting.CodeGeneration.Go (6)
AtsGoCodeGenerator.ApiProjection.cs (2)
1082public Dictionary<string, GoApiItem> Items { get; } = new(StringComparer.Ordinal); 1105public void AddItem(GoApiItem item) => Items.TryAdd(item.Id, item);
GoApiExportWriter.cs (2)
77foreach (var item in module.Items) 88private static JsonObject WriteItem(GoApiItem item)
GoApiModel.cs (2)
176/// A method, field or constant on an <see cref="GoApiItem"/>. 384public required IReadOnlyList<GoApiItem> Items { get; init; }
Aspire.Hosting.CodeGeneration.Go.Tests (18)
AtsGoDerivedBuilderTests.cs (1)
168var workload = Assert.Single(model.Modules.Single().Items, item => item.Id == "interface:WorkloadResource");
GoApiExportTests.cs (17)
46var inputCollection = Assert.Single( 107var builder = Assert.Single(items, item => item.Kind == GoApiItemKind.Augmentation && item.Name == "DistributedApplicationBuilder"); 140var builder = Assert.Single(items, item => item.Id == "interface:DistributedApplicationBuilder"); 149var builder = Assert.Single(items, item => item.Id == "interface:DistributedApplicationBuilder"); 156var inputCollection = Assert.Single(items, item => item.TypeId == InputCollectionTypeId); 309foreach (var item in interfaces) 367static bool IsOwnedByPackage(GoApiItem item, GoApiMember member) 377var sharedOptions = Assert.Single(full, item => item.Id == "options:SetCancellationTokenOptions"); 724private static bool IsTypeItem(GoApiItem item) 727private static GoApiMember FindMember(IReadOnlyList<GoApiItem> items, string interfaceName, string memberName) 729var item = Assert.Single(items, item => item.Id == $"interface:{interfaceName}"); 734private static GoApiMember FindTypeMember(IReadOnlyList<GoApiItem> items, string typeName, string memberName) 736var item = Assert.Single(items, item => item.Id == $"type:{typeName}"); 743private static IEnumerable<string> DescribeDeclarations(GoApiItem item, IEnumerable<GoApiMember> members) 848var focused = new List<GoApiItem>(); 852var item = items.TryGetValue(itemId, out var found)