14 instantiations of GoApiItem
Aspire.Hosting.CodeGeneration.Go (10)
AtsGoCodeGenerator.ApiProjection.cs (10)
169scope.AddItem(new GoApiItem 183scope.AddItem(new GoApiItem 241scope.AddItem(new GoApiItem 413scope.AddItem(new GoApiItem 443scope.AddItem(new GoApiItem 485scope.AddItem(new GoApiItem 579scope.AddItem(new GoApiItem 693scope.AddItem(new GoApiItem 742scope.AddItem(new GoApiItem 767scope.AddItem(new GoApiItem
Aspire.Hosting.CodeGeneration.Go.Tests (4)
GoApiExportTests.cs (4)
1042new GoApiItem 1123new GoApiItem 1146new GoApiItem 1168new GoApiItem
26 references to GoApiItem
Aspire.Hosting.CodeGeneration.Go (6)
AtsGoCodeGenerator.ApiProjection.cs (2)
1240public Dictionary<string, GoApiItem> Items { get; } = new(StringComparer.Ordinal); 1263public 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)
175/// A method, field or constant on an <see cref="GoApiItem"/>. 393public required IReadOnlyList<GoApiItem> Items { get; init; }
Aspire.Hosting.CodeGeneration.Go.Tests (20)
AtsGoDerivedBuilderTests.cs (1)
169var workload = Assert.Single(model.Modules.Single().Items, item => item.Id == "interface:WorkloadResource");
GoApiExportTests.cs (19)
49var inputCollection = Assert.Single( 110var builder = Assert.Single(items, item => item.Kind == GoApiItemKind.Augmentation && item.Name == "DistributedApplicationBuilder"); 152var builder = Assert.Single(items, item => item.Id == "interface:DistributedApplicationBuilder"); 161var builder = Assert.Single(items, item => item.Id == "interface:DistributedApplicationBuilder"); 168var inputCollection = Assert.Single(items, item => item.TypeId == InputCollectionTypeId); 286var dto = Assert.Single(items, item => item.Id == "dto:TestConfigDto"); 298var options = Assert.Single(items, item => item.Id == "options:WithPersistenceOptions"); 434foreach (var item in interfaces) 502static bool IsOwnedByPackage(GoApiItem item, GoApiMember member) 512var sharedOptions = Assert.Single(full, item => item.Id == "options:SetCancellationTokenOptions"); 875private static bool IsTypeItem(GoApiItem item) 878private static GoApiMember FindMember(IReadOnlyList<GoApiItem> items, string interfaceName, string memberName) 880var item = Assert.Single(items, item => item.Id == $"interface:{interfaceName}"); 885private static GoApiMember FindTypeMember(IReadOnlyList<GoApiItem> items, string typeName, string memberName) 887var item = Assert.Single(items, item => item.Id == $"type:{typeName}"); 894private static IEnumerable<string> DescribeDeclarations(GoApiItem item, IEnumerable<GoApiMember> members) 999var focused = new List<GoApiItem>(); 1003var item = items.TryGetValue(itemId, out var found)