| /arkcompiler/ets_runtime/ecmascript/ts_types/ |
| D | ts_type_parser.cpp | 236 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 …]
|
| D | ts_manager.cpp | 286 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 …]
|
| D | ts_type_parser.h | 205 void SetFunctionThisType(const JSHandle<TSFunctionType> &functionType, 210 …void StoreMethodOffset(const JSHandle<TSFunctionType> &functionType, TypeLiteralExtractor *typeLit…
|
| /arkcompiler/ets_frontend/es2panda/typescript/extractor/ |
| D | typeSystem.h | 751 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 …]
|
| D | typeExtractor.cpp | 437 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/ |
| D | ts_type_parser_test.cpp | 227 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/ |
| D | CMakeLists.txt | 266 typescript/types/functionType.cpp
|
| D | BUILD.gn | 224 "typescript/types/functionType.cpp",
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | object_factory.cpp | 3341 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/ |
| D | dump_test.cpp | 1023 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/ |
| D | llvm_ir_builder.cpp | 2497 auto functionType = LLVMFunctionType(returnType, paramTys.data(), paramTys.size(), false); in GenerateFuncType() local 2498 return functionType; in GenerateFuncType()
|
| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | typeinfer_failed_cases.gni | 1750 "automatedcases/functionType",
|