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

Method tokenize

packages/core/css/CSS3Parser.ts:132–141  ·  view source on GitHub ↗

* For testing purposes. * This method allows us to run and assert the proper working of the tokenizer.

()

Source from the content-addressed store, hash-verified

130 * This method allows us to run and assert the proper working of the tokenizer.
131 */
132 tokenize(): InputToken[] {
133 const tokens: InputToken[] = [];
134 let inputToken: InputToken;
135 do {
136 inputToken = this.consumeAToken();
137 tokens.push(inputToken);
138 } while (inputToken);
139
140 return tokens;
141 }
142
143 /**
144 * 4.3.1. Consume a token

Callers 1

parser.spec.tsFile · 0.80

Calls 2

consumeATokenMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected