11 writes to IsNullable
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
2861IsNullable = true 2893new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }), 2897new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.Primitive, IsNullable = true })); 3020IsNullable = true 3026IsNullable = true
Aspire.Hosting.CodeGeneration.Python.Tests (2)
AtsPythonCodeGeneratorTests.cs (2)
707IsNullable = true 754IsNullable = true
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
891IsNullable = true 991IsNullable = true
Aspire.Hosting.RemoteHost (2)
Ats\ExternalCapabilityRegistry.cs (1)
811IsNullable = typeRef.IsNullable,
AtsCapabilityScanner.cs (1)
2688IsNullable = true,
27 references to IsNullable
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
2164typeRef.IsNullable == true
Aspire.Hosting.CodeGeneration.Java (13)
AtsJavaCodeGenerator.cs (13)
883=> $"new {MapTypeRefToJava(typeRef.ElementType, false, useBoxedTypes: typeRef.ElementType?.IsNullable == true)}[] {{ {string.Join(", ", arr.Select(item => RenderJavaExportedValue(item, typeRef.ElementType!, dtoTypesById)))} }}", 1861WriteLine($" return {RenderJavaTransportValueConversion(capability.ReturnType, "result", capability.ReturnType?.IsNullable == true)};"); 1896hasReturn ? MapTypeRefToJava(capability.ReturnType, capability.ReturnType?.IsNullable == true) : "void", 2039return RenderJavaTransportValueConversion(callbackParameter.Type, argumentExpression, callbackParameter.Type?.IsNullable == true); 2059var allowNull = isOptional || typeRef.IsNullable == true; 2082typeRef.ElementType?.IsNullable == true, 2106var allowNull = isOptional || typeRef.IsNullable == true; 2117typeRef.ElementType?.IsNullable == true, 2130typeRef.ElementType?.IsNullable == true, 2214typeRef.ElementType?.IsNullable == true, 2580AtsTypeCategory.Array => $"{MapTypeRefToJava(typeRef.ElementType, typeRef.ElementType?.IsNullable == true)}[]", 2607AtsTypeCategory.Array => $"{MapDtoPropertyTypeToJava(typeRef.ElementType, typeRef.ElementType?.IsNullable == true)}[]", 2644parameter.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)
1540IsNullable = callbackProperty.Type.IsNullable == true,
TypeScriptApiProjector.cs (2)
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.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
153IsNullable = t.IsNullable,
Aspire.Hosting.RemoteHost.Tests (7)
AtsCapabilityScannerTests.cs (6)
180Assert.True(typeRef.ElementType.IsNullable); 497Assert.True(descriptionGetter.ReturnType.IsNullable); 518Assert.True(nullableString.Type.IsNullable); 523Assert.NotEqual(true, requiredString.Type.IsNullable); 528Assert.True(nullableNumber.Type.IsNullable); 533Assert.NotEqual(true, requiredNumber.Type.IsNullable);
ExternalCapabilityRegistryTests.cs (1)
977Assert.True(capability.ReturnType!.IsNullable);