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

Function consumeStyleKey

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

Source from the content-addressed store, hash-verified

207 * @returns Index after last style key character.
208 */
209export function consumeStyleKey(text: string, startIndex: number, endIndex: number): number {
210 let ch: number;
211 while (
212 startIndex < endIndex &&
213 ((ch = text.charCodeAt(startIndex)) === CharCode.DASH ||
214 ch === CharCode.UNDERSCORE ||
215 ((ch & CharCode.UPPER_CASE) >= CharCode.A && (ch & CharCode.UPPER_CASE) <= CharCode.Z) ||
216 (ch >= CharCode.ZERO && ch <= CharCode.NINE))
217 ) {
218 startIndex++;
219 }
220 return startIndex;
221}
222
223/**
224 * Consumes all whitespace and the separator `:` after the style key.

Callers 1

parseStyleNextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…