14 writes to Type
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoCodeGeneratorTests.cs (1)
227Type = nullableNumbers
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
3087new AtsDtoPropertyInfo { Name = "Numbers", Type = numberArray }, 3088new AtsDtoPropertyInfo { Name = "Flags", Type = booleanMatrix } 3287Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3300Type = new AtsTypeRef { TypeId = "callback", Category = AtsTypeCategory.Callback }, 3402Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3669Type = propertyType
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
65Type = nullableNumbers
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
915Type = nullableNumberArrayType
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1200Type = propTypeRef,
Aspire.Hosting.RemoteHost.Tests (4)
AtsContextFilterTests.cs (4)
274Type = new AtsTypeRef 285Type = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 432Type = new AtsTypeRef 485Type = new AtsTypeRef
33 references to Type
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (4)
560: MapDtoPropertyTypeToGo(property.Type, property.IsOptional); 578var propertyType = MapDtoPropertyTypeToGo(property.Type, property.IsOptional); 733members.Add($"{ToPascalCase(property.Name)}: {RenderGoExportedValue(propertyValue, property.Type, dtoTypesById)}"); 1545Type = property.Type,
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
777WriteLine($" value.set{methodName}({RenderJavaDtoPropertyTransportValueConversion(property.Type, transportValueName, property.IsOptional)});"); 912sb.Append(RenderJavaExportedValue(propertyValue, property.Type, dtoTypesById)); 1990: MapDtoPropertyTypeToJava(property.Type, property.IsOptional);
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
931: MapDtoPropertyTypeToPython(prop.Type); 1030members.Add($"{AtsJsonCodeWriter.ToRelaxedJsonString(property.Name)}: {RenderPythonExportedValue(propertyValue, property.Type, dtoTypesById, topLevel: false)}");
Aspire.Hosting.CodeGeneration.Rust (2)
AtsRustCodeGenerator.cs (2)
222var propertyType = MapTypeRefToRustForDto(property.Type, property.IsOptional); 356return dto.Properties.All(property => CanDeriveDefault(property.Type, property.IsOptional, dtoTypesById, visitedTypeIds));
Aspire.Hosting.CodeGeneration.TypeScript (10)
AtsTypeScriptCodeGenerator.cs (8)
392.Where(p => p.IsCallback || RequiresDtoCallbackMarshalling(p.Type)) 414return dtoType.Properties.Any(p => p.IsCallback || RequiresDtoCallbackMarshalling(p.Type, visitedDtoTypeIds)); 681: _projector.MapDtoPropertyTypeToTypeScript(prop.Type); 1505if (!TryGetDtoCallbackMarshallingProperties(dtoProperty.Type, out var nestedMarshallingProperties)) 1514if (!visitedDtoTypeIds.Add(dtoProperty.Type.TypeId)) 1530visitedDtoTypeIds.Remove(dtoProperty.Type.TypeId); 1538Type = callbackProperty.Type, 1540IsNullable = callbackProperty.Type.IsNullable == true,
TypeScriptApiProjector.cs (2)
791members.Add($"{ToCamelCase(property.Name)}: {RenderTypeScriptExportedValue(propertyValue, property.Type)}"); 1403: MapDtoPropertyTypeToTypeScript(property.Type);
Aspire.Hosting.RemoteHost (4)
AtsCapabilityScanner.cs (2)
624CollectEnumClrTypes(prop.Type, enumTypes); 738ResolveTypeRef(prop.Type, validTypes);
AtsContextFilter.cs (1)
485CollectReferencedType(property.Type, handleTypesById, dtoTypesById, enumTypesById, includedHandleTypeIds, includedDtoTypeIds, includedEnumTypeIds);
CodeGeneration\CodeGenerationService.cs (1)
181Type = MapTypeRef(p.Type),
Aspire.Hosting.RemoteHost.Tests (8)
AtsCapabilityScannerTests.cs (8)
517Assert.Equal(AtsConstants.String, nullableString.Type.TypeId); 518Assert.True(nullableString.Type.IsNullable); 522Assert.Equal(AtsConstants.String, requiredString.Type.TypeId); 523Assert.NotEqual(true, requiredString.Type.IsNullable); 527Assert.Equal(AtsConstants.Number, nullableNumber.Type.TypeId); 528Assert.True(nullableNumber.Type.IsNullable); 532Assert.Equal(AtsConstants.Number, requiredNumber.Type.TypeId); 533Assert.NotEqual(true, requiredNumber.Type.IsNullable);