Skip to content

Commit

Permalink
Simplify code (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Sep 30, 2020
1 parent 4ac776e commit f4ffb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/parser/meta.rb
Expand Up @@ -7,7 +7,7 @@ module Meta
# All node types that parser can produce. Not all parser versions
# will be able to produce every possible node.
NODE_TYPES =
%w(
%i(
true false nil int float str dstr
sym dsym xstr regopt regexp array splat
pair kwsplat hash irange erange self
Expand All @@ -32,7 +32,7 @@ module class sclass def defs undef alias args
array_pattern match_with_trailing_comma array_pattern_with_tail
hash_pattern const_pattern if_guard unless_guard match_nil_pattern
empty_else find_pattern
).map(&:to_sym).to_set.freeze
).to_set.freeze

end # Meta
end # Parser

0 comments on commit f4ffb5b

Please sign in to comment.