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

Method stateInterpolationOpen

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

Source from the content-addressed store, hash-verified

352 private delimiterIndex = -1
353
354 private stateInterpolationOpen(c: number): void {
355 if (c === this.delimiterOpen[this.delimiterIndex]) {
356 if (this.delimiterIndex === this.delimiterOpen.length - 1) {
357 const start = this.index + 1 - this.delimiterOpen.length
358 if (start > this.sectionStart) {
359 this.cbs.ontext(this.sectionStart, start)
360 }
361 this.state = State.Interpolation
362 this.sectionStart = start
363 } else {
364 this.delimiterIndex++
365 }
366 } else if (this.inRCDATA) {
367 this.state = State.InRCDATA
368 this.stateInRCDATA(c)
369 } else {
370 this.state = State.Text
371 this.stateText(c)
372 }
373 }
374
375 private stateInterpolation(c: number): void {
376 if (c === this.delimiterClose[0]) {

Callers 3

stateTextMethod · 0.95
stateInRCDATAMethod · 0.95
parseMethod · 0.95

Calls 3

stateInRCDATAMethod · 0.95
stateTextMethod · 0.95
ontextMethod · 0.80

Tested by

no test coverage detected