/arkcompiler/ets_runtime/test/moduletest/throwdyn/ |
H A D | throwdyn.js | 22 function throwError() { function 28 throwError()
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | ASparser.h | 32 ir::TypeNode *ParseParenthesizedOrFunctionType(bool throwError); 45 ir::TypeNode *ParseTypeAnnotationTokens(ir::TypeNode *type, bool throwError, TypeAnnotationParsingOptions *options); 46 ir::TypeNode *ParseTypeAnnotationTokensBitwiseOr(ir::TypeNode *type, bool throwError, bool isNullable); 47 ir::TypeNode *ParseTypeAnnotationTokenLeftSquareBracket(ir::TypeNode *type, bool throwError, bool isNullable);
|
H A D | TSparser.h | 51 ir::TypeNode *ParseParenthesizedOrFunctionType(ir::TypeNode *typeAnnotation, bool throwError); 53 ir::TypeNode *ParseFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool throwError, 60 ir::TypeNode *ParseThisType(bool throwError); 69 bool throwError);
|
H A D | ASparser.cpp | 525 ir::TypeNode *ASParser::ParseParenthesizedOrFunctionType(bool throwError) in ParseParenthesizedOrFunctionType() argument 539 if (throwError) { in ParseParenthesizedOrFunctionType() 556 if (throwError && Lexer()->GetToken().Type() != lexer::TokenType::PUNCTUATOR_RIGHT_PARENTHESIS) { in ParseParenthesizedOrFunctionType() 610 ir::TypeNode *ASParser::ParseTypeAnnotationTokens(ir::TypeNode *type, bool throwError, in ParseTypeAnnotationTokens() argument 616 return ParseParenthesizedOrFunctionType(throwError); in ParseTypeAnnotationTokens() 643 if (throwError) { in ParseTypeAnnotationTokens() 659 ir::TypeNode *ASParser::ParseTypeAnnotationTokensBitwiseOr(ir::TypeNode *type, bool throwError, bool isNullable) in ParseTypeAnnotationTokensBitwiseOr() argument 665 if (throwError) { in ParseTypeAnnotationTokensBitwiseOr() 688 ir::TypeNode *ASParser::ParseTypeAnnotationTokenLeftSquareBracket(ir::TypeNode *type, bool throwError, bool isNullable) in ParseTypeAnnotationTokenLeftSquareBracket() argument 694 if (throwError) { in ParseTypeAnnotationTokenLeftSquareBracket() [all...] |
H A D | TSparser.cpp | 434 ir::TypeNode *TSParser::ParseThisType(bool throwError) in ParseThisType() argument 438 if (throwError && ((GetContext().Status() & ParserStatus::ALLOW_THIS_TYPE) == 0)) { in ParseThisType() 914 bool throwError) in ParseThisTypeOrTypePredicate() 924 return ParseThisType(throwError); in ParseThisTypeOrTypePredicate() 1139 ir::TypeNode *TSParser::ParseParenthesizedOrFunctionType(ir::TypeNode *typeAnnotation, bool throwError) in ParseParenthesizedOrFunctionType() argument 1167 return ParseFunctionType(typeStart, isConstructionType, throwError, abstractConstructor); in ParseParenthesizedOrFunctionType() 1179 return ParseFunctionType(typeStart, false, throwError); in ParseParenthesizedOrFunctionType() 1186 return ParseFunctionType(typeStart, false, throwError); in ParseParenthesizedOrFunctionType() 1189 if (throwError && Lexer()->GetToken().Type() != lexer::TokenType::PUNCTUATOR_RIGHT_PARENTHESIS) { in ParseParenthesizedOrFunctionType() 1199 return ParseFunctionType(typeStart, false, throwError); in ParseParenthesizedOrFunctionType() 913 ParseThisTypeOrTypePredicate(ir::TypeNode *typeAnnotation, bool canBeTsTypePredicate, bool throwError) ParseThisTypeOrTypePredicate() argument 1208 ParseFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool throwError, bool abstractConstructor) ParseFunctionType() argument [all...] |
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | destructuringContext.h | 72 virtual Type *NextInferedType([[maybe_unused]] const util::StringView &searchName, bool throwError) = 0; 103 Type *NextInferedType([[maybe_unused]] const util::StringView &searchName, bool throwError) override; 124 Type *NextInferedType([[maybe_unused]] const util::StringView &searchName, bool throwError) override;
|
H A D | destructuringContext.cpp | 232 Type *ArrayDestructuringContext::NextInferedType([[maybe_unused]] const util::StringView &searchName, bool throwError) in NextInferedType() argument 242 if (!returnType && throwError) { in NextInferedType() 277 if (throwError) { in NextInferedType() 622 Type *ObjectDestructuringContext::NextInferedType([[maybe_unused]] const util::StringView &searchName, bool throwError) in NextInferedType() argument 625 checker_->GetPropertyOfType(inferedType_, searchName, !throwError, binder::VariableFlags::INFERED_IN_PATTERN); in NextInferedType() 640 if (throwError) { in NextInferedType()
|
H A D | function.cpp | 720 bool Checker::CallMatchesSignature(const ArenaVector<ir::Expression *> &args, Signature *signature, bool throwError) in CallMatchesSignature() argument 734 if (validateRestArg || !throwError) { in CallMatchesSignature() 737 if (throwError) { in CallMatchesSignature()
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | destructuringContext.h | 83 virtual Type *NextInferredType([[maybe_unused]] const util::StringView &searchName, bool throwError) = 0; 113 Type *NextInferredType([[maybe_unused]] const util::StringView &searchName, bool throwError) override; 130 Type *NextInferredType([[maybe_unused]] const util::StringView &searchName, bool throwError) override;
|
H A D | destructuringContext.cpp | 237 Type *ArrayDestructuringContext::NextInferredType([[maybe_unused]] const util::StringView &searchName, bool throwError) in NextInferredType() argument 247 if (returnType == nullptr && throwError) { in NextInferredType() 282 if (throwError) { in NextInferredType() 627 Type *ObjectDestructuringContext::NextInferredType([[maybe_unused]] const util::StringView &searchName, bool throwError) in NextInferredType() argument 629 varbinder::Variable *prop = checker_->GetPropertyOfType(inferredType_, searchName, !throwError, in NextInferredType() 645 if (throwError) { in NextInferredType()
|
H A D | function.cpp | 701 bool TSChecker::CallMatchesSignature(const ArenaVector<ir::Expression *> &args, Signature *signature, bool throwError) in CallMatchesSignature() argument 715 if (validateRestArg || !throwError) { in CallMatchesSignature() 721 if (throwError) { in CallMatchesSignature()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | parserImpl.h | 255 ir::Expression *ParseTsTypeOperatorOrTypeReference(bool throwError); 259 bool throwError); 260 ir::TSUnionType *ParseTsUnionType(ir::Expression *type, bool restrictExtends, bool throwError); 261 ir::Expression *ParseTsParenthesizedOrFunctionType(ir::Expression *typeAnnotation, bool throwError); 264 ir::Expression *ParseTsFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool throwError, 276 ir::Expression *ParseTsThisType(bool throwError); 277 ir::Expression *ParseTsIndexAccessType(ir::Expression *typeName, bool throwError); 288 bool throwError); 290 bool throwError); 291 ir::Expression *ParseTsTemplateLiteralType(bool throwError); [all...] |
H A D | parserImpl.cpp | 463 bool canBeTsTypePredicate, bool throwError) in ParseTsTypeReferenceOrTsTypePredicate() 473 return ParseTsTypeOperatorOrTypeReference(throwError); in ParseTsTypeReferenceOrTsTypePredicate() 477 bool throwError) in ParseTsThisTypeOrTsTypePredicate() 487 return ParseTsThisType(throwError); in ParseTsThisTypeOrTsTypePredicate() 490 ir::Expression *ParserImpl::ParseTsTemplateLiteralType(bool throwError) in ParseTsTemplateLiteralType() argument 529 if (throwError) { in ParseTsTemplateLiteralType() 748 ir::Expression *ParserImpl::ParseTsThisType(bool throwError) in ParseTsThisType() argument 752 if (throwError && !(context_.Status() & ParserStatus::ALLOW_THIS_TYPE)) { in ParseTsThisType() 840 ir::Expression *ParserImpl::ParseTsTypeOperatorOrTypeReference(bool throwError) in ParseTsTypeOperatorOrTypeReference() argument 842 TypeAnnotationParsingOptions options = throwError in ParseTsTypeOperatorOrTypeReference() 462 ParseTsTypeReferenceOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTsTypePredicate, bool throwError) ParseTsTypeReferenceOrTsTypePredicate() argument 476 ParseTsThisTypeOrTsTypePredicate(ir::Expression *typeAnnotation, bool canBeTsTypePredicate, bool throwError) ParseTsThisTypeOrTsTypePredicate() argument 1077 ParseTsIndexAccessType(ir::Expression *typeName, bool throwError) ParseTsIndexAccessType() argument 1716 ParseTsUnionType(ir::Expression *type, bool restrictExtends, bool throwError) ParseTsUnionType() argument 1762 ParseTsIntersectionType(ir::Expression *type, bool inUnion, bool restrictExtends, bool throwError) ParseTsIntersectionType() argument 1860 ParseTsParenthesizedOrFunctionType(ir::Expression *typeAnnotation, bool throwError) ParseTsParenthesizedOrFunctionType() argument 1918 ParseTsFunctionType(lexer::SourcePosition startLoc, bool isConstructionType, bool throwError, bool abstractConstructor) ParseTsFunctionType() argument 3812 ParseTsTypeParameter(bool throwError, bool addBinding, bool isAllowInOut) ParseTsTypeParameter() argument 3885 ParseTsTypeParameterDeclaration(bool throwError, bool isAllowInOut) ParseTsTypeParameterDeclaration() argument 3944 ParseTsTypeParameterInstantiation(bool throwError) ParseTsTypeParameterInstantiation() argument [all...] |
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | arrayExpression.cpp | 176 bool throwError = false; in GetSpreadElementType() local 194 throwError = true; in GetSpreadElementType() 198 if (!throwError) { in GetSpreadElementType()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
H A D | builtins_number_stub_builder.cpp | 336 Label throwError(env);
in ToString() 341 BRANCH(outOfRange, &throwError, ¬ThrowError);
in ToString() 342 Bind(&throwError);
in ToString()
|
H A D | builtins_string_stub_builder.cpp | 2280 Label throwError(env);
in StringConcat() 2285 BRANCH(Int32GreaterThanOrEqual(newLength, Int32(EcmaString::MAX_STRING_LENGTH)), &throwError, &lessThanMax);
in StringConcat() local 2286 Bind(&throwError);
in StringConcat()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | circuit_builder.cpp | 1156 Label throwError(env_); in ToObject() 1196 Jump(&throwError); in ToObject() 1203 Jump(&throwError); in ToObject() 1210 Jump(&throwError); in ToObject() 1222 Jump(&throwError); in ToObject() 1224 Bind(&throwError); in ToObject()
|
H A D | stub_builder.cpp | 8505 Label throwError(env); in GetIterator() 8518 BRANCH(TaggedIsHeapObject(*result), &isHeapObject, &throwError); in GetIterator() 8520 BRANCH(IsCallable(*result), &objIsCallable, &throwError); in GetIterator() 8535 Bind(&throwError); in GetIterator()
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | TSchecker.h | 365 bool CallMatchesSignature(const ArenaVector<ir::Expression *> &args, Signature *signature, bool throwError);
|
H A D | TSAnalyzer.cpp | 211 bool throwError = false; in GetSpreadElementType() local 229 throwError = true; in GetSpreadElementType() 233 if (!throwError) { in GetSpreadElementType()
|
/arkcompiler/ets_frontend/es2panda/typescript/ |
H A D | checker.h | 435 bool CallMatchesSignature(const ArenaVector<ir::Expression *> &args, Signature *signature, bool throwError);
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
H A D | object.cpp | 959 bool throwError = true; 961 throwError = false; 986 MaybeReportErrorsForOverridingValidation(abstractsToBeImplemented, classType, pos, throwError);
|