59 references to Void
Aspire.Hosting.CodeGeneration.Go (6)
AtsGoCodeGenerator.cs (6)
1147&& p.CallbackReturnType.TypeId != AtsConstants.Void; 1164var hasReturn = capability.ReturnType is not null && capability.ReturnType.TypeId != AtsConstants.Void; 1557&& p.CallbackReturnType.TypeId != AtsConstants.Void; 1908var hasReturn = capability.ReturnType is not null && capability.ReturnType.TypeId != AtsConstants.Void; 2166&& typeRef.TypeId is not (AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken); 2192AtsConstants.Void => "",
Aspire.Hosting.CodeGeneration.Java (6)
AtsJavaCodeGenerator.cs (6)
1875var hasReturn = capability.ReturnType?.TypeId != AtsConstants.Void; 1890var hasReturnType = callbackReturnType != null && callbackReturnType.TypeId != AtsConstants.Void; 1924var hasReturnType = callbackParam.CallbackReturnType != null && callbackParam.CallbackReturnType.TypeId != AtsConstants.Void; 1980var hasReturnType = property.CallbackReturnType != null && property.CallbackReturnType.TypeId != AtsConstants.Void; 2158AtsConstants.Void => "null", 2650AtsConstants.Void => "void",
Aspire.Hosting.CodeGeneration.Java.Tests (8)
AtsJavaCodeGeneratorTests.cs (8)
2733CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2740ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 2772ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3004CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3011ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }, 3256TypeId = AtsConstants.Void, 3321CallbackReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 3328ReturnType = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive },
Aspire.Hosting.CodeGeneration.Python (3)
AtsPythonCodeGenerator.cs (3)
247&& typeRef.TypeId is not (AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken); 257AtsConstants.Void => "None", 528if (typeRef.Category == AtsTypeCategory.Primitive && typeRef.TypeId == AtsConstants.Void)
Aspire.Hosting.CodeGeneration.Python.Tests (2)
AtsPythonCodeGeneratorTests.cs (2)
653TypeId = AtsConstants.Void, 762TypeId = AtsConstants.Void,
Aspire.Hosting.CodeGeneration.Rust (4)
AtsRustCodeGenerator.cs (4)
472var hasReturn = capability.ReturnType.TypeId != AtsConstants.Void; 1016AtsConstants.Void => "()", 1042AtsConstants.Void => "()", 1062&& typeRef.TypeId is not (AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken);
Aspire.Hosting.CodeGeneration.TypeScript (10)
AtsTypeScriptCodeGenerator.cs (6)
134capability.ReturnType.TypeId == AtsConstants.Void ? null : capability.Documentation?.Returns, 135suppressReturns: capability.ReturnType.TypeId == AtsConstants.Void, 914var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId == AtsConstants.Void; 1853&& callbackParam.CallbackReturnType.TypeId != AtsConstants.Void; 2858var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId == AtsConstants.Void; 3065var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId == AtsConstants.Void;
TypeScriptApiProjector.cs (4)
424if (capability.ReturnType is null || capability.ReturnType.TypeId == AtsConstants.Void) 1711return typeRef.TypeId is AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken 1763AtsConstants.Void => "void", 3107var returnType = callbackReturnType == null || callbackReturnType.TypeId == AtsConstants.Void
Aspire.Hosting.CodeGeneration.TypeScript.Tests (7)
AtsTypeScriptCodeGeneratorTests.cs (7)
1639TypeId = AtsConstants.Void, 1662TypeId = AtsConstants.Void, 2575TypeId = AtsConstants.Void, 2879TypeId = AtsConstants.Void, 3012TypeId = AtsConstants.Void, 3019TypeId = AtsConstants.Void, 3063TypeId = AtsConstants.Void,
Aspire.Hosting.RemoteHost (9)
AtsCapabilityScanner.cs (8)
1312AtsTypeCategory.Primitive => typeRef.TypeId != AtsConstants.CancellationToken && typeRef.TypeId != AtsConstants.Void, 2207returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2211returnTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2219?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2220: new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2225?? new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive } 2253var voidTypeRef = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive }; 2588TypeId = AtsConstants.Void,
AtsContextFilter.cs (1)
343TypeId = AtsConstants.Void,
Aspire.Hosting.RemoteHost.Tests (2)
AtsContextFilterTests.cs (2)
231Assert.Equal(AtsConstants.Void, filteredSupport.ReturnType.TypeId); 285Type = new AtsTypeRef { TypeId = AtsConstants.Void, Category = AtsTypeCategory.Primitive },
Aspire.TypeSystem (2)
AtsCapabilityInfo.cs (1)
309/// Use <see cref="AtsConstants.Void"/> TypeId for void return types.
AtsConstants.cs (1)
316String or Char or Number or Boolean or Void => true,