Home
last modified time | relevance | path

Searched refs:ThrowSyntaxError (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_frontend/es2panda/parser/
DstatementParser.cpp125 ThrowSyntaxError("A 'declare' modifier cannot be used in an already ambient context."); in CheckDeclare()
211 ThrowSyntaxError("'declare' modifier already seen."); in ParseStatement()
345 ThrowSyntaxError("Only ambient modules can use quoted names"); in ParseTsAmbientExternalModuleDeclaration()
364 ThrowSyntaxError("';' expected"); in ParseTsAmbientExternalModuleDeclaration()
378 ThrowSyntaxError("Identifier expected"); in ParseTsModuleOrNamespaceDelaration()
457 ThrowSyntaxError("Unexpected token"); in ParseTsImportEqualsDeclaration()
465 ThrowSyntaxError("'=' expected"); in ParseTsImportEqualsDeclaration()
470 ThrowSyntaxError("identifier expected"); in ParseTsImportEqualsDeclaration()
499 ThrowSyntaxError("namespace export declaration is only supported in TypeScript '.d.ts'"); in ParseTsNamespaceExportDeclaration()
504 ThrowSyntaxError("'namespace' expected"); in ParseTsNamespaceExportDeclaration()
[all …]
DexpressionParser.cpp87 ThrowSyntaxError("Unexpected identifier"); in ParseYieldExpression()
231 ThrowSyntaxError("Rest element must be last element", startLoc); in ParseArrayExpression()
245 ThrowSyntaxError("Unexpected token, expected ',' or ']'"); in ParseArrayExpression()
267ThrowSyntaxError("Invalid left-hand side in array destructuring pattern", arrayExpressionNode->Sta… in ParseArrayExpression()
271 ThrowSyntaxError(info.msg.Utf8(), info.pos); in ParseArrayExpression()
284 ThrowSyntaxError("Invalid rest element."); in ValidateArrowParameter()
297 ThrowSyntaxError("Binding 'arguments' in strict mode is invalid"); in ValidateArrowParameter()
299 ThrowSyntaxError("Binding 'eval' in strict mode is invalid"); in ValidateArrowParameter()
309 ThrowSyntaxError("Invalid destructuring assignment target"); in ValidateArrowParameter()
319 ThrowSyntaxError("Invalid destructuring assignment target"); in ValidateArrowParameter()
[all …]
DparserImpl.cpp178 ThrowSyntaxError( in ParseProgram()
234 ThrowSyntaxError("Statements are not allowed in ambient contexts."); in CheckTopStatementsForRequiredDeclare()
505 ThrowSyntaxError("Unexpected token, expected '}'."); in ParseTsTemplateLiteralType()
636 ThrowSyntaxError("Type expected"); in ParseTsTypeAnnotationElement()
649 ThrowSyntaxError("'(' expected"); in ParseTsImportType()
658 ThrowSyntaxError("String literal expected"); in ParseTsImportType()
662 ThrowSyntaxError("')' expected"); in ParseTsImportType()
672 ThrowSyntaxError("Identifier expected"); in ParseTsImportType()
707 ThrowSyntaxError( in ParseTsThisType()
724 ThrowSyntaxError("'?' expected."); in ParseTsConditionalType()
[all …]
DparserImpl.h205 [[noreturn]] void ThrowSyntaxError(std::string_view errorMessage) const;
206 [[noreturn]] void ThrowSyntaxError(std::initializer_list<std::string_view> list) const;
207 [[noreturn]] void ThrowSyntaxError(std::initializer_list<std::string_view> list,
210 …[[noreturn]] void ThrowSyntaxError(std::string_view errorMessage, const lexer::SourcePosition &pos…
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.h186 static JSTaggedValue ThrowSyntaxError(JSThread *thread, const char *message);
Dslow_runtime_stub.cpp947 JSTaggedValue SlowRuntimeStub::ThrowSyntaxError(JSThread *thread, const char *message) in ThrowSyntaxError() function in panda::ecmascript::SlowRuntimeStub
949 INTERPRETER_TRACE(thread, ThrowSyntaxError); in ThrowSyntaxError()
/arkcompiler/ets_runtime/ecmascript/
Druntime_call_id.h192 V(ThrowSyntaxError) \