Lines Matching refs:unexpected
1014 if (this.inModule) this.unexpected();
1704 this.unexpected(null, types.relational);
1723 if (!this.eatContextual(name)) this.unexpected(null, message);
1742 if (!this.isLineTerminator()) this.unexpected(null, types.semi);
1749 return this.eat(type) || this.unexpected(pos, type);
1755 pp.unexpected = function (pos) { function
1838 if (!declaration) this.unexpected();
1842 if (!declaration) this.unexpected();
1858 if (!declaration) this.unexpected(); // NOTE: falls through to _var
1939 this.unexpected();
1954 this.unexpected();
2012 this.unexpected();
2030 this.unexpected();
2043 this.unexpected(refShorthandDefaultPos.start);
2046 this.unexpected();
2116 this.unexpected();
2342 this.unexpected();
2370 this.unexpected();
2378 this.unexpected();
2554 this.unexpected();
2571 if (!this.hasPlugin("classProperties")) this.unexpected();
2594 this.unexpected();
2690 node.source = this.match(types.string) ? this.parseExprAtom() : this.unexpected();
2694 this.unexpected();
2851 this.unexpected();
2870 node.source = this.match(types.string) ? this.parseExprAtom() : this.unexpected();
2905 …this.unexpected(null, "ES2015 named imports do not destructure. Use another statement for destruct…
3028 this.unexpected(arg.start);
3075 if (this.state.strict || this.state.inGenerator) this.unexpected();
3090 this.unexpected();
3283 this.unexpected();
3370 this.unexpected(refShorthandDefaultPos.start);
3460 this.unexpected(refShorthandDefaultPos.start);
3578 this.unexpected();
3619 this.unexpected();
3627 if (!this.hasPlugin("dynamicImport")) this.unexpected();
3632 this.unexpected(null, types.parenL);
3642 if (this.state.inGenerator) this.unexpected();
3750 this.unexpected();
3852 if (param.extra && param.extra.parenthesized) this.unexpected(param.extra.parenStart);
3859 this.unexpected(this.state.lastTokStart);
3861 if (optionalCommaStart) this.unexpected(optionalCommaStart);
3862 if (spreadStart) this.unexpected(spreadStart);
3863 if (refShorthandDefaultPos.start) this.unexpected(refShorthandDefaultPos.start);
3864 if (refNeedsArrowPos.start) this.unexpected(refNeedsArrowPos.start);
4004 … this.unexpected(firstRestLocation, "Cannot have multiple rest elements when destructuring");
4033 if (isGenerator) this.unexpected();
4059 …this.unexpected(firstRestLocation, "The rest element has to be the last element when destructuring…
4094 if (isPattern) this.unexpected();
4103 if (isGenerator || isAsync) this.unexpected();
4142 if (!node) this.unexpected();
4332 this.unexpected();
4360 this.unexpected();
5097 this.unexpected();
5111 throw this.unexpected();
5139 …this.unexpected(null, "Imports within a `declare module` body must always be `import type` or `imp…
5316 this.unexpected();
5464 this.unexpected(variancePos);
5470 this.unexpected(null, "Spread operator cannot appear in class or interface definitions");
5473 this.unexpected(variance.start, "Spread properties cannot have variance");
5484 this.unexpected(variance.start);
5516 this.unexpected();
5743 if (!this.match(types.num)) this.unexpected(null, "Unexpected token, expected number");
5748 this.unexpected();
5772 this.unexpected();
6185 this.unexpected(method.variancePos);
6240 this.unexpected(prop.variancePos);
6250 if (!this.match(types.parenL)) this.unexpected();
6489 if (this.canInsertSemicolon()) this.unexpected();
6490 if (!this.match(types.arrow)) this.unexpected();
7029 this.unexpected();
7200 this.unexpected();