38 references to Enum
Aspire.Hosting.CodeGeneration.Go (6)
AtsGoCodeGenerator.cs (6)
1260AtsTypeCategory.Enum => $"{MapEnumType(typeRef.TypeId)}({RenderGoJsonValue(value)})", 2525return property.Type.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum 2536AtsTypeCategory.Enum or AtsTypeCategory.Callback or AtsTypeCategory.Array => true, 2609return parameter.Type is { Category: AtsTypeCategory.Primitive or AtsTypeCategory.Enum } 3076AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 3139&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Go.Tests (2)
GoDocCommentTests.cs (1)
453var statusType = new AtsTypeRef { TypeId = StatusTypeId, Category = AtsTypeCategory.Enum };
GoGeneratorEscapingTests.cs (1)
122var enumType = new AtsTypeRef { TypeId = StatusTypeId, Category = AtsTypeCategory.Enum };
Aspire.Hosting.CodeGeneration.Java (3)
AtsJavaCodeGenerator.cs (3)
880AtsTypeCategory.Enum => $"{MapTypeRefToJava(typeRef, false)}.fromValue({value.ToRelaxedJsonString()})", 2064AtsTypeCategory.Enum => RenderJavaEnumTransportValueConversion(typeRef.TypeId, valueExpression, allowNull), 2577AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId),
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
223AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 246&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Rust (5)
AtsRustCodeGenerator.cs (5)
387AtsTypeCategory.Enum => true, 915AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 953AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 993AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 1063&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.TypeScript (3)
TypeScriptApiProjector.cs (3)
1692AtsTypeCategory.Enum => MapEnumType(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.Native.CodeGeneration (3)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (3)
690if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 1400AtsTypeCategory.Enum => true, 2841Category = AtsTypeCategory.Enum
Aspire.Hosting.RemoteHost (6)
Ats\AtsMarshaller.cs (3)
159AtsTypeCategory.Enum => JsonValue.Create(value.ToString()), 217AtsTypeCategory.Enum => JsonValue.Create(value.ToString()), 456AtsTypeCategory.Enum => JsonValue.Create(value.ToString()),
AtsCapabilityScanner.cs (3)
690if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 1400AtsTypeCategory.Enum => true, 2841Category = AtsTypeCategory.Enum
Aspire.Hosting.RemoteHost.Tests (5)
AtsContextFilterTests.cs (5)
278Category = AtsTypeCategory.Enum 296Category = AtsTypeCategory.Enum 436Category = AtsTypeCategory.Enum 489Category = AtsTypeCategory.Enum 529Category = AtsTypeCategory.Enum
Aspire.TypeSystem (3)
AtsConstants.cs (2)
366return AtsTypeCategory.Enum; 453return AtsTypeCategory.Enum;
AtsContext.cs (1)
118return AtsTypeCategory.Enum;