Home
last modified time | relevance | path

Searched refs:functionType (Results 1 – 12 of 12) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type_parser.cpp236 JSHandle<TSFunctionType> functionType = in ParseNonImportType() local
238 return JSHandle<JSTaggedValue>(functionType); in ParseNonImportType()
371 JSHandle<TSFunctionType> functionType = factory_->NewTSFunctionType(length); in ParseFunctionType() local
373 SetFunctionThisType(functionType, jsPandaFile, recordName, typeLiteralExtractor); in ParseFunctionType()
374 JSHandle<TaggedArray> parameterTypes(thread_, functionType->GetParameterTypes()); in ParseFunctionType()
384 functionType->SetParameterTypes(thread_, parameterTypes); in ParseFunctionType()
388 functionType->SetName(thread_, functionName); in ParseFunctionType()
392 functionType->SetReturnGT(returnGT); in ParseFunctionType()
395 functionType->SetBitField(bitField); in ParseFunctionType()
397 StoreMethodOffset(functionType, typeLiteralExtractor); in ParseFunctionType()
[all …]
Dts_manager.cpp286 JSHandle<TSFunctionType> functionType(tsType); in IsStaticFunc() local
287 return functionType->GetStatic(); in IsStaticFunc()
557 JSHandle<TSFunctionType> functionType = JSHandle<TSFunctionType>(tsType); in GetFuncName() local
558 auto name = functionType->GetName(); in GetFuncName()
568 JSHandle<TSFunctionType> functionType = JSHandle<TSFunctionType>(tsType); in GetMethodIndex() local
569 uint32_t methodOffset = functionType->GetMethodOffset(); in GetMethodIndex()
579 JSHandle<TSFunctionType> functionType = JSHandle<TSFunctionType>(tsType); in GetFunctionTypeLength() local
580 return functionType->GetLength(); in GetFunctionTypeLength()
588 JSHandle<TSFunctionType> functionType = JSHandle<TSFunctionType>(tsType); in GetFuncParameterTypeGT() local
589 return functionType->GetParameterTypeGT(index); in GetFuncParameterTypeGT()
[all …]
Dts_type_parser.h205 void SetFunctionThisType(const JSHandle<TSFunctionType> &functionType,
210 …void StoreMethodOffset(const JSHandle<TSFunctionType> &functionType, TypeLiteralExtractor *typeLit…
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeSystem.h751 auto fn = [&method, this](const FunctionType &functionType, const util::StringView &name) { in FillMethod()
752 if ((functionType.GetModifier() & FuncModifier::STATIC) == 0) { in FillMethod()
762 FunctionType functionType(extractor_, method, name); in FillMethod()
763 fn(functionType, name); in FillMethod()
768 FunctionType functionType(extractor_, method, name); in FillMethod()
769 recorder_->SetIdentifierTypeIndex(identifier, functionType.GetTypeIndexShift()); in FillMethod()
770 fn(functionType, name); in FillMethod()
991 FunctionType functionType(extractor_, method, name); in FillMethod()
997 FunctionType functionType(extractor_, method, name); in FillMethod()
998 recorder_->SetIdentifierTypeIndex(identifier, functionType.GetTypeIndexShift()); in FillMethod()
[all …]
DtypeExtractor.cpp437 FunctionType functionType(this, node, name); in GetTypeIndexFromFunctionNode() local
438 typeIndex = functionType.GetTypeIndexShift(); in GetTypeIndexFromFunctionNode()
582 FunctionType functionType(this, type->AsTSFunctionType(), ""); in GetTypeIndexFromAnnotation() local
583 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
585 FunctionType functionType(this, type->AsTSConstructorType(), ""); in GetTypeIndexFromAnnotation() local
586 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
599 FunctionType functionType(this, typeAnnotation->AsTSFunctionType(), ""); in GetTypeIndexFromAnnotation() local
600 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
603 FunctionType functionType(this, typeAnnotation->AsTSConstructorType(), ""); in GetTypeIndexFromAnnotation() local
604 return functionType.GetTypeIndexShift(); in GetTypeIndexFromAnnotation()
[all …]
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/
Dts_type_parser_test.cpp227 JSHandle<TSFunctionType> functionType(type); in HWTEST_F_L0() local
228 EXPECT_EQ(resultGT, functionType->GetGT()); in HWTEST_F_L0()
229 EXPECT_EQ(functionType->GetLength(), numOfParas); in HWTEST_F_L0()
230 …EXPECT_EQ(functionType->GetParameterTypeGT(0), GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableId… in HWTEST_F_L0()
232 …EXPECT_EQ(functionType->GetParameterTypeGT(1), GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableId… in HWTEST_F_L0()
234 …EXPECT_EQ(functionType->GetReturnGT(), GlobalTSTypeRef(static_cast<uint32_t>(ModuleTableIdx::PRIMI… in HWTEST_F_L0()
/arkcompiler/ets_frontend/es2panda/
DCMakeLists.txt266 typescript/types/functionType.cpp
DBUILD.gn224 "typescript/types/functionType.cpp",
/arkcompiler/ets_runtime/ecmascript/
Dobject_factory.cpp3341 JSHandle<TSFunctionType> functionType(thread_, header); in NewTSFunctionType() local
3343 functionType->SetGT(GlobalTSTypeRef::Default()); in NewTSFunctionType()
3344 functionType->SetName(thread_, JSTaggedValue::Undefined()); in NewTSFunctionType()
3345 functionType->SetParameterTypes(thread_, JSTaggedValue::Undefined()); in NewTSFunctionType()
3346 functionType->SetReturnGT(GlobalTSTypeRef::Default()); in NewTSFunctionType()
3347 functionType->SetThisGT(GlobalTSTypeRef::Default()); in NewTSFunctionType()
3348 functionType->ClearBitField(); in NewTSFunctionType()
3351 functionType->SetParameterTypes(thread_, parameterTypes); in NewTSFunctionType()
3353 return functionType; in NewTSFunctionType()
/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp1023 JSHandle<TSFunctionType> functionType = factory->NewTSFunctionType(1); in HWTEST_F_L0() local
1024 DUMP_FOR_HANDLE(functionType) in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dllvm_ir_builder.cpp2497 auto functionType = LLVMFunctionType(returnType, paramTys.data(), paramTys.size(), false); in GenerateFuncType() local
2498 return functionType; in GenerateFuncType()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
Dtypeinfer_failed_cases.gni1750 "automatedcases/functionType",