12 writes to Name
Aspire.Hosting.CodeGeneration.Go (8)
AtsGoCodeGenerator.ApiProjection.cs (8)
161Name = declaration.Name, 175Name = declaration.Name, 233Name = createBuilder.Name, 351Name = type.Name, 435Name = name, 548Name = name, 597Name = interfaceName, 622Name = interfaceName,
Aspire.Hosting.CodeGeneration.Go.Tests (4)
GoApiExportTests.cs (4)
896Name = "RedisResource", 977Name = "WithPersistenceOptions", 998Name = "RedisKind", 1019Name = "Resource",
12 references to Name
Aspire.Hosting.CodeGeneration.Go (1)
GoApiExportWriter.cs (1)
94["name"] = item.Name,
Aspire.Hosting.CodeGeneration.Go.Tests (11)
GoApiExportTests.cs (11)
107var builder = Assert.Single(items, item => item.Kind == GoApiItemKind.Augmentation && item.Name == "DistributedApplicationBuilder"); 278items.Where(IsTypeItem).Select(item => item.Name)); 281items.Where(item => item.Kind == GoApiItemKind.Function).Select(item => item.Name)); 289var typeNames = typeItems.Select(item => item.Name).ToHashSet(StringComparer.Ordinal); 297typeItems.SelectMany(item => item.Members.Select(member => $"{item.Name}.{member.Name}"))); 312if (!generatedMethods.TryGetValue(item.Name, out var generatedLines)) 314mismatches.Add($"{item.Name}: not generated"); 323mismatches.Add($"{item.Name} @{index}: generated '{generated.ElementAtOrDefault(index)}' vs exported '{exported.ElementAtOrDefault(index)}'"); 347Assert.Equal(generatedNames, variables.Select(variable => variable.Name).Order(StringComparer.Ordinal)); 744=> members.Select(member => $"{item.Name}: {member.Declaration}").Prepend($"{item.Name}: {item.Declaration}");