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

Method consumeAComment

packages/core/css/CSS3Parser.ts:460–474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458 }
459
460 private consumeAComment(): InputToken {
461 if (this.text[this.nextInputCodePointIndex + 1] === '*') {
462 commentRegEx.lastIndex = this.nextInputCodePointIndex;
463 const result = commentRegEx.exec(this.text);
464 if (!result) {
465 return null; // TODO: Handle <bad-comment>
466 }
467 this.nextInputCodePointIndex = commentRegEx.lastIndex;
468
469 // The CSS spec tokenizer does not emmit comment tokens
470 return this.consumeAToken();
471 }
472
473 return null;
474 }
475
476 private reconsumeTheCurrentInputToken(currentInputToken: InputToken) {
477 this.reconsumedInputToken = currentInputToken;

Callers 1

consumeATokenMethod · 0.95

Calls 1

consumeATokenMethod · 0.95

Tested by

no test coverage detected