MCPcopy Create free account
hub / github.com/prettier/prettier / throwParseError

Function throwParseError

src/language-html/parse/parse.js:123–135  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

121}
122
123function throwParseError(error) {
124 const {
125 msg,
126 span: { start, end },
127 } = error;
128 throw createError(msg, {
129 loc: {
130 start: { line: start.line + 1, column: start.col + 1 },
131 end: { line: end.line + 1, column: end.col + 1 },
132 },
133 cause: error,
134 });
135}
136
137function parseSubHtml(
138 parser,

Callers 2

parseHtmlFunction · 0.85
parseVueFunction · 0.85

Calls 1

createErrorFunction · 0.85

Tested by

no test coverage detected