12 writes to IsNullable
Aspire.Hosting.CodeGeneration.Java.Tests (5)
AtsJavaCodeGeneratorTests.cs (5)
2861IsNullable = true 2895new AtsTypeRef { TypeId = AtsConstants.Boolean, Category = AtsTypeCategory.Primitive, IsNullable = true }), 2899new AtsTypeRef { TypeId = AtsConstants.Number, Category = AtsTypeCategory.Primitive, IsNullable = true }), 3030IsNullable = true 3036IsNullable = true
Aspire.Hosting.CodeGeneration.Python.Tests (2)
AtsPythonCodeGeneratorTests.cs (2)
1077IsNullable = true 1124IsNullable = true
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
AtsTypeScriptCodeGeneratorTests.cs (2)
953IsNullable = true 1053IsNullable = true
Aspire.Hosting.Native.CodeGeneration (1)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (1)
2709IsNullable = true,
Aspire.Hosting.RemoteHost (2)
Ats\ExternalCapabilityRegistry.cs (1)
811IsNullable = typeRef.IsNullable,
AtsCapabilityScanner.cs (1)
2709IsNullable = true,
35 references to IsNullable
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.cs (1)
2674typeRef.IsNullable == true
Aspire.Hosting.CodeGeneration.Java (13)
AtsJavaCodeGenerator.cs (13)
884=> $"new {MapTypeRefToJava(typeRef.ElementType, false, useBoxedTypes: typeRef.ElementType?.IsNullable == true)}[] {{ {string.Join(", ", arr.Select(item => RenderJavaExportedValue(item, typeRef.ElementType!, dtoTypesById)))} }}", 1862WriteLine($" return {RenderJavaTransportValueConversion(capability.ReturnType, "result", capability.ReturnType?.IsNullable == true)};"); 1897hasReturn ? MapTypeRefToJava(capability.ReturnType, capability.ReturnType?.IsNullable == true) : "void", 2040return RenderJavaTransportValueConversion(callbackParameter.Type, argumentExpression, callbackParameter.Type?.IsNullable == true); 2060var allowNull = isOptional || typeRef.IsNullable == true; 2083typeRef.ElementType?.IsNullable == true, 2107var allowNull = isOptional || typeRef.IsNullable == true; 2118typeRef.ElementType?.IsNullable == true, 2131typeRef.ElementType?.IsNullable == true, 2215typeRef.ElementType?.IsNullable == true, 2581AtsTypeCategory.Array => $"{MapTypeRefToJava(typeRef.ElementType, typeRef.ElementType?.IsNullable == true)}[]", 2608AtsTypeCategory.Array => $"{MapDtoPropertyTypeToJava(typeRef.ElementType, typeRef.ElementType?.IsNullable == true)}[]", 2645parameter.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)
1062typeRef.IsNullable == true
Aspire.Hosting.CodeGeneration.TypeScript (3)
AtsTypeScriptCodeGenerator.cs (1)
1564IsNullable = 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.CodeGeneration.TypeScript.Tests (5)
AtsTypeScriptCodeGeneratorTests.cs (5)
660Assert.NotEqual(true, setValue.ReturnType.IsNullable); 670Assert.NotEqual(true, valueParameter.Type.IsNullable); 679Assert.True(tryGetCurrentValue.ReturnType.IsNullable); 701Assert.Equal(nullable, capability.ReturnType.IsNullable == true); 1391Assert.True(Assert.Single(propertySetter.Parameters, p => p.Name == "value").Type?.IsNullable);
Aspire.Hosting.Native.CodeGeneration (3)
NativeCSharpProjection.cs (3)
100inputs.Any(parameter => parameter.Type is null || parameter.Type.IsNullable == true)) 203var missingResult = resultType is "bool" or "int" or "long" || capability.ReturnType.IsNullable == true ? "" : 254return type.IsNullable == true ? name + "?" : name;
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);