MCPcopy
hub / github.com/webpack/webpack / _emitWarning

Method _emitWarning

lib/css/CssParser.js:834–844  ·  view source on GitHub ↗

* Processes the provided state. * @param {ParserState} state parser state * @param {string} message warning message * @param {LocConverter} locConverter location converter * @param {number} start start offset * @param {number} end end offset

(state, message, locConverter, start, end)

Source from the content-addressed store, hash-verified

832 * @param {number} end end offset
833 */
834 _emitWarning(state, message, locConverter, start, end) {
835 const { line: sl, column: sc } = locConverter.get(start);
836 const { line: el, column: ec } = locConverter.get(end);
837
838 state.current.addWarning(
839 new ModuleDependencyWarning(state.module, new WebpackError(message), {
840 start: { line: sl, column: sc },
841 end: { line: el, column: ec }
842 })
843 );
844 }
845
846 /**
847 * Emits a build error for the provided range.

Callers 6

processImportOrExportMethod · 0.95
walkSelectorListMethod · 0.95
handleImportAtRuleMethod · 0.95
handleValueAtRuleMethod · 0.95
parseMethod · 0.95

Calls 2

getMethod · 0.45
addWarningMethod · 0.45

Tested by

no test coverage detected