101 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)
878AtsTypeCategory.Primitive => value.ToRelaxedJsonString(), 2062AtsTypeCategory.Primitive => RenderJavaPrimitiveTransportValueConversion(typeRef.TypeId, valueExpression, allowNull), 2575AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId, isOptional || useBoxedTypes),
Aspire.Hosting.CodeGeneration.Java.Tests (20)
AtsJavaCodeGeneratorTests.cs (20)
2728var stringType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }; 2776var stringType = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive }; 2785CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2792ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 2824ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 2860Category = AtsTypeCategory.Primitive, 2893new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }), 2897new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.Primitive, IsNullable = true })); 3019Category = AtsTypeCategory.Primitive, 3025Category = AtsTypeCategory.Primitive, 3056CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3063ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3287Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3309Category = AtsTypeCategory.Primitive 3373CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3380ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3402Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3648new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }); 3682KeyType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }, 3683ValueType = 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) 1009if (!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 1691AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 1710if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum)) 1739elementType is { IsNullable: true, Category: AtsTypeCategory.Primitive or AtsTypeCategory.Enum };
Aspire.Hosting.CodeGeneration.TypeScript.Tests (16)
AtsTypeScriptCodeGeneratorTests.cs (16)
281Category = AtsTypeCategory.Primitive 890Category = AtsTypeCategory.Primitive, 963Category = AtsTypeCategory.Primitive 990Category = AtsTypeCategory.Primitive, 997KeyType = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive }, 1850Category = AtsTypeCategory.Primitive 1875Category = AtsTypeCategory.Primitive 2252Assert.Equal(AtsTypeCategory.Primitive, ctParam.Type.Category); 2839Category = AtsTypeCategory.Primitive 2844Category = AtsTypeCategory.Primitive 3148Category = AtsTypeCategory.Primitive 3281Category = AtsTypeCategory.Primitive 3288Category = AtsTypeCategory.Primitive 3315Category = AtsTypeCategory.Primitive 3324Category = AtsTypeCategory.Primitive 3332Category = AtsTypeCategory.Primitive
Aspire.Hosting.RemoteHost (19)
Ats\AtsMarshaller.cs (3)
158AtsTypeCategory.Primitive => SerializePrimitive(value), 216AtsTypeCategory.Primitive => SerializePrimitive(value), 455AtsTypeCategory.Primitive => SerializePrimitive(value),
AtsCapabilityScanner.cs (15)
1386AtsTypeCategory.Primitive => typeRef.TypeId != AtsConstants.CancellationToken && typeRef.TypeId != AtsConstants.Void, 1691: new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.Primitive }; 1718propertyTypeRef = new AtsTypeRef { TypeId = AtsConstants.Any, Category = AtsTypeCategory.Primitive }; 2288returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2292returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2300?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2301: new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2306?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2334var voidTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2670Category = AtsTypeCategory.Primitive 2764return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2770return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2780KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2781ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2793ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }
AtsContextFilter.cs (1)
345Category = AtsTypeCategory.Primitive
Aspire.Hosting.RemoteHost.Tests (13)
AtsContextFilterTests.cs (3)
285Type = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 580Category = AtsTypeCategory.Primitive 606Category = AtsTypeCategory.Primitive
AtsMarshallerTests.cs (7)
175new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 176new AtsTypeRef { TypeId = AtsConstants.Number, ClrType = typeof(int), Category = AtsTypeCategory.Primitive }, 177new AtsTypeRef { TypeId = AtsConstants.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.Primitive } 198new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 220new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 221new AtsTypeRef { TypeId = AtsConstants.Boolean, ClrType = typeof(bool), Category = AtsTypeCategory.Primitive } 294Category = AtsTypeCategory.Primitive
ExternalCapabilityRegistryTests.cs (3)
894ReturnType = new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive } 920ReturnType = new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive } 964Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive },
Aspire.TypeSystem (3)
AtsConstants.cs (2)
361return AtsTypeCategory.Primitive; 448return AtsTypeCategory.Primitive;
AtsContext.cs (1)
112return AtsTypeCategory.Primitive;