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

Method stateInterpolationClose

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

Source from the content-addressed store, hash-verified

381 }
382
383 private stateInterpolationClose(c: number) {
384 if (c === this.delimiterClose[this.delimiterIndex]) {
385 if (this.delimiterIndex === this.delimiterClose.length - 1) {
386 this.cbs.oninterpolation(this.sectionStart, this.index + 1)
387 if (this.inRCDATA) {
388 this.state = State.InRCDATA
389 } else {
390 this.state = State.Text
391 }
392 this.sectionStart = this.index + 1
393 } else {
394 this.delimiterIndex++
395 }
396 } else {
397 this.state = State.Interpolation
398 this.stateInterpolation(c)
399 }
400 }
401
402 public currentSequence: Uint8Array = undefined!
403 private sequenceIndex = 0

Callers 2

stateInterpolationMethod · 0.95
parseMethod · 0.95

Calls 2

stateInterpolationMethod · 0.95
oninterpolationMethod · 0.80

Tested by

no test coverage detected