MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / parse

Method parse

packages/core/css-value/reworkcss-value.ts:120–130  ·  view source on GitHub ↗

Run the full parse loop

()

Source from the content-addressed store, hash-verified

118
119 /** Run the full parse loop */
120 public parse(): Token[] {
121 const vals: Token[] = [];
122 while (this.str.length > 0) {
123 const obj = this.value();
124 if (!obj) {
125 throw new Error(`failed to parse near \`${this.str.slice(0, 10)}...\``);
126 }
127 vals.push(obj);
128 }
129 return vals;
130 }
131}

Callers

nothing calls this directly

Calls 3

valueMethod · 0.95
sliceMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected