Sha256: f570448a7ef3a0c9eaa3a804102b6005ebda4d16e778f23b140345272d6578cb

Contents?: true

Size: 1002 Bytes

Versions: 12

Compression:

Stored size: 1002 Bytes

Contents

module Parser
  # Parser metadata
  module Meta

    # Nodes parser produces combined for 1.8 1.9 and 2.0 state of 2.1 specific nodes is unknown.
    NODE_TYPES =
      %w(
        true false nil int float str dstr str
        sym dsym xstr regopt regexp array splat
        array pair kwsplat hash irange erange self
        lvar ivar cvar gvar const defined? lvasgn
        ivasgn cvasgn gvasgn casgn mlhs masgn op_asgn
        op_asgn and_asgn ensure rescue arg_expr
        or_asgn and_asgn or_asgn back_ref nth_ref
        match_with_lvasgn match_current_line
        module class sclass def defs undef alias args
        cbase arg optarg restarg blockarg block_pass args def kwarg kwoptarg
        kwrestarg send super zsuper yield block send
        and not or if when case while until while_post
        until_post for break next redo return resbody
        kwbegin begin retry preexe postexe iflipflop eflipflop
        shadowarg
      ).map(&:to_sym).to_set.freeze

  end # Meta
end # Parser

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
rubyjobbuilderdsl-0.0.2 vendor/bundle/ruby/2.1.0/gems/parser-2.2.0.pre.4/lib/parser/meta.rb
rubyjobbuilderdsl-0.0.1 vendor/bundle/ruby/2.1.0/gems/parser-2.2.0.pre.4/lib/parser/meta.rb
parser-2.2.0.pre.6 lib/parser/meta.rb
parser-2.2.0.pre.5 lib/parser/meta.rb
parser-2.2.0.pre.4 lib/parser/meta.rb
parser-2.2.0.pre.3 lib/parser/meta.rb
parser-2.2.0.pre.2 lib/parser/meta.rb
parser-2.2.0.pre.1 lib/parser/meta.rb
parser-2.1.9 lib/parser/meta.rb
parser-2.1.8 lib/parser/meta.rb
parser-2.1.7 lib/parser/meta.rb
parser-2.1.6 lib/parser/meta.rb