ruby-next-parser 3.4.0.1 → 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: f5ad4ea427fa8dfa429b019a2a3d3bdf10a2d67854390b8ec949e9af86dad85a
4
- data.tar.gz: 450bede732c40180fb11daf0ff72fb2ee9bb81ad866f05aba15b7fdc723612d7
3
+ metadata.gz: c9e50e7bd987c5596373e66e51edf82ce6022ddcaa39c97de465d3174224736d
4
+ data.tar.gz: 8d9606b0aba44f5284b7b39d9f6d7a4f2f418e2bf1ee0ab999e95f3b0dc03082
5
5
  SHA512:
6
- metadata.gz: d079cf082d1249aad86b8297401e58d49dde5d92aa9110ef6f75bb6bbebf61cbd0ca31722ad029e2b0590cf3a8d2edeec9c79d08ab39da5575ea4006cb663738
7
- data.tar.gz: 10822dfee68206cd41cc8cd0d05e0a9e209b2f427b64c6c4756f47d5921c20d6ca92aeb6f5560235aa3b295541491b1df5d4be3bc9d24fc1fe980a58c87f86cd
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.1"
4
+ NEXT_VERSION = "3.4.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-next-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0.1
4
+ version: 3.4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev