Home
last modified time | relevance | path

Searched refs:ScriptFunctionFlags (Results 1 – 25 of 50) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/ir/base/
DscriptFunction.h44 ir::ScriptFunctionFlags funcFlags = ir::ScriptFunctionFlags::NONE;
151 return (funcFlags_ & ir::ScriptFunctionFlags::ENTRY_POINT) != 0; in IsEntryPoint()
156 return (funcFlags_ & ir::ScriptFunctionFlags::GENERATOR) != 0; in IsGenerator()
161 return (funcFlags_ & ir::ScriptFunctionFlags::ASYNC) != 0; in IsAsyncFunc()
166 return (funcFlags_ & ir::ScriptFunctionFlags::ASYNC_IMPL) != 0; in IsAsyncImplFunc()
171 return (funcFlags_ & ir::ScriptFunctionFlags::ARROW) != 0; in IsArrow()
176 return (funcFlags_ & ir::ScriptFunctionFlags::OVERLOAD) != 0; in IsOverload()
181 return (funcFlags_ & ir::ScriptFunctionFlags::EXTERNAL_OVERLOAD) != 0; in IsExternalOverload()
186 return (funcFlags_ & ir::ScriptFunctionFlags::CONSTRUCTOR) != 0; in IsConstructor()
191 return (funcFlags_ & ir::ScriptFunctionFlags::GETTER) != 0; in IsGetter()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/base/
DscriptFunction.h44 ir::ScriptFunctionFlags flags, bool declare, bool isTsFunction) in ScriptFunction()
130 return (flags_ & ir::ScriptFunctionFlags::GENERATOR) != 0; in IsGenerator()
135 return (flags_ & ir::ScriptFunctionFlags::ASYNC) != 0; in IsAsync()
140 return (flags_ & ir::ScriptFunctionFlags::ARROW) != 0; in IsArrow()
145 return (flags_ & ir::ScriptFunctionFlags::OVERLOAD) != 0; in IsOverload()
150 return (flags_ & ir::ScriptFunctionFlags::CONSTRUCTOR) != 0 || in IsConstructor()
151 (flags_ & ir::ScriptFunctionFlags::GENERATED_CONSTRUCTOR) != 0; in IsConstructor()
156 return (flags_ & ir::ScriptFunctionFlags::STATIC_INITIALIZER) != 0; in IsStaticInitializer()
161 return (flags_ & ir::ScriptFunctionFlags::INSTANCE_INITIALIZER) != 0; in IsInstanceInitializer()
166 …return (flags_ & ir::ScriptFunctionFlags::METHOD) != 0 || IsInstanceInitializer() || IsStaticIniti… in IsMethod()
[all …]
/arkcompiler/ets_frontend/ets2panda/parser/
DparserStatusContext.h121 flags_ |= ir::ScriptFunctionFlags::GENERATOR; in FunctionContext()
125 flags_ |= ir::ScriptFunctionFlags::ASYNC; in FunctionContext()
129 flags_ |= ir::ScriptFunctionFlags::CONSTRUCTOR; in FunctionContext()
133 ir::ScriptFunctionFlags Flags() const in Flags()
140 return (flags_ & ir::ScriptFunctionFlags::ASYNC) != 0; in IsAsync()
143 void AddFlag(ir::ScriptFunctionFlags flags) in AddFlag()
153 ir::ScriptFunctionFlags flags_ {ir::ScriptFunctionFlags::NONE};
162 AddFlag(ir::ScriptFunctionFlags::ASYNC); in ArrowFunctionContext()
165 AddFlag(ir::ScriptFunctionFlags::ARROW); in ArrowFunctionContext()
DETSparserClasses.cpp474 func->AddFlag(ir::ScriptFunctionFlags::INSTANCE_EXTENSION_METHOD); in ParseClassMethodDefinition()
506 func->AddFlag(ir::ScriptFunctionFlags::METHOD); in ParseClassMethod()
647 method->Function()->AddFlag(ir::ScriptFunctionFlags::GETTER); in ParseClassGetterSetterMethod()
649 method->Function()->AddFlag(ir::ScriptFunctionFlags::SETTER); in ParseClassGetterSetterMethod()
666 method->Function()->AddFlag(ir::ScriptFunctionFlags::GETTER); in ParseInterfaceGetterSetterMethod()
669 method->Function()->AddFlag(ir::ScriptFunctionFlags::SETTER); in ParseInterfaceGetterSetterMethod()
923 functionContext.AddFlag(ir::ScriptFunctionFlags::HAS_RETURN); in ParseInterfaceMethod()
939 func->AddFlag(ir::ScriptFunctionFlags::METHOD); in ParseInterfaceMethod()
1091 methodDef->Function()->AddFlag(ir::ScriptFunctionFlags::EXTERNAL); in CreateImplicitConstructor()
DforwardDeclForParserImpl.h93 using FunctionSignature = std::tuple<ir::FunctionSignature, ark::es2panda::ir::ScriptFunctionFlags>;
DETSparser.cpp327 functionContext.AddFlag(ir::ScriptFunctionFlags::ASYNC); in ParseFunction()
335 functionContext.AddFlag(ir::ScriptFunctionFlags::ARROW); in ParseFunction()
347 functionContext.AddFlag(ir::ScriptFunctionFlags::EXPRESSION); in ParseFunction()
351 functionContext.AddFlag(ir::ScriptFunctionFlags::HAS_RETURN); in ParseFunction()
355 functionContext.AddFlag(ir::ScriptFunctionFlags::HAS_THROW); in ParseFunction()
368 ir::ScriptFunctionFlags funcFlags = in ParseFunction()
369 …isDeclare ? (functionContext.Flags() | ir::ScriptFunctionFlags::EXTERNAL) : functionContext.Flags(… in ParseFunction()
394 ir::ScriptFunctionFlags ETSParser::ParseFunctionThrowMarker(bool isRethrowsAllowed) in ParseFunctionThrowMarker()
396 ir::ScriptFunctionFlags throwMarker = ir::ScriptFunctionFlags::NONE; in ParseFunctionThrowMarker()
401 throwMarker = ir::ScriptFunctionFlags::THROWS; in ParseFunctionThrowMarker()
[all …]
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
DetsFunctionTypeBuilder.h35 ETSFunctionTypeBuilder &SetFuncFlags(ir::ScriptFunctionFlags funcFlags) in SetFuncFlags()
49 ir::ScriptFunctionFlags funcFlags_ = ir::ScriptFunctionFlags::NONE;
DscriptFunctionBuilder.h38 … ir::ScriptFunctionFlags::METHOD, in Build()
/arkcompiler/ets_frontend/ets2panda/ir/ets/
DetsFunctionType.h31 explicit ETSFunctionType(FunctionSignature &&signature, ir::ScriptFunctionFlags funcFlags) in ETSFunctionType()
101 ir::ScriptFunctionFlags Flags() in Flags()
108 return (funcFlags_ & ir::ScriptFunctionFlags::THROWS) != 0; in IsThrowing()
113 return (funcFlags_ & ir::ScriptFunctionFlags::RETHROWS) != 0; in IsRethrowing()
143 ir::ScriptFunctionFlags funcFlags_;
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/
DmethodBuilder.cpp165 auto scriptFuncFlags = ir::ScriptFunctionFlags::EXPRESSION | in CreateIrConstructor()
166 … (IS_STATIC ? ir::ScriptFunctionFlags::STATIC_BLOCK : ir::ScriptFunctionFlags::CONSTRUCTOR); in CreateIrConstructor()
186 auto *funcExpr = CreateFunctionExpression(id, body, ir::ScriptFunctionFlags::METHOD); in CreateIrMethod()
195 … ir::ScriptFunctionFlags scriptFuncFlags) in CreateFunctionExpression()
DmethodBuilder.h82 ir::ScriptFunctionFlags scriptFuncFlags);
/arkcompiler/ets_frontend/ets2panda/ir/
DastNodeFlags.h81 enum class ScriptFunctionFlags : uint32_t { enum
149 struct IsAllowedType<ark::es2panda::ir::ScriptFunctionFlags> : std::true_type {
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DinterfaceObjectLiteralLowering.cpp137 ir::ScriptFunctionFlags funcFlags = ir::ScriptFunctionFlags::METHOD; in CreateAnonClassFieldGetterSetter()
138 funcFlags |= isSetter ? ir::ScriptFunctionFlags::SETTER : ir::ScriptFunctionFlags::GETTER; in CreateAnonClassFieldGetterSetter()
DinterfacePropertyDeclarations.cpp104 … isSetter ? ir::ScriptFunctionFlags::SETTER : ir::ScriptFunctionFlags::GETTER, flags}); in GenerateGetterOrSetter()
119 func->AddFlag(ir::ScriptFunctionFlags::METHOD); in GenerateGetterOrSetter()
DexpressionLambdaLowering.cpp33 function->AddFlag(ir::ScriptFunctionFlags::HAS_RETURN); in ConvertExpression()
DenumLowering.cpp84 ir::ScriptFunctionFlags::METHOD, functionInfo.flags}); in MakeFunction()
181 … ir::ScriptFunctionFlags::STATIC_BLOCK | ir::ScriptFunctionFlags::HIDDEN, in CreateCCtorForEnumClass()
222 auto scriptFlags = ir::ScriptFunctionFlags::CONSTRUCTOR; in CreateFunctionForCtorOfEnumClass()
223 …scriptFlags |= enumClass->IsDeclare() ? ir::ScriptFunctionFlags::EXTERNAL : ir::ScriptFunctionFlag… in CreateFunctionForCtorOfEnumClass()
578 function->AddFlag(ir::ScriptFunctionFlags::THROWS); in CreateEnumFromIntMethod()
754 function->AddFlag(ir::ScriptFunctionFlags::THROWS); in CreateEnumGetValueOfMethod()
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.h332 ir::Identifier *GetKeyByFuncFlag(ir::ScriptFunctionFlags funcFlag); in DEFINE_BITOPS()
334 … ir::ScriptFunctionFlags funcFlag, bool isDeclare = false); in DEFINE_BITOPS()
767 flags_ |= ir::ScriptFunctionFlags::GENERATOR; in FunctionContext()
771 flags_ |= ir::ScriptFunctionFlags::ASYNC; in FunctionContext()
775 flags_ |= ir::ScriptFunctionFlags::CONSTRUCTOR; in FunctionContext()
779 ir::ScriptFunctionFlags Flags() const in Flags()
784 void AddFlag(ir::ScriptFunctionFlags flags) in AddFlag()
794 ir::ScriptFunctionFlags flags_ {ir::ScriptFunctionFlags::NONE};
803 AddFlag(ir::ScriptFunctionFlags::ASYNC); in ArrowFunctionContext()
806 AddFlag(ir::ScriptFunctionFlags::ARROW); in ArrowFunctionContext()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
Ddynamic.cpp137 … ir::ScriptFunctionFlags::METHOD, ir::ModifierFlags::NONE}); in CreateDynamicCallIntrinsic()
248 ir::ScriptFunctionFlags::STATIC_BLOCK | ir::ScriptFunctionFlags::EXPRESSION, in CreateStaticScriptFunction()
275 … ir::ScriptFunctionFlags::CONSTRUCTOR | ir::ScriptFunctionFlags::EXPRESSION, in CreateScriptFunction()
443 …tion *ETSChecker::CreateClassMethod(const std::string_view name, ir::ScriptFunctionFlags funcFlags, in CreateClassMethod()
476 …CreateClassMethod(compiler::Signatures::DYNAMIC_MODULE_CLASS_INIT, ir::ScriptFunctionFlags::METHOD, in CreateDynamicModuleClassInitMethod()
488 …compiler::Signatures::LAMBDA_OBJECT_INVOKE, ir::ScriptFunctionFlags::METHOD, ir::ModifierFlags::PU… in CreateLambdaObjectClassInvokeMethod()
Dfunction.cpp1085 …if (returnTypeAnnotation == nullptr && ((func->Flags() & ir::ScriptFunctionFlags::HAS_RETURN) != 0… in ComposeSignature()
1335 func->AddFlag(ir::ScriptFunctionFlags::ENTRY_POINT); in BuildFunctionSignature()
1436 …ir::ScriptFunctionFlags throwMarkers = ir::ScriptFunctionFlags::THROWS | ir::ScriptFunctionFlags::… in CheckThrowMarkers()
1814 ir::ScriptFunctionFlags flags = ir::ScriptFunctionFlags::METHOD; in CreateAsyncImplMethod()
1817 flags |= ir::ScriptFunctionFlags::PROXY; in CreateAsyncImplMethod()
1821 flags |= ir::ScriptFunctionFlags::HAS_RETURN; in CreateAsyncImplMethod()
1865 implMethod->Function()->AddFlag(ir::ScriptFunctionFlags::ASYNC_IMPL); in CreateAsyncImplMethod()
1927 … ir::ScriptFunctionFlags flags, ArenaVector<ir::Expression *> &&params, in CreateMethod()
2057 ir::ScriptFunctionFlags::ARROW}); in TransformTraillingLambda()
2088 ir::ScriptFunctionFlags::ARROW}); in ExtendArgumentsWithFakeLamda()
/arkcompiler/ets_frontend/es2panda/util/
Dconcurrent.cpp29 func->AddFlag(ir::ScriptFunctionFlags::CONCURRENT); in SetConcurrent()
/arkcompiler/ets_frontend/es2panda/ir/
DastNode.h84 enum class ScriptFunctionFlags : uint16_t { enum
100 DEFINE_BITOPS(ScriptFunctionFlags)
/arkcompiler/ets_frontend/ets2panda/checker/
DETSchecker.cpp154 ->GlobalFunctionBuiltinType(nargs, ir::ScriptFunctionFlags::THROWS) in InitializeBuiltins()
162 ->GlobalFunctionBuiltinType(nargs, ir::ScriptFunctionFlags::RETHROWS) in InitializeBuiltins()
173 …GetGlobalTypesHolder()->GlobalFunctionBuiltinType(nargs, ir::ScriptFunctionFlags::NONE)->AsETSObje… in InitializeBuiltins()
470 ETSObjectType *ETSChecker::GlobalBuiltinFunctionType(size_t nargs, ir::ScriptFunctionFlags flags) c… in GlobalBuiltinFunctionType()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
DglobalClassHandler.cpp105 const auto functionFlags = ir::ScriptFunctionFlags::NONE; in CreateGlobalMethod()
274 … ir::ScriptFunctionFlags::STATIC_BLOCK | ir::ScriptFunctionFlags::HIDDEN, in CreateStaticBlock()
/arkcompiler/ets_frontend/ets2panda/checker/types/
DglobalTypesHolder.cpp689 Type *GlobalTypesHolder::GlobalFunctionBuiltinType(size_t nargs, ir::ScriptFunctionFlags flags) in GlobalFunctionBuiltinType()
694 if ((flags & ir::ScriptFunctionFlags::THROWS) != 0U) { in GlobalFunctionBuiltinType()
696 } else if ((flags & ir::ScriptFunctionFlags::RETHROWS) != 0U) { in GlobalFunctionBuiltinType()
701 } else if ((flags & ir::ScriptFunctionFlags::THROWS) != 0U) { in GlobalFunctionBuiltinType()
703 } else if ((flags & ir::ScriptFunctionFlags::RETHROWS) != 0U) { in GlobalFunctionBuiltinType()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DarrowFunctionExpression.cpp140 …ype = checker->AllocNode<ir::ETSFunctionType>(std::move(signature), ir::ScriptFunctionFlags::NONE); in CreateTypeAnnotation()

12