88 references to Primitive
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (4)
693AtsTypeCategory.Primitive => value.ToRelaxedJsonString(), 709var valueType = typeRef.Category == AtsTypeCategory.Primitive 2105AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 2165&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
863AtsTypeCategory.Primitive => value.ToRelaxedJsonString(), 2043AtsTypeCategory.Primitive => RenderJavaPrimitiveTransportValueConversion(typeRef.TypeId, valueExpression, allowNull), 2556AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId, isOptional || useBoxedTypes),
Aspire.Hosting.CodeGeneration.Java.Tests (20)
AtsJavaCodeGeneratorTests.cs (20)
2676var stringType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }; 2724var stringType = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive }; 2733CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2740ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 2772ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 2808Category = AtsTypeCategory.Primitive, 2841new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }), 2845new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.Primitive, IsNullable = true })); 2967Category = AtsTypeCategory.Primitive, 2973Category = AtsTypeCategory.Primitive, 3004CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3011ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3235Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3257Category = AtsTypeCategory.Primitive 3321CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3328ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3350Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3596new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }); 3630KeyType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }, 3631ValueType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }
Aspire.Hosting.CodeGeneration.Python (4)
AtsPythonCodeGenerator.cs (4)
222AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 246&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum 528if (typeRef.Category == AtsTypeCategory.Primitive && typeRef.TypeId == AtsConstants.Void) 1011if (!topLevel || typeRef.Category is AtsTypeCategory.Primitive)
Aspire.Hosting.CodeGeneration.Python.Tests (9)
AtsPythonCodeGeneratorTests.cs (9)
524Category = AtsTypeCategory.Primitive 580Category = AtsTypeCategory.Primitive 654Category = AtsTypeCategory.Primitive 706Category = AtsTypeCategory.Primitive, 714Category = AtsTypeCategory.Primitive 753Category = AtsTypeCategory.Primitive, 763Category = AtsTypeCategory.Primitive 799Category = AtsTypeCategory.Primitive 805Category = AtsTypeCategory.Primitive
Aspire.Hosting.CodeGeneration.Rust (6)
AtsRustCodeGenerator.cs (6)
383AtsTypeCategory.Primitive => true, 912AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 950AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 990AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 1035if (typeRef.Category == AtsTypeCategory.Primitive) 1061&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptApiProjector.cs (4)
759return exportedValue.Type.Category is AtsTypeCategory.Primitive 1687AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 1706if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum)) 1735elementType is { IsNullable: true, Category: AtsTypeCategory.Primitive or AtsTypeCategory.Enum };
Aspire.Hosting.CodeGeneration.TypeScript.Tests (12)
AtsTypeScriptCodeGeneratorTests.cs (12)
785Category = AtsTypeCategory.Primitive, 1640Category = AtsTypeCategory.Primitive 1663Category = AtsTypeCategory.Primitive 2040Assert.Equal(AtsTypeCategory.Primitive, ctParam.Type.Category); 2571Category = AtsTypeCategory.Primitive 2576Category = AtsTypeCategory.Primitive 2880Category = AtsTypeCategory.Primitive 3013Category = AtsTypeCategory.Primitive 3020Category = AtsTypeCategory.Primitive 3047Category = AtsTypeCategory.Primitive 3056Category = AtsTypeCategory.Primitive 3064Category = AtsTypeCategory.Primitive
Aspire.Hosting.RemoteHost (19)
Ats\AtsMarshaller.cs (3)
158AtsTypeCategory.Primitive => SerializePrimitive(value), 196AtsTypeCategory.Primitive => SerializePrimitive(value), 472AtsTypeCategory.Primitive => SerializePrimitive(value),
AtsCapabilityScanner.cs (15)
1312AtsTypeCategory.Primitive => typeRef.TypeId != AtsConstants.CancellationToken && typeRef.TypeId != AtsConstants.Void, 1617: new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.Primitive }; 1644propertyTypeRef = new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.Primitive }; 2207returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2211returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2219?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2220: new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2225?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2253var voidTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2589Category = AtsTypeCategory.Primitive 2683return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2689return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2699KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2700ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2712ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }
AtsContextFilter.cs (1)
344Category = AtsTypeCategory.Primitive
Aspire.Hosting.RemoteHost.Tests (4)
AtsContextFilterTests.cs (3)
285Type = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 580Category = AtsTypeCategory.Primitive 606Category = AtsTypeCategory.Primitive
AtsMarshallerTests.cs (1)
226Category = AtsTypeCategory.Primitive
Aspire.TypeSystem (3)
AtsConstants.cs (2)
361return AtsTypeCategory.Primitive; 448return AtsTypeCategory.Primitive;
AtsContext.cs (1)
112return AtsTypeCategory.Primitive;