MCPcopy
hub / github.com/lebab/lebab / logWarning

Function logWarning

src/transform/class/index.js:155–163  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

153 }
154
155 function logWarning(cls) {
156 if (/^[A-Z]/.test(cls.getName())) {
157 logger.warn(
158 cls.getFullNode(),
159 `Function ${cls.getName()} looks like class, but has no prototype`,
160 'class'
161 );
162 }
163 }
164}

Callers 1

leaveFunction · 0.85

Calls 3

getNameMethod · 0.80
warnMethod · 0.80
getFullNodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…