/arkcompiler/ets_frontend/es2panda/ir/ |
D | astNode.h | 47 #define DECLARE_NODE_TYPES(nodeType, className) nodeType, argument 105 #define DECLARE_CLASSES(nodeType, className) class className; argument 125 #define DECLARE_IS_CHECKS(nodeType, className) \ in AST_NODE_REINTERPRET_MAPPING() argument 126 bool Is##className() const \ in AST_NODE_REINTERPRET_MAPPING() 155 #define DECLARE_AS_CASTS(nodeType, className) \ in AST_NODE_REINTERPRET_MAPPING() argument 156 className *As##className() \ in AST_NODE_REINTERPRET_MAPPING() 158 ASSERT(Is##className()); \ in AST_NODE_REINTERPRET_MAPPING() 159 return reinterpret_cast<className *>(this); \ in AST_NODE_REINTERPRET_MAPPING() 161 const className *As##className() const \ in AST_NODE_REINTERPRET_MAPPING() 163 ASSERT(Is##className()); \ in AST_NODE_REINTERPRET_MAPPING() [all …]
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | variable.h | 42 #define DECLARE_CLASSES(type, className) class className; argument 54 #define DECLARE_CHECKS_CASTS(variableType, className) \ in VARIABLE_TYPES() argument 55 bool Is##className() const \ in VARIABLE_TYPES() 59 className *As##className() \ in VARIABLE_TYPES() 61 ASSERT(Is##className()); \ in VARIABLE_TYPES() 62 return reinterpret_cast<className *>(this); \ in VARIABLE_TYPES() 64 const className *As##className() const \ in VARIABLE_TYPES() 66 ASSERT(Is##className()); \ in VARIABLE_TYPES() 67 return reinterpret_cast<const className *>(this); \ in VARIABLE_TYPES()
|
D | declaration.h | 38 #define DECLARE_CLASSES(decl_kind, className) class className; argument 60 #define DECLARE_CHECKS_CASTS(declKind, className) \ in DECLARATION_KINDS() argument 61 bool Is##className() const \ in DECLARATION_KINDS() 65 className *As##className() \ in DECLARATION_KINDS() 67 ASSERT(Is##className()); \ in DECLARATION_KINDS() 68 return reinterpret_cast<className *>(this); \ in DECLARATION_KINDS() 70 const className *As##className() const \ in DECLARATION_KINDS() 72 ASSERT(Is##className()); \ in DECLARATION_KINDS() 73 return reinterpret_cast<const className *>(this); \ in DECLARATION_KINDS()
|
D | scope.h | 35 #define DECLARE_CLASSES(type, className) class className; argument 166 #define DECLARE_CHECKS_CASTS(scopeType, className) \ argument 167 bool Is##className() const \ 171 className *As##className() \ 173 ASSERT(Is##className()); \ 174 return reinterpret_cast<className *>(this); \ 176 const className *As##className() const \ 178 ASSERT(Is##className()); \ 179 return reinterpret_cast<const className *>(this); \
|
D | binder.cpp | 532 util::StringView className = classDef->GetName(); in BuildClassDefinition() local 533 ASSERT(!className.Empty()); in BuildClassDefinition() 534 ScopeFindResult res = scope_->Find(className); in BuildClassDefinition()
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_test_helper.h | 56 #define CONTAINERS_API_EXCEPTION_TEST(className, methodName, callInfoName) \ argument 59 JSTaggedValue testResult = className::methodName(callInfoName); \ 66 #define CONTAINERS_API_TYPE_MISMATCH_EXCEPTION_TEST(className, methodName) \ argument 69 CONTAINERS_API_EXCEPTION_TEST(className, methodName, callInfo); \
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | typeChecker.ts | 136 let className = ""; 139 … className = jshelpers.getTextOfIdentifierOrLiteral(classNameNode).replace(/\s/g, ""); 141 let classType = new ClassType(classDeclNode, BuiltinType[className]); 377 let className = "default"; 379 className = jshelpers.getTextOfIdentifierOrLiteral(classNameNode).replace(/\s/g, ""); 384 let classType = new ClassType(classDeclNode, BuiltinType[className]); 389 TypeRecorder.getInstance().setExportedType(className, typeIndex); 391 TypeRecorder.getInstance().setDeclaredType(className, typeIndex);
|
D | lexenv.ts | 200 let className = v.getName(); 203 jshelpers.getTextOfIdentifierOrLiteral(node.name) === className) { 212 expansion.push(loadAccumulatorString(className));
|
D | scope.ts | 74 constructor(className: string, node: ts.Node, isModule: ModuleVarKind) { 75 super(className, node, isModule);
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | cloduleTest1.ts | 23 addClass(className: string): $;
|
/arkcompiler/ets_frontend/ts2panda/src/statement/ |
D | classStatement.ts | 132 let className = jshelpers.getTextOfIdentifierOrLiteral(stmt.name); 133 let v: ModuleVariable = <ModuleVariable>(pandaGen.getScope().findLocal(className)); 144 let className = jshelpers.getTextOfIdentifierOrLiteral(stmt.name); 146 pandaGen.stLetOrClassToGlobalRecord(stmt, className); 148 let classInfo = classScope.find(className); 151 … let v: ModuleVariable = <ModuleVariable>(pandaGen.getScope().findLocal(className)); 499 let className = ""; 502 className = jshelpers.getTextOfIdentifierOrLiteral(classNode.name!); 513 className = jshelpers.getTextOfIdentifierOrLiteral(decl); 518 className = jshelpers.getTextOfIdentifierOrLiteral(leftExp); [all …]
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | patchFix.cpp | 139 void PatchFix::CollectFunctionsWithDefinedClasses(std::string funcName, std::string className) in CollectFunctionsWithDefinedClasses() argument 143 funcInfo->second.push_back(className); in CollectFunctionsWithDefinedClasses() 146 std::vector<std::string> funcDefinedClasses = {className}; in CollectFunctionsWithDefinedClasses() 251 void PatchFix::CollectClassMemberFunctions(const std::string &className, int64_t bufferIdx, in CollectClassMemberFunctions() argument 255 classMemberFunctions.push_back(className); in CollectClassMemberFunctions() 256 classMemberFunctions_.insert({className, classMemberFunctions}); in CollectClassMemberFunctions() 494 auto &className = hashList[i].first; in CompareClassHash() local 495 auto classIter = classInfo.find(className); in CompareClassHash() 498 modifiedClassNames_.insert(className); in CompareClassHash()
|
D | patchFix.h | 85 void CollectFunctionsWithDefinedClasses(std::string funcName, std::string className); 107 …void CollectClassMemberFunctions(const std::string &className, int64_t bufferIdx, LiteralBuffers &…
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
D | transformer.h | 129 std::vector<ir::AstNode *> CreateMethodDecorators(util::StringView className, 133 std::vector<ir::AstNode *> CreatePropertyDecorators(util::StringView className, 140 std::vector<ir::AstNode *> CreateParamDecorators(util::StringView className, 145 ir::MemberExpression *CreateClassPrototype(util::StringView className); 146 ir::Expression *CreateDecoratorTarget(util::StringView className, bool isStatic);
|
D | transformer.cpp | 907 std::vector<ir::AstNode *> Transformer::CreateParamDecorators(util::StringView className, in CreateParamDecorators() argument 936 arguments.push_back(CreateDecoratorTarget(className, isConstructor || isStatic)); in CreateParamDecorators() 950 std::vector<ir::AstNode *> Transformer::CreatePropertyDecorators(util::StringView className, in CreatePropertyDecorators() argument 974 arguments.push_back(CreateDecoratorTarget(className, isStatic)); in CreatePropertyDecorators() 985 std::vector<ir::AstNode *> Transformer::CreateMethodDecorators(util::StringView className, in CreateMethodDecorators() argument 1014 arguments.push_back(CreateDecoratorTarget(className, isStatic)); in CreateMethodDecorators() 1018 …CreateDecoratorTarget(className, isStatic), GetClassMemberName(node->Key(), node->Computed(), node… in CreateMethodDecorators() 1029 auto *defineProperty = CreateDefinePropertyCall(CreateDecoratorTarget(className, isStatic), in CreateMethodDecorators() 1037 ir::Expression *Transformer::CreateDecoratorTarget(util::StringView className, bool isStatic) in CreateDecoratorTarget() argument 1040 return CreateReferenceIdentifier(className); in CreateDecoratorTarget() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | bytecode_info_collector.h | 772 std::string className(MethodLiteral::GetMethodName(jsPandaFile_, entityId)); in GetClassName() 773 if (LIKELY(className.find('#') != std::string::npos)) { in GetClassName() 774 size_t poiIndex = className.find_last_of('#'); in GetClassName() 775 className = className.substr(poiIndex + 1); in GetClassName() 777 return className; in GetClassName()
|
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
D | jsnapi.h | 79 #define ECMA_DISALLOW_COPY(className) \ argument 80 className(const className &) = delete; \ 81 className &operator=(const className &) = delete 84 #define ECMA_DISALLOW_MOVE(className) \ argument 85 className(className &&) = delete; \ 86 className &operator=(className &&) = delete
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/ |
D | pgo_profiler_test.cpp | 770 auto className = MethodLiteral::GetMethodName(jsPandaFile.get(), classId); in HWTEST_F_L0() local 771 if (std::string(className) == "Arm") { in HWTEST_F_L0() 779 } else if (std::string(className) == "Foot") { in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | ts_manager.h | 770 …id AddElementToClassNameMap(const JSPandaFile *jsPandaFile, uint32_t offset, std::string className) in AddElementToClassNameMap() argument 772 literalOffsetClassNameMap_.emplace(std::make_pair(jsPandaFile, offset), className); in AddElementToClassNameMap()
|
D | ts_type_parser.cpp | 473 …std::string className = tsManager_->GetClassNameByOffset(jsPandaFile, typeLiteralExtractor->GetTyp… in SetClassName() local 474 JSHandle<EcmaString> classEcmaString = factory_->NewFromStdString(className); in SetClassName()
|
/arkcompiler/toolchain/tooling/test/ |
D | debugger_types_test.cpp | 133 R"(","className":100}})"; in HWTEST_F_L0() 139 R"(","className":{"xx":"yy"}}})"; in HWTEST_F_L0() 145 R"(","className":"TestClass"}})"; in HWTEST_F_L0() 246 …R"(","className":"TestClass","value":100, "unserializableValue":"Test","description":"Test","objec… in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
D | statementParser.cpp | 670 auto className = classDefinition->GetName(); in ParseClassDeclaration() local 671 ASSERT(!className.Empty()); in ParseClassDeclaration() 674 …decl = Binder()->AddDecl<binder::ClassDecl>(location, flag, classDefinition->Declare(), className); in ParseClassDeclaration()
|
/arkcompiler/toolchain/tooling/base/ |
D | pt_types.h | 295 RemoteObject &SetClassName(const std::string &className) in SetClassName() argument 297 className_ = className; in SetClassName()
|
D | pt_types.cpp | 961 std::string className; in Create() local 962 ret = params.GetString("className", &className); in Create() 964 remoteObject->className_ = std::move(className); in Create()
|
/arkcompiler/ets_frontend/testTs/ |
D | test-case.patch | 6365 + return <div className={"T1"} { ...a }>T1</div>; 6369 + return <div className={"T2"} { ...a } { ...b }>T2</div>; 6373 + return <div { ...a } className={"T3"} { ...b }>T3</div>; 6377 + return <div className={"T4"} { ...{ ...a, ...b } }>T4</div>; 6381 + return <div className={"T5"} { ...{ ...a, ...b, ...{ c, d } } }>T5</div>; 6385 + return <div className={"T6"} { ...{ ...a, ...b, ...{ ...c, ...d } } }>T6</div>;
|