14 writes to Type
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoCodeGeneratorTests.cs (1)
65Type = nullableNumbers
Aspire.Hosting.CodeGeneration.Java.Tests (6)
AtsJavaCodeGeneratorTests.cs (6)
3035new AtsDtoPropertyInfo { Name = "Numbers", Type = numberArray }, 3036new AtsDtoPropertyInfo { Name = "Flags", Type = booleanMatrix } 3235Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3248Type = new AtsTypeRef { TypeId = "callback", Category = AtsTypeCategory.Callback }, 3350Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3617Type = propertyType
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
AtsRustCodeGeneratorTests.cs (1)
65Type = nullableNumbers
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
810Type = nullableNumberArrayType
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
1126Type = 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)
762WriteLine($" value.set{methodName}({RenderJavaDtoPropertyTransportValueConversion(property.Type, transportValueName, property.IsOptional)});"); 897sb.Append(RenderJavaExportedValue(propertyValue, property.Type, dtoTypesById)); 1971: MapDtoPropertyTypeToJava(property.Type, property.IsOptional);
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
933: MapDtoPropertyTypeToPython(prop.Type); 1032members.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)
381.Where(p => p.IsCallback || RequiresDtoCallbackMarshalling(p.Type)) 403return dtoType.Properties.Any(p => p.IsCallback || RequiresDtoCallbackMarshalling(p.Type, visitedDtoTypeIds)); 669: _projector.MapDtoPropertyTypeToTypeScript(prop.Type); 1493if (!TryGetDtoCallbackMarshallingProperties(dtoProperty.Type, out var nestedMarshallingProperties)) 1502if (!visitedDtoTypeIds.Add(dtoProperty.Type.TypeId)) 1518visitedDtoTypeIds.Remove(dtoProperty.Type.TypeId); 1526Type = callbackProperty.Type, 1528IsNullable = callbackProperty.Type.IsNullable == true,
TypeScriptApiProjector.cs (2)
791members.Add($"{ToCamelCase(property.Name)}: {RenderTypeScriptExportedValue(propertyValue, property.Type)}"); 1399: MapDtoPropertyTypeToTypeScript(property.Type);
Aspire.Hosting.RemoteHost (4)
AtsCapabilityScanner.cs (2)
550CollectEnumClrTypes(prop.Type, enumTypes); 664ResolveTypeRef(prop.Type, validTypes);
AtsContextFilter.cs (1)
484CollectReferencedType(property.Type, handleTypesById, dtoTypesById, enumTypesById, includedHandleTypeIds, includedDtoTypeIds, includedEnumTypeIds);
CodeGeneration\CodeGenerationService.cs (1)
172Type = MapTypeRef(p.Type),
Aspire.Hosting.RemoteHost.Tests (8)
AtsCapabilityScannerTests.cs (8)
483Assert.Equal(AtsConstants.String, nullableString.Type.TypeId); 484Assert.True(nullableString.Type.IsNullable); 488Assert.Equal(AtsConstants.String, requiredString.Type.TypeId); 489Assert.NotEqual(true, requiredString.Type.IsNullable); 493Assert.Equal(AtsConstants.Number, nullableNumber.Type.TypeId); 494Assert.True(nullableNumber.Type.IsNullable); 498Assert.Equal(AtsConstants.Number, requiredNumber.Type.TypeId); 499Assert.NotEqual(true, requiredNumber.Type.IsNullable);