9 writes to IsNullable
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
2809IsNullable = true 2841new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }), 2845new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.Primitive, IsNullable = true })); 2968IsNullable = true 2974IsNullable = true
Aspire.Hosting.CodeGeneration.Python.Tests (2)
AtsPythonCodeGeneratorTests.cs (2)
707IsNullable = true 754IsNullable = true
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
786IsNullable = true
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
2607IsNullable = true,
26 references to IsNullable
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
2164typeRef.IsNullable == true
Aspire.Hosting.CodeGeneration.Java (13)
AtsJavaCodeGenerator.cs (13)
868=> $"new {MapTypeRefToJava(typeRef.ElementType, false, useBoxedTypes: typeRef.ElementType?.IsNullable == true)}[] {{ {string.Join(", ", arr.Select(item => RenderJavaExportedValue(item, typeRef.ElementType!, dtoTypesById)))} }}", 1842WriteLine($" return {RenderJavaTransportValueConversion(capability.ReturnType, "result", capability.ReturnType?.IsNullable == true)};"); 1877hasReturn ? MapTypeRefToJava(capability.ReturnType, capability.ReturnType?.IsNullable == true) : "void", 2020return RenderJavaTransportValueConversion(callbackParameter.Type, argumentExpression, callbackParameter.Type?.IsNullable == true); 2040var allowNull = isOptional || typeRef.IsNullable == true; 2063typeRef.ElementType?.IsNullable == true, 2087var allowNull = isOptional || typeRef.IsNullable == true; 2098typeRef.ElementType?.IsNullable == true, 2111typeRef.ElementType?.IsNullable == true, 2195typeRef.ElementType?.IsNullable == true, 2561AtsTypeCategory.Array => $"{MapTypeRefToJava(typeRef.ElementType, typeRef.ElementType?.IsNullable == true)}[]", 2588AtsTypeCategory.Array => $"{MapDtoPropertyTypeToJava(typeRef.ElementType, typeRef.ElementType?.IsNullable == true)}[]", 2625parameter.IsOptional || parameter.IsNullable || parameter.Type?.IsNullable == true);
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
245typeRef.IsNullable == true
Aspire.Hosting.CodeGeneration.Rust (1)
AtsRustCodeGenerator.cs (1)
1060typeRef.IsNullable == true
Aspire.Hosting.CodeGeneration.TypeScript (3)
AtsTypeScriptCodeGenerator.cs (1)
1528IsNullable = callbackProperty.Type.IsNullable == true,
TypeScriptApiProjector.cs (2)
1706if (typeRef.IsNullable != true || typeRef.Category is not (AtsTypeCategory.Primitive or AtsTypeCategory.Enum)) 1735elementType is { IsNullable: true, Category: AtsTypeCategory.Primitive or AtsTypeCategory.Enum };
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
144IsNullable = t.IsNullable,
Aspire.Hosting.RemoteHost.Tests (6)
AtsCapabilityScannerTests.cs (6)
179Assert.True(typeRef.ElementType.IsNullable); 463Assert.True(descriptionGetter.ReturnType.IsNullable); 484Assert.True(nullableString.Type.IsNullable); 489Assert.NotEqual(true, requiredString.Type.IsNullable); 494Assert.True(nullableNumber.Type.IsNullable); 499Assert.NotEqual(true, requiredNumber.Type.IsNullable);