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

Method stateAfterAttrName

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

Source from the content-addressed store, hash-verified

777 this.stateAfterAttrName(c)
778 }
779 private stateAfterAttrName(c: number): void {
780 if (c === CharCodes.Eq) {
781 this.state = State.BeforeAttrValue
782 } else if (c === CharCodes.Slash || c === CharCodes.Gt) {
783 this.cbs.onattribend(QuoteType.NoValue, this.sectionStart)
784 this.sectionStart = -1
785 this.state = State.BeforeAttrName
786 this.stateBeforeAttrName(c)
787 } else if (!isWhitespace(c)) {
788 this.cbs.onattribend(QuoteType.NoValue, this.sectionStart)
789 this.handleAttrStart(c)
790 }
791 }
792 private stateBeforeAttrValue(c: number): void {
793 if (c === CharCodes.DoubleQuote) {
794 this.state = State.InAttrValueDq

Callers 2

handleAttrNameEndMethod · 0.95
parseMethod · 0.95

Calls 4

stateBeforeAttrNameMethod · 0.95
handleAttrStartMethod · 0.95
isWhitespaceFunction · 0.85
onattribendMethod · 0.80

Tested by

no test coverage detected