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

Method consumeAName

packages/core/css/CSS3Parser.ts:437–447  ·  view source on GitHub ↗

* 4.3.11. Consume a name * https://www.w3.org/TR/css-syntax-3/#consume-a-name

()

Source from the content-addressed store, hash-verified

435 * https://www.w3.org/TR/css-syntax-3/#consume-a-name
436 */
437 private consumeAName(): InputTokenObject {
438 nameRegEx.lastIndex = this.nextInputCodePointIndex;
439 const result = nameRegEx.exec(this.text);
440 if (!result) {
441 return null;
442 }
443 this.nextInputCodePointIndex = nameRegEx.lastIndex;
444
445 // TODO: Perform string escaping.
446 return { type: TokenObjectType.ident, text: result[0] };
447 }
448
449 private consumeAtKeyword(): InputTokenObject {
450 this.nextInputCodePointIndex++;

Callers 4

consumeAHashTokenMethod · 0.95
consumeANumericTokenMethod · 0.95
consumeAtKeywordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected