Kevin Newton
2bf9ae3fa1
[ruby/prism] Add node ids to nodes
...
https://github.com/ruby/prism/commit/bf16ade7f9
2024-07-11 14:25:54 -04:00
Kevin Newton
687be43c79
[ruby/prism] Expose flags on every node type
...
https://github.com/ruby/prism/commit/9f12a56fd6
2024-07-11 14:25:54 -04:00
Kevin Newton
ca48fb76fb
[ruby/prism] Move location to second position for node initializers
...
https://github.com/ruby/prism/commit/4cc0eda4ca
2024-07-11 14:25:54 -04:00
Kevin Newton
77581dd45b
[ruby/prism] Fix up steep issues
...
https://github.com/ruby/prism/commit/21d314eb2e
2024-06-03 20:57:48 +00:00
Kevin Newton
12386d36f0
[ruby/prism] Provide deprecated numeric method
...
https://github.com/ruby/prism/commit/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.
https://github.com/ruby/prism/commit/86e06c7068
2024-05-21 14:27:46 -04:00
Kevin Newton
2e44664547
[ruby/prism] operator rename
...
https://github.com/ruby/prism/commit/b5e47f5c42
2024-05-10 11:47:48 -04:00
Kevin Newton
3f664c3738
[ruby/prism] Prism::CallNode#full_message_loc
...
https://github.com/ruby/prism/commit/fa6fe9be84
2024-05-10 13:40:04 +00:00
Kevin Newton
7a49edcf1f
[ruby/prism] Prism::Node#tunnel
...
https://github.com/ruby/prism/commit/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.
https://github.com/ruby/prism/commit/9cbe74464e
2024-05-03 11:11:57 -04:00
Kevin Newton
240fb3957b
[ruby/prism] Freeze internal parts, again
...
https://github.com/ruby/prism/commit/50372fee5c
2024-03-26 12:11:09 -04:00
Kevin Newton
1ce3d9acbf
[ruby/prism] Fix xstring heredoc parser translator
...
https://github.com/ruby/prism/commit/4e0f703975
2024-02-26 14:48:17 +00:00
Gopal Patel
935d4fab62
[ruby/prism] Remove Ripper from public RBS, type-assert remaining issues
...
https://github.com/ruby/prism/commit/5fda7a0760
2024-02-24 03:39:23 +00:00
Gopal Patel
7556fd937c
[ruby/prism] Split private types
...
https://github.com/ruby/prism/commit/0209d093ec
2024-02-24 03:39:22 +00:00
Gopal Patel
b9b0712556
[ruby/prism] Use steep to type check RBS and Ruby files
...
https://github.com/ruby/prism/commit/eabed9f4fd
2024-02-24 03:39:19 +00:00
Kevin Newton
5e0589cf52
[ruby/prism] Parse float values
...
https://github.com/ruby/prism/commit/9137226a52
2024-02-22 22:42:44 -05:00
Kevin Newton
af0a6ea1d5
[ruby/prism] Add an IntegerField for parsing integer values
...
https://github.com/ruby/prism/commit/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
...
https://github.com/ruby/prism/commit/792265ae0b
2024-02-22 21:43:02 +00:00
Vinicius Stock
dedca31804
[ruby/prism] Fix `full_name` for constant path targets
...
https://github.com/ruby/prism/commit/84c10f3a2d
2024-02-13 14:09:19 +00:00
Kevin Newton
f12ebe1188
[ruby/prism] Add parser translation
...
https://github.com/ruby/prism/commit/8cdec8070c
2024-01-27 19:59:42 +00:00
Adam Hess
ac4046d34b
[ruby/prism] switch unless to if
...
https://github.com/ruby/prism/commit/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
...
https://github.com/ruby/prism/commit/3a216e63fe
2024-01-19 22:57:45 +00:00
Kevin Newton
3a3fcf56d0
[ruby/prism] Fix rational when parsing non decimal integer
...
https://github.com/ruby/prism/commit/75d4331f7f
2024-01-03 17:18:02 +00:00
Kevin Newton
ec83bd7356
[ruby/prism] Provide heredoc? queries
...
https://github.com/ruby/prism/commit/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>
---------
https://github.com/ruby/prism/commit/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
...
https://github.com/ruby/prism/commit/90b3245528
2023-11-08 22:17:43 +00:00
Kevin Newton
79034fbd50
[ruby/prism] More Ruby docs
...
https://github.com/ruby/prism/commit/ca9a660f52
2023-11-01 13:10:29 -04:00
Kevin Newton
51ea82a770
[ruby/prism] Expose options on match last line nodes
...
https://github.com/ruby/prism/commit/0284b38861
2023-10-26 13:58:40 +00:00
Vinicius Stock
69b024d7cc
[ruby/prism] Add full_name to ConstantPathNode and ConstantPathTargetNode
...
https://github.com/ruby/prism/commit/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