Commit graph

36 commits

Author SHA1 Message Date
Nobuyoshi Nakada
82c74e4282 [ruby/prism] [DOC] Stop rdoc from processing non-rdoc comments
de1faa1680
2025-05-29 04:45:59 +00:00
Nobuyoshi Nakada
991cf2dd4d [ruby/prism] [DOC] Specify markdown mode to RDoc
12af4e144e
2025-05-29 04:45:58 +00:00
Kevin Newton
050ffab82b [ruby/prism] Polyfill Kernel#warn category parameter
d85c72a1b9
2025-03-19 21:03:18 +00:00
Earlopain
b5e9a2da4c [ruby/prism] Remove category keyword from warn call
`category` is only supported from Ruby 3.0 onwards and prism can still run with Ruyb 2.7

335a193851
2025-03-19 21:03:17 +00:00
Kevin Newton
45f32e3a50 [ruby/prism] Reverse-sync ruby/ruby and deprecate old fields
bc21c9f3ee
2024-08-28 19:07:16 +00:00
Kevin Newton
2bf9ae3fa1 [ruby/prism] Add node ids to nodes
bf16ade7f9
2024-07-11 14:25:54 -04:00
Kevin Newton
687be43c79 [ruby/prism] Expose flags on every node type
9f12a56fd6
2024-07-11 14:25:54 -04:00
Kevin Newton
ca48fb76fb [ruby/prism] Move location to second position for node initializers
4cc0eda4ca
2024-07-11 14:25:54 -04:00
Kevin Newton
77581dd45b [ruby/prism] Fix up steep issues
21d314eb2e
2024-06-03 20:57:48 +00:00
Kevin Newton
12386d36f0 [ruby/prism] Provide deprecated numeric method
77bf9038a2
2024-05-21 18:43:56 +00:00
Kevin Newton
89efb94fec [ruby/prism] Reconfigure rationals
This eliminates the subnode on RationalNode and replaces it with two
integer fields, which represent the ratio for the rational. It also
reduces those two integers if they both fit into 32 bits.

Importantly, this PR does not implement bignum reduction. That's something
I'd like to consider for the future, but it's simple enough for now to
leave them unreduced, which makes it more useful than it used to be.

86e06c7068
2024-05-21 14:27:46 -04:00
Kevin Newton
2e44664547 [ruby/prism] operator rename
b5e47f5c42
2024-05-10 11:47:48 -04:00
Kevin Newton
3f664c3738 [ruby/prism] Prism::CallNode#full_message_loc
fa6fe9be84
2024-05-10 13:40:04 +00:00
Kevin Newton
7a49edcf1f [ruby/prism] Prism::Node#tunnel
0bf5d651da
2024-05-03 18:37:19 +00:00
Kevin Newton
5758e45657 [ruby/prism] Change ConstantPathNode#child to ConstantPathNode#{name,name_loc}
This has been requested for a long time, and I'm finally doing it
now. Unfortunately this is a breaking change for all of the APIs.

I've added in a Ruby method for `#child` that is deprecated so that
existing usage doesn't break, but for everyone else this is going
to be a bit of a pain.

9cbe74464e
2024-05-03 11:11:57 -04:00
Kevin Newton
240fb3957b [ruby/prism] Freeze internal parts, again
50372fee5c
2024-03-26 12:11:09 -04:00
Kevin Newton
1ce3d9acbf [ruby/prism] Fix xstring heredoc parser translator
4e0f703975
2024-02-26 14:48:17 +00:00
Gopal Patel
935d4fab62 [ruby/prism] Remove Ripper from public RBS, type-assert remaining issues
5fda7a0760
2024-02-24 03:39:23 +00:00
Gopal Patel
7556fd937c [ruby/prism] Split private types
0209d093ec
2024-02-24 03:39:22 +00:00
Gopal Patel
b9b0712556 [ruby/prism] Use steep to type check RBS and Ruby files
eabed9f4fd
2024-02-24 03:39:19 +00:00
Kevin Newton
5e0589cf52 [ruby/prism] Parse float values
9137226a52
2024-02-22 22:42:44 -05:00
Kevin Newton
af0a6ea1d5 [ruby/prism] Add an IntegerField for parsing integer values
120d8c0479
2024-02-22 22:42:44 -05:00
Philip Mueller
3c61222d68 [ruby/prism] all constant nodes should have full_name and full_name_parts methods
792265ae0b
2024-02-22 21:43:02 +00:00
Vinicius Stock
dedca31804 [ruby/prism] Fix full_name for constant path targets
84c10f3a2d
2024-02-13 14:09:19 +00:00
Kevin Newton
f12ebe1188 [ruby/prism] Add parser translation
8cdec8070c
2024-01-27 19:59:42 +00:00
Adam Hess
ac4046d34b [ruby/prism] switch unless to if
29bdbf4212

Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2024-01-19 22:57:46 +00:00
Adam Hess
cfabe9c51c [ruby/prism] Handle stovetop start in constant path fullname
3a216e63fe
2024-01-19 22:57:45 +00:00
Kevin Newton
3a3fcf56d0 [ruby/prism] Fix rational when parsing non decimal integer
75d4331f7f
2024-01-03 17:18:02 +00:00
Kevin Newton
ec83bd7356 [ruby/prism] Provide heredoc? queries
e148e8fe6a
2023-12-01 18:46:52 +00:00
Vinicius Stock
7a9bb6d2a7 [ruby/prism] Fix constant path full name when parent is not a
constant
(https://github.com/ruby/prism/pull/1742)

* Raise if constant path parts contains nodes that can't be used to build full name

* Fix typo in constant path error documentation

Co-authored-by: Tim Morgan <tim@timmorgan.org>

---------

d73a053262

Co-authored-by: Tim Morgan <tim@timmorgan.org>
2023-11-21 16:39:27 +00:00
Kevin Newton
201853f4e1 [ruby/prism] Provide Parameters#signature for mirroring Method#parameters
90b3245528
2023-11-08 22:17:43 +00:00
Kevin Newton
79034fbd50 [ruby/prism] More Ruby docs
ca9a660f52
2023-11-01 13:10:29 -04:00
Kevin Newton
51ea82a770 [ruby/prism] Expose options on match last line nodes
0284b38861
2023-10-26 13:58:40 +00:00
Vinicius Stock
69b024d7cc [ruby/prism] Add full_name to ConstantPathNode and ConstantPathTargetNode
b390553028
2023-10-06 01:57:34 +00:00
Kevin Newton
4f73a7c2f7 Sync to prism rename commits 2023-09-27 13:57:38 -04:00
Kevin Newton
8ab56869a6 Rename YARP filepaths to prism filepaths 2023-09-27 13:57:38 -04:00
Renamed from lib/yarp/node_ext.rb (Browse further)