summaryrefslogtreecommitdiff
path: root/lib/prism/parse_result/newlines.rb
AgeCommit message (Collapse)Author
2025-05-29[ruby/prism] [DOC] Specify markdown mode to RDocNobuyoshi Nakada
https://.com/ruby/prism/commit/12af4e144e
2025-02-13[ruby/prism] No writing to numbered parametersKevin Newton
Fixes [Bug #21117] https://.com/ruby/prism/commit/19d4bab5a0
2024-07-11[ruby/prism] Expose flags on every node typeKevin Newton
https://.com/ruby/prism/commit/9f12a56fd6
2024-06-03[ruby/prism] Fix up steep issuesKevin Newton
https://.com/ruby/prism/commit/21d314eb2e
2024-05-13[ruby/prism] Autoload newlines and comment visitorsKevin Newton
Having the @newline instance variable in every node adds up, and since it is so rarely used, we only want to add it when necessary. Moving this into an autoloaded file and moving the instance variable out of the default initializers reduces allocated memory because the nodes are now smaller and some fit into the compact list. On my machine, I'm seeing about an 8% drop. https://.com/ruby/prism/commit/eea92c07d2
2024-05-10[ruby/prism] Fix tapioca require orderKevin Newton
https://.com/ruby/prism/commit/15bf727881
2024-04-19[ruby/prism] Split parse result based on typeKevin Newton
https://.com/ruby/prism/commit/17194e096d
2024-03-06[ruby/prism] Fix some type-checking errors by using different method callsUfuk Kayserilioglu
For example, use `.fetch` or `.dig` instead of `[]`, and use `===` instead of `is_a?` for checking types of objects. https://.com/ruby/prism/commit/548b54915f
2024-02-24[ruby/prism] Replace awkward code changes with steep:ignoreGopal Patel
Also remove RBS for currently ignored files. Will follow-up when those check fully in later PRs. https://.com/ruby/prism/commit/2cae58f86d
2024-02-24[ruby/prism] Split private typesGopal Patel
https://.com/ruby/prism/commit/0209d093ec
2023-11-01[ruby/prism] More Ruby docsKevin Newton
https://.com/ruby/prism/commit/ca9a660f52
2023-09-27Sync to prism rename commitsKevin Newton
2023-09-27Rename YARP filepaths to prism filepathsKevin Newton