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

Function consumeSeparator

packages/core/src/render3/styling/styling_parser.ts:231–245  ·  view source on GitHub ↗
(
  text: string,
  startIndex: number,
  endIndex: number,
  separator: number,
)

Source from the content-addressed store, hash-verified

229 * @returns Index after separator and surrounding whitespace.
230 */
231export function consumeSeparator(
232 text: string,
233 startIndex: number,
234 endIndex: number,
235 separator: number,
236): number {
237 startIndex = consumeWhitespace(text, startIndex, endIndex);
238 if (startIndex < endIndex) {
239 if (ngDevMode && text.charCodeAt(startIndex) !== separator) {
240 malformedStyleError(text, String.fromCharCode(separator), startIndex);
241 }
242 startIndex++;
243 }
244 return startIndex;
245}
246
247/**
248 * Consumes style value honoring `url()` and `""` text.

Callers 1

parseStyleNextFunction · 0.85

Calls 2

consumeWhitespaceFunction · 0.85
malformedStyleErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…