Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@S-H-GAMELINKS
Copy link
Contributor

memo:

> ruby -e 'begin; 117; end.to_s' --parser=prism --dump=parsetree
@ ProgramNode (location: (1,0)-(1,20))
+-- locals: []
+-- statements:
    @ StatementsNode (location: (1,0)-(1,20))
    +-- body: (length: 1)
        +-- @ CallNode (location: (1,0)-(1,20))
            +-- CallNodeFlags: nil
            +-- receiver:
            |   @ BeginNode (location: (1,0)-(1,15))
            |   +-- begin_keyword_loc: (1,0)-(1,5) = "begin"
            |   +-- statements:
            |   |   @ StatementsNode (location: (1,7)-(1,10))
            |   |   +-- body: (length: 1)
            |   |       +-- @ IntegerNode (location: (1,7)-(1,10))
            |   |           +-- IntegerBaseFlags: decimal
            |   |           +-- value: 117
            |   +-- rescue_clause: nil
            |   +-- else_clause: nil
            |   +-- ensure_clause: nil
            |   +-- end_keyword_loc: (1,12)-(1,15) = "end"
            +-- call_operator_loc: (1,15)-(1,16) = "."
            +-- name: :to_s
            +-- message_loc: (1,16)-(1,20) = "to_s"
            +-- opening_loc: nil
            +-- arguments: nil
            +-- closing_loc: nil
            +-- equal_loc: nil
            +-- block: nil

memo:
```bash
> ruby -e 'begin; 117; end.to_s' --parser=prism --dump=parsetree
@ ProgramNode (location: (1,0)-(1,20))
+-- locals: []
+-- statements:
    @ StatementsNode (location: (1,0)-(1,20))
    +-- body: (length: 1)
        +-- @ CallNode (location: (1,0)-(1,20))
            +-- CallNodeFlags: nil
            +-- receiver:
            |   @ BeginNode (location: (1,0)-(1,15))
            |   +-- begin_keyword_loc: (1,0)-(1,5) = "begin"
            |   +-- statements:
            |   |   @ StatementsNode (location: (1,7)-(1,10))
            |   |   +-- body: (length: 1)
            |   |       +-- @ IntegerNode (location: (1,7)-(1,10))
            |   |           +-- IntegerBaseFlags: decimal
            |   |           +-- value: 117
            |   +-- rescue_clause: nil
            |   +-- else_clause: nil
            |   +-- ensure_clause: nil
            |   +-- end_keyword_loc: (1,12)-(1,15) = "end"
            +-- call_operator_loc: (1,15)-(1,16) = "."
            +-- name: :to_s
            +-- message_loc: (1,16)-(1,20) = "to_s"
            +-- opening_loc: nil
            +-- arguments: nil
            +-- closing_loc: nil
            +-- equal_loc: nil
            +-- block: nil
```
@launchable-app
Copy link

launchable-app bot commented Nov 12, 2025

2/33911 Tests Failed

test/rubygems/test_gem_package_tar_header_ractor.rb#test_decode_in_ractor
Error:
TestGemPackageTarHeaderRactor#test_decode_in_ractor:
Test::Unit::ProxyError: undefined method 'take' for class 'Ractor'
    D:/a/ruby/ruby/src/test/rubygems/test_gem_package_tar_header_ractor.rb:81:in 'TestGemPackageTarHeaderRactor#test_decode_in_ractor'

test/rubygems/test_gem_package_tar_header_ractor.rb#test_encode_in_ractor
Error:
TestGemPackageTarHeaderRactor#test_encode_in_ractor:
Test::Unit::ProxyError: undefined method 'take' for class 'Ractor'
    /Users/runner/work/ruby/ruby/src/test/rubygems/test_gem_package_tar_header_ractor.rb:91:in 'TestGemPackageTarHeaderRactor#test_encode_in_ractor'

[-> View Test suite health in main branch]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant