19 writes to IsNullable
Aspire.Hosting.CodeGeneration.Go.Tests (1)
AtsGoDerivedBuilderTests.cs (1)
649private static AtsParameterInfo Optional(string name, AtsTypeRef type) => new() { Name = name, Type = type, IsOptional = true, IsNullable = true };
Aspire.Hosting.CodeGeneration.Java.Tests (2)
AtsJavaCodeGeneratorTests.cs (2)
2852IsNullable = false 2863IsNullable = false
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
393IsNullable = true,
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
1110IsNullable = true,
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
1564IsNullable = callbackProperty.Type.IsNullable == true,
Aspire.Hosting.Native.CodeGeneration (6)
src\Aspire.Hosting.RemoteHost\AtsCapabilityScanner.cs (6)
1770IsNullable = false, 1813IsNullable = false, 1822IsNullable = false, 1935IsNullable = false, 2196IsNullable = false, 2239IsNullable = isNullable,
Aspire.Hosting.RemoteHost (7)
Ats\ExternalCapabilityRegistry.cs (1)
788IsNullable = parameter.IsNullable,
AtsCapabilityScanner.cs (6)
1770IsNullable = false, 1813IsNullable = false, 1822IsNullable = false, 1935IsNullable = false, 2196IsNullable = false, 2239IsNullable = isNullable,
31 references to IsNullable
Aspire.Hosting.CodeGeneration.Java (13)
AtsJavaCodeGenerator.cs (13)
1094if (parameter.IsOptional || parameter.IsNullable) 1144var wrapperType = MapInputTypeToJava(parameter.Type, parameter.IsOptional || parameter.IsNullable); 1428.Select(type => new { Type = type, JavaType = MapInputTypeToJava(type, unionParameter.IsOptional || unionParameter.IsNullable) }) 1441? MapInputTypeToJava(unionType, unionParameter.IsOptional || unionParameter.IsNullable) 1476.Select(t => new { Type = t, JavaType = MapInputTypeToJava(t, up.IsOptional || up.IsNullable) }) 1498? MapInputTypeToJava(combination[unionIndex], parameter.IsOptional || parameter.IsNullable) 1618.Select(type => new { Type = type, JavaType = MapInputTypeToJava(type, unionParameter.IsOptional || unionParameter.IsNullable) }) 1631? MapInputTypeToJava(unionType, unionParameter.IsOptional || unionParameter.IsNullable) 1667WriteLine($" public {returnInfo.ReturnType} {methodName}({string.Join(", ", requiredParameters.Select(parameter => ReferenceEquals(parameter, unionParameter) ? $"{MapInputTypeToJava(unionType, unionParameter.IsOptional || unionParameter.IsNullable)} {ToCamelCase(parameter.Name)}" : $"{MapParameterToJava(parameter)} {ToCamelCase(parameter.Name)}"))}) {{"); 1714var parameterType = MapInputTypeToJava(unionType, unionParameter.IsOptional || unionParameter.IsNullable); 1934var isOptional = callbackParam.IsOptional || callbackParam.IsNullable; 2242private static bool IsOmittableParameter(AtsParameterInfo parameter) => parameter.IsOptional || parameter.IsNullable; 2645parameter.IsOptional || parameter.IsNullable || parameter.Type?.IsNullable == true);
Aspire.Hosting.CodeGeneration.Python (9)
AtsPythonCodeGenerator.cs (9)
372if (extraParam.IsOptional || extraParam.IsNullable || extraParam.IsCallback) 507(param.IsNullable || AllowsNoneAtTopLevel(param.Type)); 555var annotatedType = param.IsNullable ? MakeNullable(param, mappedType) : mappedType; 1372var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList(); 1421if (param.IsOptional || param.IsNullable) 1684var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList(); 1761if (param.IsOptional || param.IsNullable) 1843if (param.IsOptional || param.IsNullable) 1879if (param.IsOptional || param.IsNullable)
Aspire.Hosting.CodeGeneration.TypeScript (7)
AtsTypeScriptCodeGenerator.cs (4)
1128var optional = param.IsOptional || param.IsNullable ? "?" : ""; 1476if (param.IsOptional || param.IsNullable) 1837var isOptional = callbackParam.IsOptional || callbackParam.IsNullable; 2896var optional = param.IsOptional || param.IsNullable ? "?" : "";
TypeScriptApiProjector.cs (3)
367IsOptional = parameter.IsOptional || parameter.IsNullable, 1295IsOptional = parameter.IsOptional || parameter.IsNullable, 2114if (param.IsOptional || param.IsNullable)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
666Assert.False(valueParameter.IsNullable);
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
135IsNullable = p.IsNullable,