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

Method handleInAttrValue

packages/compiler-core/src/tokenizer.ts:805–817  ·  view source on GitHub ↗
(c: number, quote: number)

Source from the content-addressed store, hash-verified

803 }
804 }
805 private handleInAttrValue(c: number, quote: number) {
806 if (c === quote || (__BROWSER__ && this.fastForwardTo(quote))) {
807 this.cbs.onattribdata(this.sectionStart, this.index)
808 this.sectionStart = -1
809 this.cbs.onattribend(
810 quote === CharCodes.DoubleQuote ? QuoteType.Double : QuoteType.Single,
811 this.index + 1,
812 )
813 this.state = State.BeforeAttrName
814 } else if (!__BROWSER__ && c === CharCodes.Amp) {
815 this.startEntity()
816 }
817 }
818 private stateInAttrValueDoubleQuotes(c: number): void {
819 this.handleInAttrValue(c, CharCodes.DoubleQuote)
820 }

Calls 4

fastForwardToMethod · 0.95
startEntityMethod · 0.95
onattribdataMethod · 0.80
onattribendMethod · 0.80

Tested by

no test coverage detected