35 references to Enum
Aspire.Hosting.CodeGeneration.Go (3)
AtsGoCodeGenerator.cs (3)
988AtsTypeCategory.Enum => $"{MapEnumType(typeRef.TypeId)}({RenderGoJsonValue(value)})", 2612AtsTypeCategory.Enum => MapEnumType(typeRef.TypeId), 2675&& typeRef.Category is AtsTypeCategory.Primitive or AtsTypeCategory.Enum
Aspire.Hosting.CodeGeneration.Go.Tests (2)
GoDocCommentTests.cs (1)
363var statusType = new AtsTypeRef { TypeId = StatusTypeId, Category = AtsTypeCategory.Enum };
GoGeneratorEscapingTests.cs (1)
98var 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)
684if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 1387AtsTypeCategory.Enum => true, 2828Category = 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)
684if (typeRef.Category == AtsTypeCategory.Enum && typeRef.ClrType != null) 1387AtsTypeCategory.Enum => true, 2828Category = 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;