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

Function styleStringParser

packages/core/src/render3/instructions/styling.ts:143–147  ·  view source on GitHub ↗
(keyValueArray: KeyValueArray<any>, text: string)

Source from the content-addressed store, hash-verified

141 * @param text text to parse.
142 */
143export function styleStringParser(keyValueArray: KeyValueArray<any>, text: string): void {
144 for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {
145 styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));
146 }
147}
148
149/**
150 * Update class bindings using an object literal or class-string on an element.

Callers

nothing calls this directly

Calls 5

parseStyleFunction · 0.90
parseStyleNextFunction · 0.90
getLastParsedKeyFunction · 0.90
getLastParsedValueFunction · 0.90
styleKeyValueArraySetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…