/arkcompiler/ets_frontend/es2panda/util/ |
H A D | commonUtil.h | 62 template<bool isConst, typename T> 63 using ConstReferenceIf = typename std::conditional<isConst, const T &, T &>::type; 65 template<bool isConst> 66 using ImportTraverser = std::function<void(ConstReferenceIf<isConst, std::string>)>; 68 template <bool isConst> 69 void VisitStaticImports(ConstReferenceIf<isConst, pandasm::Program> program, in VisitStaticImports() 70 ConstReferenceIf<isConst, pandasm::Record> record, in VisitStaticImports() 71 const ImportTraverser<isConst> &cb) in VisitStaticImports() 88 template <bool isConst> 89 void VisitDyanmicImports(ConstReferenceIf<isConst, pandas [all...] |
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsEnumDeclaration.h | 44 bool isExport, bool isDeclare, bool isConst) in TSEnumDeclaration() 51 isConst_(isConst) in TSEnumDeclaration() 87 checker::Type *InferType(checker::Checker *checker, bool isConst) const; 43 TSEnumDeclaration(binder::TSEnumScope *scope, Identifier *key, ArenaVector<TSEnumMember *> &&members, bool isExport, bool isDeclare, bool isConst) TSEnumDeclaration() argument
|
H A D | tsAsExpression.h | 35 explicit TSAsExpression(Expression *expression, Expression *typeAnnotation, bool isConst) in TSAsExpression() argument 39 isConst_(isConst) in TSAsExpression()
|
H A D | tsEnumDeclaration.cpp | 360 checker::Type *TSEnumDeclaration::InferType(checker::Checker *checker, bool isConst) const in InferType() 376 InferEnumVariableType(checker, currentVar->AsEnumVariable(), &value, &initNext, &isLiteralEnum, isConst, in InferType()
|
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | tsAsExpressionBuilder.h | 41 TSAsExpressionBuilder &SetIsCOnst(bool isConst) in SetIsCOnst() argument 43 isConst_ = isConst; in SetIsCOnst()
|
H A D | tsEnumDeclarationBuilder.h | 56 TSEnumDeclarationBuilder &SetIsConst(bool isConst) in SetIsConst() argument 58 isConst_ = isConst; in SetIsConst()
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | ETSparserEnums.cpp | 125 ir::Statement *ETSParser::ParseEnumDeclaration(bool isConst, bool isStatic) in ParseEnumDeclaration() argument 138 auto *declNode = ParseEnumMembers(key, enumStart, isConst, isStatic); in ParseEnumDeclaration() 180 const bool isConst, const bool isStatic) in ParseEnumMembers() 207 ir::TSEnumDeclaration::ConstructorFlags {isConst, isStatic, InAmbientContext()}); in ParseEnumMembers() 179 ParseEnumMembers(ir::Identifier *const key, const lexer::SourcePosition &enumStart, const bool isConst, const bool isStatic) ParseEnumMembers() argument
|
H A D | TypedParser.h | 60 ir::Statement *ParseEnumDeclaration(bool isConst = false, bool isStatic = false) override; 91 bool isConst, bool isStatic);
|
H A D | expressionTSParser.cpp | 130 bool isConst = false; in ParsePotentialAsExpression() local 134 isConst = true; in ParsePotentialAsExpression() 139 auto *asExpr = AllocNode<ir::TSAsExpression>(expr, typeAnnotation, isConst); in ParsePotentialAsExpression()
|
H A D | TypedParser.cpp | 610 bool isConst, [[maybe_unused]] bool isStatic) in ParseEnumMembers() 653 ir::TSEnumDeclaration::ConstructorFlags {isConst}); in ParseEnumMembers() 661 ir::Statement *TypedParser::ParseEnumDeclaration(bool isConst, [[maybe_unused]] bool isStatic) in ParseEnumDeclaration() argument 667 auto *declNode = ParseEnumMembers(key, enumStart, isConst, false); in ParseEnumDeclaration() 609 ParseEnumMembers(ir::Identifier *key, const lexer::SourcePosition &enumStart, bool isConst, [[maybe_unused]] bool isStatic) ParseEnumMembers() argument
|
H A D | ETSparser.h | 402 ir::TSEnumDeclaration *ParseEnumMembers(ir::Identifier *key, const lexer::SourcePosition &enumStart, bool isConst, 423 ir::Statement *ParseEnumDeclaration(bool isConst = false, bool isStatic = false) override;
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsAsExpression.h | 38 explicit TSAsExpression(Expression *expression, TypeNode *typeAnnotation, bool isConst) in TSAsExpression() argument 39 : AnnotatedExpression(AstNodeType::TS_AS_EXPRESSION, typeAnnotation), expression_(expression), isConst_(isConst) in TSAsExpression()
|
H A D | tsEnumDeclaration.h | 34 bool isConst; member 46 isConst_(flags.isConst), in TSEnumDeclaration()
|
/arkcompiler/runtime_core/static_core/abc2program/ |
H A D | program_dump.cpp | 282 bool isConst = litArray.literals[0].IsArray(); in DumpLiteralArray() local 285 if (isConst) { in DumpLiteralArray() 290 DumpValues(litArray, isConst, os, program); in DumpLiteralArray() 353 void PandasmProgramDumper::DumpValues(const pandasm::LiteralArray &litArray, const bool isConst, std::ostream &os, in DumpValues() argument 356 std::string separator = (isConst) ? (" ") : ("\n"); in DumpValues() 360 if (isConst) { in DumpValues()
|
H A D | program_dump.h | 59 void DumpValues(const pandasm::LiteralArray &litArray, const bool isConst, std::ostream &os,
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | variableDeclarator.cpp | 80 bool isConst = declarator->Parent()->AsVariableDeclaration()->Kind() == in CheckSimpleVariableDeclaration() local 83 if (isConst) { in CheckSimpleVariableDeclaration() 100 if (!isConst) { in CheckSimpleVariableDeclaration()
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
H A D | declaration.h | 136 explicit EnumLiteralDecl(util::StringView name, bool isConst) : Decl(name), isConst_(isConst) {} in EnumLiteralDecl() argument 137 explicit EnumLiteralDecl(util::StringView name, ir::AstNode *declNode, bool isConst) in EnumLiteralDecl() argument 138 : Decl(name, declNode), isConst_(isConst) in EnumLiteralDecl()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
H A D | reg_alloc_graph_coloring.cpp | 335 bool isConst = interval->GetInst()->IsConst(); in SparseIG() local 336 if (isConst && interval->GetUsePositions().empty()) { in SparseIG() 340 if (isConst && sibling->GetUsePositions().empty()) { in SparseIG()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | declaration.h | 167 explicit EnumLiteralDecl(ArenaAllocator *allocator, util::StringView name, bool isExport, bool isConst) in EnumLiteralDecl() argument 168 : MultiDecl(allocator, name), isExport_(isExport), isConst_(isConst) {} in EnumLiteralDecl()
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | TSAnalyzer.h | 65 checker::Type *InferType(checker::TSChecker *checker, bool isConst, ir::TSEnumDeclaration *st) const;
|
H A D | TSAnalyzer.cpp | 1307 const bool isConst = declarator->Parent()->AsVariableDeclaration()->Kind() == in CheckSimpleVariableDeclaration() local 1310 if (isConst) { in CheckSimpleVariableDeclaration() 1327 if (!isConst) { in CheckSimpleVariableDeclaration() 1808 checker::Type *TSAnalyzer::InferType(checker::TSChecker *checker, bool isConst, ir::TSEnumDeclaration *st) const in InferType() argument 1822 InferEnumVariableType(currentVar->AsEnumVariable(), &value, &initNext, &isLiteralEnum, isConst); in InferType()
|
/arkcompiler/runtime_core/static_core/disassembler/ |
H A D | disassembler.cpp | 1268 bool isConst = litArray.literals[0].IsArray(); in Serialize() local 1272 if (isConst) { in Serialize() 1278 SerializeValues(litArray, isConst, os); in Serialize() 1377 void Disassembler::SerializeValues(const pandasm::LiteralArray &litArray, const bool isConst, std::ostream &os) const in SerializeValues() argument 1379 std::string separator = (isConst) ? (" ") : ("\n"); in SerializeValues() 1383 if (isConst) { in SerializeValues()
|
H A D | disassembler.h | 144 void SerializeValues(const pandasm::LiteralArray &litArray, bool isConst, std::ostream &os) const;
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/ |
H A D | builtins.cpp | 172 auto isConst = llvm::cast<llvm::ConstantInt>(op1); in PreWRBHelper() local 173 auto isVolatileMem = !isConst->isZero(); in PreWRBHelper()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | slowpath_lowering.h | 278 void LowerStConstToGlobalRecord(GateRef gate, bool isConst);
|