Home
last modified time | relevance | path

Searched refs:THROW_ERROR (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.cpp499 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParseTsTemplateLiteralType()
546 … *options & TypeAnnotationParsingOptions::THROW_ERROR); in ParseTsTypeAnnotationElement()
557 …eturn ParseTsIndexAccessType(typeAnnotation, *options & TypeAnnotationParsingOptions::THROW_ERROR); in ParseTsTypeAnnotationElement()
604 … *options & TypeAnnotationParsingOptions::THROW_ERROR); in ParseTsTypeAnnotationElement()
609 *options & TypeAnnotationParsingOptions::THROW_ERROR); in ParseTsTypeAnnotationElement()
625 … *options & TypeAnnotationParsingOptions::THROW_ERROR); in ParseTsTypeAnnotationElement()
628 return ParseTsTemplateLiteralType(*options & TypeAnnotationParsingOptions::THROW_ERROR); in ParseTsTypeAnnotationElement()
635 if (!typeAnnotation && (*options & TypeAnnotationParsingOptions::THROW_ERROR)) { in ParseTsTypeAnnotationElement()
654 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParseTsImportType()
735 TypeAnnotationParsingOptions::THROW_ERROR | TypeAnnotationParsingOptions::RESTRICT_EXTENDS; in ParseTsConditionalType()
[all …]
DexpressionParser.cpp134 TypeAnnotationParsingOptions::THROW_ERROR | TypeAnnotationParsingOptions::ALLOW_CONST; in ParseTsAsExpression()
508 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParseTsGenericArrowFunction()
530 TypeAnnotationParsingOptions::THROW_ERROR | TypeAnnotationParsingOptions::ALLOW_CONST; in ParseTsTypeAssertion()
550 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParseCoverParenthesizedExpressionAndArrowParameterList()
627 options &= ~TypeAnnotationParsingOptions::THROW_ERROR; in ParseCoverParenthesizedExpressionAndArrowParameterList()
1475 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParsePotentialArrowExpression()
1775 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParsePotentialTsFunctionParameter()
DparserImpl.h164 THROW_ERROR = 1 << 4, enumerator
DstatementParser.cpp720 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParseTsTypeAliasDeclaration()
1818 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParseCatchParam()
2019 TypeAnnotationParsingOptions options = TypeAnnotationParsingOptions::THROW_ERROR; in ParseVariableDeclarator()
/arkcompiler/ets_runtime/ecmascript/
Decma_macros.h294 #define THROW_ERROR(thread, type, message) \ macro
360 THROW_ERROR(thread, ErrorType::TYPE_ERROR, message)
364 THROW_ERROR(thread, ErrorType::OOM_ERROR, message)
Djs_relative_time_format.cpp493 THROW_ERROR(thread, ErrorType::RANGE_ERROR, "rtf is not initialized"); in ResolvedOptions()
526 THROW_ERROR(thread, ErrorType::RANGE_ERROR, "numeric is exception"); in ResolvedOptions()
Djs_number_format.cpp483 THROW_ERROR(thread, ErrorType::RANGE_ERROR, "invalid numberingSystem"); in InitializeNumberFormat()
487 THROW_ERROR(thread, ErrorType::RANGE_ERROR, "invalid numberingSystem"); in InitializeNumberFormat()
/arkcompiler/ets_runtime/ecmascript/require/
Djs_cjs_module.cpp172 THROW_ERROR(thread, ErrorType::REFERENCE_ERROR, msg.c_str()); in RequireExecution()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.cpp437 THROW_ERROR(thread, ErrorType::SYNTAX_ERROR, msg.c_str()); in InitializeEnvironment()
682 THROW_ERROR(thread, ErrorType::SYNTAX_ERROR, msg.c_str()); in ModuleDeclarationEnvironmentSetup()
762 THROW_ERROR(thread, ErrorType::SYNTAX_ERROR, msg.c_str()); in ModuleDeclarationArrayEnvironmentSetup()
1092 THROW_ERROR(thread, ErrorType::REFERENCE_ERROR, msg.c_str()); in ModuleExecution()
1505 THROW_ERROR(thread, ErrorType::SYNTAX_ERROR, msg.c_str()); in CheckResolvedBinding()
1543 THROW_ERROR(thread, ErrorType::SYNTAX_ERROR, msg.c_str()); in CheckResolvedIndexBinding()
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_vector.cpp48 THROW_ERROR(thread, ErrorType::RANGE_ERROR, "the index is out-of-bounds"); in Insert()
81 THROW_ERROR(thread, ErrorType::RANGE_ERROR, "An incorrect size was set"); in IncreaseCapacityTo()