Searched refs:InAmbientContext (Results 1 - 10 of 10) sorted by relevance
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | TypedParser.cpp | 249 if (!InAmbientContext()) { in ParseAmbientExternalModuleDeclaration() 270 Allocator(), name, body, ir::TSModuleDeclaration::ConstructorFlags {InAmbientContext(), isGlobal, true}); in ParseAmbientExternalModuleDeclaration() 298 Allocator(), identNode, body, ir::TSModuleDeclaration::ConstructorFlags {InAmbientContext(), false, false}); in ParseModuleOrNamespaceDeclaration() 329 if (InAmbientContext()) { in CheckDeclare() 857 if (InAmbientContext()) { in ParseClassImplementClause() 926 if (InAmbientContext()) { in ParseClassDefinition() 1349 !InAmbientContext()) { in ParseVariableDeclarator() 1430 if (!InAmbientContext() && ((GetContext().Status() & ParserStatus::FUNCTION) != 0) && arrayPattern->IsOptional()) { in ValidateArrowParameterArray() 1445 if (!InAmbientContext() && ((GetContext().Status() & ParserStatus::FUNCTION) != 0) && objectPattern->IsOptional()) { in ValidateArrowParameterObject()
|
H A D | ETSparserEnums.cpp | 207 ir::TSEnumDeclaration::ConstructorFlags {isConst, isStatic, InAmbientContext()}); in ParseEnumMembers()
|
H A D | ETSparserClasses.cpp | 544 if (InAmbientContext()) { in ParseClassElement() 723 if (InAmbientContext()) { in ParseClassDefinition() 848 if (InAmbientContext()) { in ParseInterfaceField() 877 bool isDeclare = InAmbientContext(); in ParseInterfaceMethod()
|
H A D | expressionTSParser.cpp | 212 if ((returnNode->IsObjectPattern() || returnNode->IsArrayPattern()) && !InAmbientContext() && in ParsePatternElement() 526 if (!InAmbientContext() && ((GetContext().Status() & ParserStatus::FUNCTION) != 0)) { in ParseOptionalFunctionParameter()
|
H A D | ETSparser.cpp | 371 bool isDeclare = InAmbientContext(); in ParseFunction() 516 if (InAmbientContext()) { in ParseInnerRest() 602 if (!InAmbientContext()) { in ParseTypeDeclaration() 1522 static_cast<uint32_t>(flags & VariableParsingFlags::ACCEPT_CONST_NO_INIT) == 0U && !InAmbientContext()) { in ParseVariableDeclarator() 1828 if (InAmbientContext()) { in CheckDeclare()
|
H A D | TSparser.cpp | 221 AllocNode<ir::TSTypeAliasDeclaration>(Allocator(), id, typeParamDecl, typeAnnotation, InAmbientContext()); in ParseTypeAliasDeclaration() 1893 if (InAmbientContext() && (desc->newStatus & ParserStatus::ASYNC_FUNCTION) != 0) { in ParseClassMethod() 1897 if (InAmbientContext() && desc->isGenerator) { in ParseClassMethod() 2076 bool isDeclare = InAmbientContext(); in ParseFunctionBody()
|
H A D | statementParser.cpp | 1287 if (InAmbientContext()) { in ValidateDeclaratorId() 1303 if (InAmbientContext() && (flags & VariableParsingFlags::CONST) == 0) { in ParseVariableDeclaratorInitializer() 1432 AllocNode<ir::VariableDeclaration>(varKind, Allocator(), std::move(declarators), InAmbientContext()); in ParseVariableDeclaration()
|
H A D | parserImpl.cpp | 92 bool ParserImpl::InAmbientContext() in InAmbientContext() function in ark::es2panda::parser::ParserImpl 491 if (InAmbientContext() || (desc->modifiers & ir::ModifierFlags::DECLARE) != 0) { in ParseClassProperty() 934 bool isDeclare = InAmbientContext(); in ParseFunction()
|
H A D | parserImpl.h | 282 bool InAmbientContext();
|
H A D | ASparser.cpp | 151 AllocNode<ir::TSTypeAliasDeclaration>(Allocator(), id, typeParamDecl, typeAnnotation, InAmbientContext()); in ParseTypeAliasDeclaration() 1331 bool isDeclare = InAmbientContext(); in ParseFunctionBody()
|
Completed in 20 milliseconds