Sha256: c5179deac46c88cf02e9e4e12dc8c4b2dd518d165c9dc620f0d1dbf6098fb72f

Contents?: true

Size: 1.53 KB

Versions: 1936

Compression:

Stored size: 1.53 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 =
      %i(
        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 kwnilarg 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 lambda indexasgn index procarg0
        restarg_expr blockarg_expr
        objc_kwarg objc_restarg objc_varargs
        numargs numblock forward_args forwarded_args forward_arg
        case_match in_match in_pattern
        match_var pin match_alt match_as match_rest
        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 kwargs
        match_pattern_p match_pattern
      ).to_set.freeze

  end # Meta
end # Parser

Version data entries

1,936 entries across 1,929 versions & 20 rubygems

Version Path
ory-hydra-client-1.11.7 vendor/bundle/ruby/2.5.0/gems/parser-3.1.1.0/lib/parser/meta.rb
ory-client-0.0.1.alpha106 vendor/bundle/ruby/2.5.0/gems/parser-3.1.1.0/lib/parser/meta.rb
ory-hydra-client-1.11.6 vendor/bundle/ruby/2.5.0/gems/parser-3.1.1.0/lib/parser/meta.rb
ory-keto-client-0.8.0.alpha1 vendor/bundle/ruby/2.5.0/gems/parser-3.1.1.0/lib/parser/meta.rb
ory-client-0.0.1.alpha105 vendor/bundle/ruby/2.5.0/gems/parser-3.1.1.0/lib/parser/meta.rb
parser-3.1.1.0 lib/parser/meta.rb
ory-client-0.0.1.alpha104 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha103 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-hydra-client-1.11.5 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha101 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha100 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-hydra-client-1.11.4 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha99 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha98 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha97 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha96 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha95 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha94 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha93 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb
ory-client-0.0.1.alpha92 vendor/bundle/ruby/2.5.0/gems/parser-3.1.0.0/lib/parser/meta.rb