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 +4 -4
- data/lib/parser/ruby-next/parser_ext.rb +9 -0
- data/lib/parser/ruby-next/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9e50e7bd987c5596373e66e51edf82ce6022ddcaa39c97de465d3174224736d
|
4
|
+
data.tar.gz: 8d9606b0aba44f5284b7b39d9f6d7a4f2f418e2bf1ee0ab999e95f3b0dc03082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|