From 4db5e3733812b99f5b7ba57bb494d5a1d35a415c Mon Sep 17 00:00:00 2001 From: zhangrengao Date: Fri, 28 Oct 2022 01:44:40 +0000 Subject: [PATCH] fixed f3f568a from https://gitee.com/zhangrengao1/ark_ts2abc/pulls/637 Fix code check of switch Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/I5Y609?from=project-issue Signed-off-by: zhangrengao Change-Id: Id81c2d6b735fe460c985cbb7268a5bc47e0a674d --- es2panda/lexer/token/token.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/es2panda/lexer/token/token.cpp b/es2panda/lexer/token/token.cpp index ba04e5d974..61847be143 100644 --- a/es2panda/lexer/token/token.cpp +++ b/es2panda/lexer/token/token.cpp @@ -94,8 +94,7 @@ bool Token::IsReservedTypeName() const bool Token::IsJsStrictReservedWord() const { - switch (keywordType_) - { + switch (keywordType_) { case TokenType::KEYW_ARGUMENTS: case TokenType::KEYW_EVAL: case TokenType::KEYW_STATIC: -- Gitee