MCPcopy
hub / github.com/vuejs/core / stateCDATASequence

Method stateCDATASequence

packages/compiler-core/src/tokenizer.ts:473–486  ·  view source on GitHub ↗
(c: number)

Source from the content-addressed store, hash-verified

471 }
472
473 private stateCDATASequence(c: number): void {
474 if (c === Sequences.Cdata[this.sequenceIndex]) {
475 if (++this.sequenceIndex === Sequences.Cdata.length) {
476 this.state = State.InCommentLike
477 this.currentSequence = Sequences.CdataEnd
478 this.sequenceIndex = 0
479 this.sectionStart = this.index + 1
480 }
481 } else {
482 this.sequenceIndex = 0
483 this.state = State.InDeclaration
484 this.stateInDeclaration(c) // Reconsume the character
485 }
486 }
487
488 /**
489 * When we wait for one specific character, we can speed things up

Callers 1

parseMethod · 0.95

Calls 1

stateInDeclarationMethod · 0.95

Tested by

no test coverage detected