47 references to Void
Aspire.Hosting.CodeGeneration.Go (5)
AtsGoCodeGenerator.cs (5)
1136&& p.CallbackReturnType.TypeId != AtsConstants.Void; 1153var hasReturn = capability.ReturnType is not null && capability.ReturnType.TypeId != AtsConstants.Void; 1541&& p.CallbackReturnType.TypeId != AtsConstants.Void; 1892var hasReturn = capability.ReturnType is not null && capability.ReturnType.TypeId != AtsConstants.Void; 2171AtsConstants.Void => "",
Aspire.Hosting.CodeGeneration.Java (6)
AtsJavaCodeGenerator.cs (6)
1875var hasReturn = capability.ReturnType?.TypeId != AtsConstants.Void; 1887var hasReturnType = callbackReturnType != null && callbackReturnType.TypeId != AtsConstants.Void; 1921var hasReturnType = callbackParam.CallbackReturnType != null && callbackParam.CallbackReturnType.TypeId != AtsConstants.Void; 1967var hasReturnType = property.CallbackReturnType != null && property.CallbackReturnType.TypeId != AtsConstants.Void; 2096AtsConstants.Void => "null", 2586AtsConstants.Void => "void",
Aspire.Hosting.CodeGeneration.Python (2)
AtsPythonCodeGenerator.cs (2)
242return typeRef.TypeId is AtsConstants.Void or AtsConstants.Any or AtsConstants.CancellationToken 255AtsConstants.Void => "None",
Aspire.Hosting.CodeGeneration.Python.Tests (1)
AtsPythonCodeGeneratorTests.cs (1)
545TypeId = AtsConstants.Void,
Aspire.Hosting.CodeGeneration.Rust (3)
AtsRustCodeGenerator.cs (3)
472var hasReturn = capability.ReturnType.TypeId != AtsConstants.Void; 1014AtsConstants.Void => "()", 1040AtsConstants.Void => "()",
Aspire.Hosting.CodeGeneration.TypeScript (10)
AtsTypeScriptCodeGenerator.cs (6)
133capability.ReturnType.TypeId == AtsConstants.Void ? null : capability.Documentation?.Returns, 134suppressReturns: capability.ReturnType.TypeId == AtsConstants.Void, 911var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId == AtsConstants.Void; 1895&& callbackParam.CallbackReturnType.TypeId != AtsConstants.Void; 2900var isVoid = capability.ReturnType == null || capability.ReturnType.TypeId == AtsConstants.Void; 3152var 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 1755AtsConstants.Void => "void", 3034var returnType = callbackReturnType == null || callbackReturnType.TypeId == AtsConstants.Void
Aspire.Hosting.CodeGeneration.TypeScript.Tests (7)
AtsTypeScriptCodeGeneratorTests.cs (7)
1523TypeId = AtsConstants.Void, 1546TypeId = AtsConstants.Void, 2426TypeId = AtsConstants.Void, 2730TypeId = AtsConstants.Void, 2863TypeId = AtsConstants.Void, 2870TypeId = AtsConstants.Void, 2914TypeId = 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,