getFunctionSignature method
String
getFunctionSignature(
- RemoteFunctionIdentifier remoteFunctionIdentifier,
- RemoteFunctionRequest remoteFunctionRequest
Implementation
String getFunctionSignature(
RemoteFunctionIdentifier remoteFunctionIdentifier,
RemoteFunctionRequest remoteFunctionRequest)
{
String returnTypeName = T == _getType<void>() ? 'void' : this._returnType.runtimeType.toString();
bool isRuntimeFunction = remoteFunctionIdentifier.hasRuntime();
String parameterNames =
this._parameterTypes.isNotEmpty ? this._parameterTypes[0].runtimeType.toString() : '';
for (int i = 1; i < this._parameterTypes.length; i++) {
parameterNames += ', ' + this._parameterTypes[i].runtimeType.toString();
}
String functionName = remoteFunctionIdentifier.functionName;
String functionSignature =
isRuntimeFunction ? 'RuntimeFunction: ' : 'ModuleFunction: ';
functionSignature +=
'$returnTypeName $functionName ($parameterNames)';
return functionSignature;
}