MCPcopy Index your code
hub / github.com/angular/angular / malformedStyleError

Function malformedStyleError

packages/core/src/render3/styling/styling_parser.ts:321–332  ·  view source on GitHub ↗
(text: string, expecting: string, index: number)

Source from the content-addressed store, hash-verified

319}
320
321function malformedStyleError(text: string, expecting: string, index: number): never {
322 ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');
323 throw throwError(
324 `Malformed style at location ${index} in string '` +
325 text.substring(0, index) +
326 '[>>' +
327 text.substring(index, index + 1) +
328 '<<]' +
329 text.slice(index + 1) +
330 `'. Expecting '${expecting}'.`,
331 );
332}

Callers 2

consumeSeparatorFunction · 0.85
consumeQuotedTextFunction · 0.85

Calls 2

assertEqualFunction · 0.90
throwErrorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…