59 references to Primitive
Aspire.Hosting.CodeGeneration.Go (2)
AtsGoCodeGenerator.cs (2)
693AtsTypeCategory.Primitive => value.ToRelaxedJsonString(), 2089AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId),
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
863AtsTypeCategory.Primitive => value.ToRelaxedJsonString(), 2030AtsTypeCategory.Primitive => RenderJavaPrimitiveTransportValueConversion(typeRef.TypeId, valueExpression, allowNull), 2494AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId, isOptional || useBoxedTypes),
Aspire.Hosting.CodeGeneration.Java.Tests (3)
AtsJavaCodeGeneratorTests.cs (3)
667new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }); 701KeyType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }, 702ValueType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
218AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 237if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum)) 936if (!topLevel || typeRef.Category is AtsTypeCategory.Primitive)
Aspire.Hosting.CodeGeneration.Python.Tests (3)
AtsPythonCodeGeneratorTests.cs (3)
416Category = AtsTypeCategory.Primitive 472Category = AtsTypeCategory.Primitive 546Category = AtsTypeCategory.Primitive
Aspire.Hosting.CodeGeneration.Rust (5)
AtsRustCodeGenerator.cs (5)
383AtsTypeCategory.Primitive => true, 912AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 950AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 990AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 1033if (typeRef.Category == AtsTypeCategory.Primitive)
Aspire.Hosting.CodeGeneration.TypeScript (3)
TypeScriptApiProjector.cs (3)
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))
Aspire.Hosting.CodeGeneration.TypeScript.Tests (11)
AtsTypeScriptCodeGeneratorTests.cs (11)
1524Category = AtsTypeCategory.Primitive 1547Category = AtsTypeCategory.Primitive 1923Assert.Equal(AtsTypeCategory.Primitive, ctParam.Type.Category); 2422Category = AtsTypeCategory.Primitive 2427Category = AtsTypeCategory.Primitive 2731Category = AtsTypeCategory.Primitive 2864Category = AtsTypeCategory.Primitive 2871Category = AtsTypeCategory.Primitive 2898Category = AtsTypeCategory.Primitive 2907Category = AtsTypeCategory.Primitive 2915Category = AtsTypeCategory.Primitive
Aspire.Hosting.RemoteHost (19)
Ats\AtsMarshaller.cs (3)
154AtsTypeCategory.Primitive => SerializePrimitive(value), 192AtsTypeCategory.Primitive => SerializePrimitive(value), 431AtsTypeCategory.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 2682return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2688return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2698KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2699ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2711ElementType = 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)
225Category = AtsTypeCategory.Primitive
Aspire.TypeSystem (3)
AtsConstants.cs (2)
361return AtsTypeCategory.Primitive; 448return AtsTypeCategory.Primitive;
AtsContext.cs (1)
112return AtsTypeCategory.Primitive;