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

Function getComponentName

modules/material-parser/src/parse/ts/index.ts:467–475  ·  view source on GitHub ↗
(exportName, displayName)

Source from the content-addressed store, hash-verified

465}
466
467function getComponentName(exportName, displayName) {
468 if (displayName) {
469 const firstCharCode = displayName.charCodeAt(0);
470 if (firstCharCode >= 65 && firstCharCode <= 90) {
471 return displayName || exportName;
472 }
473 }
474 return exportName;
475}
476
477const defaultTsConfigPath = path.resolve(__dirname, './tsconfig.json');
478

Callers 1

parseTSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…