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

Method stateInDynamicDirArg

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

Source from the content-addressed store, hash-verified

748 }
749 }
750 private stateInDynamicDirArg(c: number): void {
751 if (c === CharCodes.RightSquare) {
752 this.state = State.InDirArg
753 } else if (c === CharCodes.Eq || isEndOfTagSection(c)) {
754 this.cbs.ondirarg(this.sectionStart, this.index + 1)
755 this.handleAttrNameEnd(c)
756 if (__DEV__ || !__BROWSER__) {
757 this.cbs.onerr(
758 ErrorCodes.X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END,
759 this.index,
760 )
761 }
762 }
763 }
764 private stateInDirModifier(c: number): void {
765 if (c === CharCodes.Eq || isEndOfTagSection(c)) {
766 this.cbs.ondirmodifier(this.sectionStart, this.index)

Callers 1

parseMethod · 0.95

Calls 4

handleAttrNameEndMethod · 0.95
isEndOfTagSectionFunction · 0.85
ondirargMethod · 0.80
onerrMethod · 0.80

Tested by

no test coverage detected