Sha256: 714b0a9bffecf1d969839d3d85ffb7efb5b7f1648fedfba244aa47c1f9906fe5

Contents?: true

Size: 1.17 KB

Versions: 13

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

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
        pair kwsplat hash irange erange self
        lvar ivar cvar gvar const defined? lvasgn
        ivasgn cvasgn gvasgn casgn mlhs masgn
        op_asgn and_asgn ensure rescue arg_expr
        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 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__ __ENCODING__
        ident root lambda indexasgn index procarg0
        meth_ref restarg_expr blockarg_expr
        objc_kwarg objc_restarg objc_varargs
      ).map(&:to_sym).to_set.freeze

  end # Meta
end # Parser

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/parser-2.6.3.0/lib/parser/meta.rb
parser-2.6.3.0 lib/parser/meta.rb
parser-2.6.2.1 lib/parser/meta.rb