Remove unused parameter to LexConflictManager
This commit is contained in:
parent
a8d2585330
commit
f065eb0480
4 changed files with 1 additions and 14 deletions
|
|
@ -41,7 +41,6 @@ class LexTableBuilder {
|
|||
public:
|
||||
LexTableBuilder(ParseTable *parse_table, const LexicalGrammar &lex_grammar)
|
||||
: lex_grammar(lex_grammar),
|
||||
conflict_manager(lex_grammar),
|
||||
parse_table(parse_table) {
|
||||
for (const rule_ptr &rule : lex_grammar.separators)
|
||||
separator_rules.push_back(rules::Repeat::build(rule));
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
namespace tree_sitter {
|
||||
namespace build_tables {
|
||||
|
||||
LexConflictManager::LexConflictManager(const LexicalGrammar &grammar)
|
||||
: grammar(grammar) {}
|
||||
|
||||
bool LexConflictManager::resolve(const LexAction &new_action,
|
||||
const LexAction &old_action) {
|
||||
if (new_action.type < old_action.type)
|
||||
|
|
|
|||
|
|
@ -13,10 +13,7 @@ class LexAction;
|
|||
namespace build_tables {
|
||||
|
||||
class LexConflictManager {
|
||||
const LexicalGrammar grammar;
|
||||
|
||||
public:
|
||||
explicit LexConflictManager(const LexicalGrammar &);
|
||||
bool resolve(const LexAction &, const LexAction &);
|
||||
|
||||
std::set<rules::Symbol> fragile_tokens;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue