Home
last modified time | relevance | path

Searched refs:InAmbientContext (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/parser/
H A DTypedParser.cpp249 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 DETSparserEnums.cpp207 ir::TSEnumDeclaration::ConstructorFlags {isConst, isStatic, InAmbientContext()}); in ParseEnumMembers()
H A DETSparserClasses.cpp544 if (InAmbientContext()) { in ParseClassElement()
723 if (InAmbientContext()) { in ParseClassDefinition()
848 if (InAmbientContext()) { in ParseInterfaceField()
877 bool isDeclare = InAmbientContext(); in ParseInterfaceMethod()
H A DexpressionTSParser.cpp212 if ((returnNode->IsObjectPattern() || returnNode->IsArrayPattern()) && !InAmbientContext() && in ParsePatternElement()
526 if (!InAmbientContext() && ((GetContext().Status() & ParserStatus::FUNCTION) != 0)) { in ParseOptionalFunctionParameter()
H A DETSparser.cpp371 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 DTSparser.cpp221 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 DstatementParser.cpp1287 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 DparserImpl.cpp92 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 DparserImpl.h282 bool InAmbientContext();
H A DASparser.cpp151 AllocNode<ir::TSTypeAliasDeclaration>(Allocator(), id, typeParamDecl, typeAnnotation, InAmbientContext()); in ParseTypeAliasDeclaration()
1331 bool isDeclare = InAmbientContext(); in ParseFunctionBody()

Completed in 20 milliseconds