MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / GetParamsFromJsMethodForDefinitions

Method GetParamsFromJsMethodForDefinitions

src/NodeRTLib/Reflector.cs:377–395  ·  view source on GitHub ↗
(dynamic method, bool isAsync = false)

Source from the content-addressed store, hash-verified

375 }
376
377 public static string GetParamsFromJsMethodForDefinitions(dynamic method, bool isAsync = false)
378 {
379 StringBuilder sb = new StringBuilder();
380 string commaString = string.Empty;
381 foreach (var paramInfo in method.GetParameters())
382 {
383 sb.Append(commaString);
384 sb.Append(paramInfo.Name);
385 commaString = ", ";
386 }
387
388 if (isAsync)
389 {
390 sb.Append(commaString);
391 sb.Append("callback");
392 }
393
394 return sb.ToString();
395 }
396
397 public static string GetParamsFromTsMethodForDefinitions(dynamic method, bool isAsync = false)
398 {

Callers 5

foreachFunction · 0.80
foreachFunction · 0.80
foreachFunction · 0.80
Constructor.jsFile · 0.80
foreachFunction · 0.80

Calls 1

AppendMethod · 0.80

Tested by

no test coverage detected