MCPcopy
hub / github.com/alibaba/lowcode-engine / getSymbolName

Function getSymbolName

modules/material-parser/src/parse/ts/index.ts:29–37  ·  view source on GitHub ↗
(symbol: ts.Symbol)

Source from the content-addressed store, hash-verified

27}
28
29function getSymbolName(symbol: ts.Symbol) {
30 // @ts-ignore
31 const prefix: string = symbol?.parent && getSymbolName(symbol.parent);
32 const name = symbol.getName();
33 if (prefix && prefix.length <= 20) {
34 return `${prefix}.${name}`;
35 }
36 return name;
37}
38
39function getFunctionParams(parameters: any[] = [], checker, parentIds, type) {
40 return parameters.map((node) => {

Callers 2

isComplexTypeFunction · 0.85
getDocgenTypeHelperFunction · 0.85

Calls 1

getNameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…