6 writes to Type
Aspire.Hosting.CodeGeneration.Java.Tests (1)
AtsJavaCodeGeneratorTests.cs (1)
688Type = propertyType
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); 723members.Add($"{ToPascalCase(property.Name)}: {RenderGoExportedValue(propertyValue, property.Type, dtoTypesById)}"); 1529Type = 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)); 1958: MapDtoPropertyTypeToJava(property.Type, property.IsOptional);
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
858: MapDtoPropertyTypeToPython(prop.Type); 957members.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)
380.Where(p => p.IsCallback || RequiresDtoCallbackMarshalling(p.Type)) 402return dtoType.Properties.Any(p => p.IsCallback || RequiresDtoCallbackMarshalling(p.Type, visitedDtoTypeIds)); 666: _projector.MapDtoPropertyTypeToTypeScript(prop.Type); 1490if (!TryGetDtoCallbackMarshallingProperties(dtoProperty.Type, out var nestedMarshallingProperties)) 1499if (!visitedDtoTypeIds.Add(dtoProperty.Type.TypeId)) 1515visitedDtoTypeIds.Remove(dtoProperty.Type.TypeId); 1523Type = callbackProperty.Type, 1525IsNullable = 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)
171Type = MapTypeRef(p.Type),
Aspire.Hosting.RemoteHost.Tests (8)
AtsCapabilityScannerTests.cs (8)
469Assert.Equal(AtsConstants.String, nullableString.Type.TypeId); 470Assert.True(nullableString.Type.IsNullable); 474Assert.Equal(AtsConstants.String, requiredString.Type.TypeId); 475Assert.NotEqual(true, requiredString.Type.IsNullable); 479Assert.Equal(AtsConstants.Number, nullableNumber.Type.TypeId); 480Assert.True(nullableNumber.Type.IsNullable); 484Assert.Equal(AtsConstants.Number, requiredNumber.Type.TypeId); 485Assert.NotEqual(true, requiredNumber.Type.IsNullable);