diff options
| author | robot-piglet <[email protected]> | 2023-12-04 15:32:14 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2023-12-05 01:22:50 +0300 |
| commit | c21ed9eedf73010bc81342518177dfdfb0d56bd7 (patch) | |
| tree | 72f8fde4463080cfe5a38eb0babc051cfe32c51e /contrib/libs/antlr4_cpp_runtime/src/atn/LexerMoreAction.cpp | |
| parent | ec1311bf2e8cc231723b8b5e484ca576663a1309 (diff) | |
Intermediate changes
Diffstat (limited to 'contrib/libs/antlr4_cpp_runtime/src/atn/LexerMoreAction.cpp')
| -rw-r--r-- | contrib/libs/antlr4_cpp_runtime/src/atn/LexerMoreAction.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/contrib/libs/antlr4_cpp_runtime/src/atn/LexerMoreAction.cpp b/contrib/libs/antlr4_cpp_runtime/src/atn/LexerMoreAction.cpp deleted file mode 100644 index 30df87b7b60..00000000000 --- a/contrib/libs/antlr4_cpp_runtime/src/atn/LexerMoreAction.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. - * Use of this file is governed by the BSD 3-clause license that - * can be found in the LICENSE.txt file in the project root. - */ - -#include "misc/MurmurHash.h" -#include "Lexer.h" - -#include "atn/LexerMoreAction.h" - -using namespace antlr4; -using namespace antlr4::atn; -using namespace antlr4::misc; - -const Ref<const LexerMoreAction>& LexerMoreAction::getInstance() { - static const Ref<const LexerMoreAction> instance(new LexerMoreAction()); - return instance; -} - -void LexerMoreAction::execute(Lexer *lexer) const { - lexer->more(); -} - -size_t LexerMoreAction::hashCodeImpl() const { - size_t hash = MurmurHash::initialize(); - hash = MurmurHash::update(hash, static_cast<size_t>(getActionType())); - return MurmurHash::finish(hash, 1); -} - -bool LexerMoreAction::equals(const LexerAction &other) const { - return this == std::addressof(other); -} - -std::string LexerMoreAction::toString() const { - return "more"; -} |
