in packages/path/src/tokens.ts [28:48]
expectNext(next) {
if (this.includesContext(destructorContext)) {
return (
next === nameTok ||
next === commaTok ||
next === bracketRTok ||
next === braceRTok ||
next === colonTok
)
}
return (
next === dotTok ||
next === commaTok ||
next === eofTok ||
next === bracketRTok ||
next === parenRTok ||
next === colonTok ||
next === expandTok ||
next === bracketLTok
)
},