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

Method stateInDirName

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

Source from the content-addressed store, hash-verified

722 }
723 }
724 private stateInDirName(c: number): void {
725 if (c === CharCodes.Eq || isEndOfTagSection(c)) {
726 this.cbs.ondirname(this.sectionStart, this.index)
727 this.handleAttrNameEnd(c)
728 } else if (c === CharCodes.Colon) {
729 this.cbs.ondirname(this.sectionStart, this.index)
730 this.state = State.InDirArg
731 this.sectionStart = this.index + 1
732 } else if (c === CharCodes.Dot) {
733 this.cbs.ondirname(this.sectionStart, this.index)
734 this.state = State.InDirModifier
735 this.sectionStart = this.index + 1
736 }
737 }
738 private stateInDirArg(c: number): void {
739 if (c === CharCodes.Eq || isEndOfTagSection(c)) {
740 this.cbs.ondirarg(this.sectionStart, this.index)

Callers 1

parseMethod · 0.95

Calls 3

handleAttrNameEndMethod · 0.95
isEndOfTagSectionFunction · 0.85
ondirnameMethod · 0.80

Tested by

no test coverage detected