MCPcopy
hub / github.com/lebab/lebab / warn

Method warn

src/Logger.js:15–21  ·  view source on GitHub ↗

* Logs a warning. * @param {Object} node AAST node that caused the warning * @param {String} msg Warning message itself * @param {String} type Name of the transform

(node, msg, type)

Source from the content-addressed store, hash-verified

13 * @param {String} type Name of the transform
14 */
15 warn(node, msg, type) {
16 this.warnings.push({
17 line: node.loc ? node.loc.start.line : 0,
18 msg,
19 type,
20 });
21 }
22
23 /**
24 * Returns list of all the warnings

Callers 10

enterFunction · 0.80
enterFunction · 0.80
enterFunction · 0.80
enterFunction · 0.80
logWarningForVarKindFunction · 0.80
splitDeclarationFunction · 0.80
enterFunction · 0.80
enterFunction · 0.80
enterFunction · 0.80
logWarningFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected