diff --git a/es2panda/binder/tsBinding.h b/es2panda/binder/tsBinding.h index 4d586ceaf481ce0ef30f02d82e494f8f3732e50d..66dd7f62733160a3f5acd3ba8f801845e4b49a7a 100644 --- a/es2panda/binder/tsBinding.h +++ b/es2panda/binder/tsBinding.h @@ -21,7 +21,7 @@ #include namespace panda::es2panda::binder { -// Note: if the bool operand is present, the expression cannot be evaluated during compliation +// Note: if the bool operand is present, the expression cannot be evaluated during compilation using EnumMemberResult = std::variant; class TSBinding : public util::UString { diff --git a/es2panda/compiler/base/iterators.h b/es2panda/compiler/base/iterators.h index 0f23818d9ed2015bc8db01e274ba63b5a064dea1..d43bc95687716999dd39dd9b610df843670b61c7 100644 --- a/es2panda/compiler/base/iterators.h +++ b/es2panda/compiler/base/iterators.h @@ -67,7 +67,7 @@ public: protected: PandaGen *pg_; const ir::AstNode *node_; - // These 3 regs must be allocated continously + // These 3 regs must be allocated continuously VReg method_; VReg iterator_; VReg nextResult_; diff --git a/es2panda/compiler/debugger/debuginfoDumper.cpp b/es2panda/compiler/debugger/debuginfoDumper.cpp index 24f9745a6173d477238535bf867bd98eeeaf9610..a707a32ee0ce3d08a2bdb06f4138a642767f3e94 100644 --- a/es2panda/compiler/debugger/debuginfoDumper.cpp +++ b/es2panda/compiler/debugger/debuginfoDumper.cpp @@ -136,7 +136,7 @@ void DebugInfoDumper::WritePosInfo(const pandasm::debuginfo::Ins &posInfo) ss_ << "\"debug_pos_info\": {"; WriteProperty("boundLeft", posInfo.bound_left); WriteProperty("boundRight", posInfo.bound_right); - WriteProperty("sourecLineNum", static_cast(posInfo.line_number)); + WriteProperty("sourceLineNum", static_cast(posInfo.line_number)); WriteProperty("wholeLine", posInfo.whole_line, false); Indent(); ss_ << "}" << std::endl; diff --git a/ts2panda/ts2abc/type_adapter.cpp b/ts2panda/ts2abc/type_adapter.cpp index a0ae080162e2fe91ded247d95191fea82c36b2bc..797df25355833cd294a9fb9d31f183a46e3097fd 100644 --- a/ts2panda/ts2abc/type_adapter.cpp +++ b/ts2panda/ts2abc/type_adapter.cpp @@ -21,7 +21,7 @@ void TypeAdapter::AdaptTypeForProgram(panda::pandasm::Program *prog) const { for (auto &[name, func] : prog->function_table) { if (ShouldDisplayTypeInfo()) { - std::cout << "Handle types for funtion: " << name << "\n"; + std::cout << "Handle types for function: " << name << "\n"; } AdaptTypeForFunction(&func); }