ruby-next-parser 3.4.0.0 → 3.4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 599fb2ab28d4c14213e0f239c8c61f109bb99b250870c14473bd44b7d3bfb24c
4
- data.tar.gz: dfbdb998d62c61daa43db9ed88f50039b12b7c0689d8e39102f4270ef1640559
3
+ metadata.gz: c9e50e7bd987c5596373e66e51edf82ce6022ddcaa39c97de465d3174224736d
4
+ data.tar.gz: 8d9606b0aba44f5284b7b39d9f6d7a4f2f418e2bf1ee0ab999e95f3b0dc03082
5
5
  SHA512:
6
- metadata.gz: e7d9d5aa13d446c071d51b466bf00974eafa328fba0895a3b52d96bcc536d2128d7301e948cf5fcda778dffdd0b21df0ba6711bcef1efa2400b9ebd0cca9cd67
7
- data.tar.gz: f0dfb8fc79df212ac1f1856ac11fd2b57b7530317cec3540fd1cef7d0235a5a1c9386a953f8299adae492688ced8d2792941d1b21e19fa644093e9c3c12f6004
6
+ metadata.gz: 2434032720bc227ee10c01096d38652226525fdd5e8faec6837890cfd73d0a0e1945f833a5fd11a1759b2acfcab505874e318f29b9034939e079e0c330bcd678
7
+ data.tar.gz: 29bd26ea0e0903dfa4cf3aa70e33a5acb7b53f5e1a370a4c8f45833ed3b0cb1c7c0221c3032816687223e237bc5daaaf05dfcbf39983eb151837d8418df8cd7f
@@ -9,6 +9,15 @@
9
9
  require_relative "builder"
10
10
  require_relative "ast/processor"
11
11
 
12
+ require "parser/context"
13
+ unless Parser::Context::FLAGS.include?(:cant_return)
14
+ Parser::Context::FLAGS << :cant_return
15
+
16
+ class Parser::Context
17
+ attr_accessor :cant_return
18
+ end
19
+ end
20
+
12
21
  module Parser
13
22
  # Patch the base parser class to use custom builder and lexer
14
23
  module NextExt
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- NEXT_VERSION = "3.4.0.0"
4
+ NEXT_VERSION = "3.4.0.2"
5
5
  end