MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / getFunctionParams

Function getFunctionParams

modules/material-parser/src/parse/ts/index.ts:39–49  ·  view source on GitHub ↗
(parameters: any[] = [], checker, parentIds, type)

Source from the content-addressed store, hash-verified

37}
38
39function getFunctionParams(parameters: any[] = [], checker, parentIds, type) {
40 return parameters.map((node) => {
41 const typeObject = checker.getTypeOfSymbolAtLocation(node.symbol, node.symbol.valueDeclaration);
42 const v = getDocgenTypeHelper(checker, typeObject, false, getNextParentIds(parentIds, type));
43 const name = node.symbol.escapedName;
44 return {
45 name,
46 propType: v,
47 };
48 });
49}
50
51function getFunctionReturns(node: any, checker, parentIds, type) {
52 if (!node) return {};

Callers 1

getDocgenTypeHelperFunction · 0.85

Calls 3

getDocgenTypeHelperFunction · 0.85
getNextParentIdsFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…