Lines Matching refs:raise
808 if (end === -1) this.raise(this.state.pos - 2, "Unterminated comment");
1147 this.raise(this.state.pos, "Unexpected character '" + codePointToString(code) + "'");
1161 if (this.state.pos >= this.input.length) this.raise(start, "Unterminated regular expression");
1164 this.raise(start, "Unterminated regular expression");
1187 if (!validFlags.test(mods)) this.raise(start, "Invalid regular expression flag");
1227 if (val == null) this.raise(this.state.start + 2, "Expected number in radix " + radix);
1228 …if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.state.pos, "Identifier directly a…
1239 if (!startsWithDot && this.readInt(10) === null) this.raise(start, "Invalid number");
1255 if (this.readInt(10) === null) this.raise(start, "Invalid number");
1259 …if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.state.pos, "Identifier directly a…
1268 this.raise(start, "Invalid number");
1292 this.raise(codePos, "Code point out of bounds");
1308 …if (this.state.pos >= this.input.length) this.raise(this.state.start, "Unterminated string constan…
1317 if (isNewLine(ch)) this.raise(this.state.start, "Unterminated string constant");
1332 … if (this.state.pos >= this.input.length) this.raise(this.state.start, "Unterminated template");
1432 this.raise(codePos, "Octal literal in strict mode");
1454 this.raise(codePos, "Bad character escape sequence");
1487 this.raise(this.state.pos, "Expecting Unicode escape sequence \\uXXXX");
1493 this.raise(escStart, "Invalid Unicode escape");
1761 this.raise(pos != null ? pos : this.state.start, messageOrType);
1877 this.raise(this.state.start, "'import' and 'export' may only appear at the top level");
1881 …this.raise(this.state.start, "'import' and 'export' may appear only with 'sourceType: \"module\"'"…
1933 this.raise(this.state.start, "Leading decorators must be attached to a class declaration");
1970 if (i === this.state.labels.length) this.raise(node.start, "Unsyntactic " + keyword);
2066 this.raise(this.state.start, "'return' outside of function");
2107 if (sawDefault) this.raise(this.state.lastTokStart, "Multiple default clauses");
2128 …if (lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start))) this.raise(this.sta…
2161 this.raise(node.start, "Missing catch or finally clause");
2184 if (this.state.strict) this.raise(this.state.start, "'with' in strict mode");
2212 this.raise(expr.start, "Label '" + maybeName + "' is already declared");
2279 this.raise(octalPosition, "Octal literal in strict mode");
2344 this.raise(this.state.lastTokEnd, "Complex binding patterns require an initialization value");
2441 this.raise(this.state.lastTokEnd, "Decorators must not be followed by a semicolon");
2485 this.raise(method.key.start, "Constructor can't be a generator");
2488 this.raise(method.key.start, "Classes may not have static property named prototype");
2495 this.raise(method.key.start, "Classes may not have static property named prototype");
2501 this.raise(_key.start, "Duplicate constructor in the same class");
2503 this.raise(method.start, "You can't attach decorators to a class constructor");
2514 … this.raise(method.key.start, "Classes may not have a non-static field named 'constructor'");
2523 this.raise(method.key.start, "Constructor can't be an async function");
2532 this.raise(method.key.start, "Constructor can't have get/set modifier");
2539 this.raise(method.start, "Duplicate constructor call in the same class");
2541 this.raise(method.start, "You can't attach decorators to a class constructor");
2550 … this.raise(method.key.start, "Classes may not have a non-static field named 'constructor'");
2560 this.raise(this.state.start, "You have trailing decorators with no method");
2759 this.raise(node.start, "You can only use decorators on an export when exporting a class");
2819 …this.raise(node.start, name === "default" ? "Only one default export allowed per module." : "`" + …
2968 this.raise(prop.key.start, "Object pattern can't contain getter or setter");
2970 this.raise(prop.key.start, "Object pattern can't contain methods");
2998 this.raise(node.left.end, "Only '=' operator can be used for specifying default value.");
3008 this.raise(node.start, message);
3168 this.raise(expr.start, "Argument name clash in strict mode");
3176 …if (isBinding) this.raise(expr.start, (isBinding ? "Binding" : "Assigning to") + " member expressi…
3233 this.raise(expr.start, message);
3273 if (propHash.proto) this.raise(key.start, "Redefinition of __proto__ property");
3362 …this.raise(left.start, "You're trying to assign to a parenthesized expression, eg. instead of " + …
3427 …this.raise(left.argument.start, "Illegal expression. Wrap left hand side or entire exponentiation …
3466 this.raise(node.start, "Deleting local variable in strict mode");
3535 this.raise(_node4.start, "import() requires exactly one argument");
3613 this.raise(this.state.start, "'super' outside of function or class");
3622 this.raise(node.start, "super() outside of class constructor");
3746 this.raise(callee.start, "Binding should be performed on object property.");
3769 …this.raise(node.property.start, "The only valid meta property for new is " + meta.name + "." + pro…
3907 this.raise(metaProp.property.start, "new.target can only be used in functions");
3931 this.raise(this.state.invalidTemplateEscapePosition, "Invalid escape sequence in template");
4063 this.raise(this.state.start, "You have trailing decorators with no property");
4085 this.raise(start, "getter should have no params");
4087 this.raise(start, "setter should have exactly one param");
4249 this.raise(node.id.start, "Binding yield in strict mode");
4274 this.raise(param.start, "Non-simple parameter in strict mode");
4336 this.raise(node.start, "invalid use of await inside of an async function");
4347 this.raise(startLoc, word + " is a reserved word");
4351 this.raise(startLoc, word + " is a reserved word in strict mode");
4363 …this.raise(node.start, "await* has been removed from the async functions proposal. Use Promise.all…
4451 pp$5.raise = function (pos, message) { function
4720 this.raise(start, "getter should have no params");
4722 this.raise(start, "setter should have exactly one param");
4757 if (propHash.proto) this.raise(key.start, "Redefinition of __proto__ property");
4961 this.raise(prop.key.start, "Object pattern can't contain getter or setter");
4963 this.raise(prop.key.start, "Object pattern can't contain methods");
5002 this.raise(moduloPos, "Spaces between ´%´ and ´checks´ are not allowed here.");
5235 this.raise(this.state.start, "Cannot overwrite primitive type " + this.state.value);
6112 this.raise(expr.start, "Unexpected type cast");
6284 …this.raise(node.typeAnnotation.start, "Type annotations must come before default assignments, e.g.…
6360 …this.raise(firstIdentLoc, "`The `type` and `typeof` keywords on named imports can only be used on …
6470 …this.raise(typeParameters.start, "Expected an arrow function after this type parameter declaration…
6875 this.raise(this.state.start, "Unterminated JSX contents");
6934 this.raise(this.state.start, "Unterminated string constant");
7073 this.raise(node.start, "JSX attributes must only be assigned a non-empty expression");
7085 this.raise(this.state.start, "JSX value should be either an expression or a quoted JSX text");
7205 …this.raise(closingElement.start, "Expected corresponding JSX closing tag for <" + getQualifiedJSXN…
7213 this.raise(this.state.start, "Adjacent JSX elements must be wrapped in an enclosing tag");