Sha256: 449ff392704b7e8d647d041084d7d624b5a4795955b69050ad79e233b5812c99

Contents?: true

Size: 1.03 KB

Versions: 18

Compression:

Stored size: 1.03 KB

Contents

module Parser
  # Parser metadata
  module Meta

    # All node types that parser can produce. Not all parser versions
    # will be able to produce every possible node.
    NODE_TYPES =
      %w(
        true false nil int float str dstr
        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 csend super zsuper yield block
        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 complex rational __FILE__ __LINE__
      ).map(&:to_sym).to_set.freeze

  end # Meta
end # Parser

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
dirwatch-0.0.2 vendor/bundle/ruby/2.3.0/gems/parser-2.4.0.0/lib/parser/meta.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/lib/parser/meta.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/parser-2.4.0.0/lib/parser/meta.rb
parser-2.4.0.0 lib/parser/meta.rb
parser-2.3.3.1 lib/parser/meta.rb
parser-2.3.3.0 lib/parser/meta.rb
parser-2.3.2.0 lib/parser/meta.rb
parser-2.3.1.4 lib/parser/meta.rb
parser-2.3.1.3 lib/parser/meta.rb
parser-2.3.1.2 lib/parser/meta.rb
parser-2.3.1.1 lib/parser/meta.rb
parser-2.3.1.0 lib/parser/meta.rb
parser-2.3.0.7 lib/parser/meta.rb
parser-2.3.0.6 lib/parser/meta.rb
parser-2.3.0.5 lib/parser/meta.rb
parser-2.3.0.4 lib/parser/meta.rb
parser-2.3.0.3 lib/parser/meta.rb
parser-2.3.0.2 lib/parser/meta.rb