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

Method stateSpecialStartSequence

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

Source from the content-addressed store, hash-verified

402 public currentSequence: Uint8Array = undefined!
403 private sequenceIndex = 0
404 private stateSpecialStartSequence(c: number): void {
405 const isEnd = this.sequenceIndex === this.currentSequence.length
406 const isMatch = isEnd
407 ? // If we are at the end of the sequence, make sure the tag name has ended
408 isEndOfTagSection(c)
409 : // Otherwise, do a case-insensitive comparison
410 (c | 0x20) === this.currentSequence[this.sequenceIndex]
411
412 if (!isMatch) {
413 this.inRCDATA = false
414 } else if (!isEnd) {
415 this.sequenceIndex++
416 return
417 }
418
419 this.sequenceIndex = 0
420 this.state = State.InTagName
421 this.stateInTagName(c)
422 }
423
424 /** Look for an end tag. For <title> and <textarea>, also decode entities. */
425 private stateInRCDATA(c: number): void {

Callers 1

parseMethod · 0.95

Calls 2

stateInTagNameMethod · 0.95
isEndOfTagSectionFunction · 0.85

Tested by

no test coverage detected