11 writes to IsNullable
Aspire.Hosting.CodeGeneration.Java.Tests (2)
AtsJavaCodeGeneratorTests.cs (2)
2800IsNullable = false 2811IsNullable = false
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
388IsNullable = true,
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
740IsNullable = true,
Aspire.Hosting.CodeGeneration.TypeScript (1)
AtsTypeScriptCodeGenerator.cs (1)
1528IsNullable = callbackProperty.Type.IsNullable == true,
Aspire.Hosting.RemoteHost (6)
AtsCapabilityScanner.cs (6)
1694IsNullable = false, 1736IsNullable = false, 1745IsNullable = false, 1858IsNullable = false, 2115IsNullable = false, 2158IsNullable = isNullable,
30 references to IsNullable
Aspire.Hosting.CodeGeneration.Java (13)
AtsJavaCodeGenerator.cs (13)
1078if (parameter.IsOptional || parameter.IsNullable) 1128var wrapperType = MapInputTypeToJava(parameter.Type, parameter.IsOptional || parameter.IsNullable); 1408.Select(type => new { Type = type, JavaType = MapInputTypeToJava(type, unionParameter.IsOptional || unionParameter.IsNullable) }) 1421? MapInputTypeToJava(unionType, unionParameter.IsOptional || unionParameter.IsNullable) 1456.Select(t => new { Type = t, JavaType = MapInputTypeToJava(t, up.IsOptional || up.IsNullable) }) 1478? MapInputTypeToJava(combination[unionIndex], parameter.IsOptional || parameter.IsNullable) 1598.Select(type => new { Type = type, JavaType = MapInputTypeToJava(type, unionParameter.IsOptional || unionParameter.IsNullable) }) 1611? MapInputTypeToJava(unionType, unionParameter.IsOptional || unionParameter.IsNullable) 1647WriteLine($" 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)}"))}) {{"); 1694var parameterType = MapInputTypeToJava(unionType, unionParameter.IsOptional || unionParameter.IsNullable); 1914var isOptional = callbackParam.IsOptional || callbackParam.IsNullable; 2222private static bool IsOmittableParameter(AtsParameterInfo parameter) => parameter.IsOptional || parameter.IsNullable; 2625parameter.IsOptional || parameter.IsNullable || parameter.Type?.IsNullable == true);
Aspire.Hosting.CodeGeneration.Python (9)
AtsPythonCodeGenerator.cs (9)
367if (extraParam.IsOptional || extraParam.IsNullable || extraParam.IsCallback) 502(param.IsNullable || AllowsNoneAtTopLevel(param.Type)); 550var annotatedType = param.IsNullable ? MakeNullable(param, mappedType) : mappedType; 1357var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList(); 1406if (param.IsOptional || param.IsNullable) 1669var requiredParams = userParams.Where(p => !p.IsOptional && !p.IsNullable).ToList(); 1746if (param.IsOptional || param.IsNullable) 1828if (param.IsOptional || param.IsNullable) 1864if (param.IsOptional || param.IsNullable)
Aspire.Hosting.CodeGeneration.TypeScript (7)
AtsTypeScriptCodeGenerator.cs (4)
1092var optional = param.IsOptional || param.IsNullable ? "?" : ""; 1440if (param.IsOptional || param.IsNullable) 1801var isOptional = callbackParam.IsOptional || callbackParam.IsNullable; 2850var optional = param.IsOptional || param.IsNullable ? "?" : "";
TypeScriptApiProjector.cs (3)
367IsOptional = parameter.IsOptional || parameter.IsNullable, 1291IsOptional = parameter.IsOptional || parameter.IsNullable, 2110if (param.IsOptional || param.IsNullable)
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
126IsNullable = p.IsNullable,