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

Method stateText

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

Source from the content-addressed store, hash-verified

332 }
333
334 private stateText(c: number): void {
335 if (c === CharCodes.Lt) {
336 if (this.index > this.sectionStart) {
337 this.cbs.ontext(this.sectionStart, this.index)
338 }
339 this.state = State.BeforeTagName
340 this.sectionStart = this.index
341 } else if (!__BROWSER__ && c === CharCodes.Amp) {
342 this.startEntity()
343 } else if (!this.inVPre && c === this.delimiterOpen[0]) {
344 this.state = State.InterpolationOpen
345 this.delimiterIndex = 0
346 this.stateInterpolationOpen(c)
347 }
348 }
349
350 public delimiterOpen: Uint8Array = defaultDelimitersOpen
351 public delimiterClose: Uint8Array = defaultDelimitersClose

Callers 3

stateBeforeTagNameMethod · 0.95
parseMethod · 0.95

Calls 3

startEntityMethod · 0.95
ontextMethod · 0.80

Tested by

no test coverage detected