From 507340bb51a2afc3e1e92f5f3b72dd7cce56269e Mon Sep 17 00:00:00 2001 From: tengf Date: Tue, 2 Aug 2022 23:34:20 +0800 Subject: [PATCH] Fix some typos fix #I5MOWH Signed-off-by: tengf --- es2panda/binder/tsBinding.h | 2 +- es2panda/compiler/base/iterators.h | 2 +- es2panda/compiler/debugger/debuginfoDumper.cpp | 2 +- ts2panda/ts2abc/type_adapter.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/es2panda/binder/tsBinding.h b/es2panda/binder/tsBinding.h index 4d586ceaf4..66dd7f6273 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 0f23818d9e..d43bc95687 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 24f9745a61..a707a32ee0 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 a0ae080162..797df25355 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); } -- Gitee