122 references to Primitive
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.cs (4)
987AtsTypeCategory.Primitive => RenderGoJsonValue(value), 1003var valueType = typeRef.Category == AtsTypeCategory.Primitive 2611AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 2675&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Go.Tests (4)
AtsGoDerivedBuilderTests.cs (2)
496private static readonly AtsTypeRef s_string = new() { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive }; 657CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }
GoDocCommentTests.cs (1)
475private static AtsTypeRef Primitive(string typeId) => new() { TypeId = typeId, Category = AtsTypeCategory.Primitive };
GoGeneratorEscapingTests.cs (1)
197private static AtsTypeRef Primitive(string typeId) => new() { TypeId = typeId, Category = AtsTypeCategory.Primitive };
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
879AtsTypeCategory.Primitive => value.ToRelaxedJsonString(), 2063AtsTypeCategory.Primitive => RenderJavaPrimitiveTransportValueConversion(typeRef.TypeId, valueExpression, allowNull), 2576AtsTypeCategory.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, 2895new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }), 2899new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.Primitive, IsNullable = true }), 3029Category = AtsTypeCategory.Primitive, 3035Category = AtsTypeCategory.Primitive, 3066CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3073ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3331Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3353Category = AtsTypeCategory.Primitive 3417CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3424ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3446Type = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive } 3692new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }); 3726KeyType = new AtsTypeRef { TypeId = "string", Category = AtsTypeCategory.Primitive }, 3727ValueType = 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 533if (typeRef.Category == AtsTypeCategory.Primitive && typeRef.TypeId == AtsConstants.Void) 1026if (!topLevel || typeRef.Category is AtsTypeCategory.Primitive)
Aspire.Hosting.CodeGeneration.Python.Tests (9)
AtsPythonCodeGeneratorTests.cs (9)
894Category = AtsTypeCategory.Primitive 950Category = AtsTypeCategory.Primitive 1024Category = AtsTypeCategory.Primitive 1076Category = AtsTypeCategory.Primitive, 1084Category = AtsTypeCategory.Primitive 1123Category = AtsTypeCategory.Primitive, 1133Category = AtsTypeCategory.Primitive 1169Category = AtsTypeCategory.Primitive 1175Category = AtsTypeCategory.Primitive
Aspire.Hosting.CodeGeneration.Rust (6)
AtsRustCodeGenerator.cs (6)
386AtsTypeCategory.Primitive => true, 914AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 952AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 992AtsTypeCategory.Primitive => MapPrimitiveType(typeRef.TypeId), 1037if (typeRef.Category == AtsTypeCategory.Primitive) 1063&& 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)
289Category = AtsTypeCategory.Primitive 952Category = AtsTypeCategory.Primitive, 1025Category = AtsTypeCategory.Primitive 1052Category = AtsTypeCategory.Primitive, 1059KeyType = new AtsTypeRef { TypeId = AtsConstants.String, Category = AtsTypeCategory.Primitive }, 2009Category = AtsTypeCategory.Primitive 2034Category = AtsTypeCategory.Primitive 2411Assert.Equal(AtsTypeCategory.Primitive, ctParam.Type.Category); 3022Category = AtsTypeCategory.Primitive 3027Category = AtsTypeCategory.Primitive 3331Category = AtsTypeCategory.Primitive 3464Category = AtsTypeCategory.Primitive 3471Category = AtsTypeCategory.Primitive 3498Category = AtsTypeCategory.Primitive 3507Category = AtsTypeCategory.Primitive 3515Category = AtsTypeCategory.Primitive
Aspire.Hosting.Native.CodeGeneration (17)
NativeCSharpProjection.cs (1)
242AtsTypeCategory.Primitive => type.TypeId switch
NativeProviderTypeScriptProjection.cs (1)
93AtsTypeCategory.Primitive => id switch
src\Aspire.Hosting.RemoteHost\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 2785return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2791return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2801KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2802ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2814ElementType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = 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 2785return new AtsTypeRef { TypeId = primitiveTypeId, ClrType = type, Category = AtsTypeCategory.Primitive }; 2791return new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = type, Category = AtsTypeCategory.Primitive }; 2801KeyType = new AtsTypeRef { TypeId = AtsConstants.String, ClrType = typeof(string), Category = AtsTypeCategory.Primitive }, 2802ValueType = new AtsTypeRef { TypeId = AtsConstants.Any, ClrType = typeof(object), Category = AtsTypeCategory.Primitive }, 2814ElementType = 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;