summaryrefslogtreecommitdiff
path: root/test/prism/errors_test.rb
AgeCommit message (Collapse)Author
2023-11-22[ruby/prism] Reject statements at non-statement posisionsTSUYUSATO Kitsune
Fix https://github.com/ruby/prism/pull/1547 https://github.com/ruby/prism/commit/cdb643aeab
2023-11-22[ruby/prism] Move CallNode#name field between receiver and argumentsBenoit Daloze
* The same order as in source code. * CallOrWriteNode, CallOperatorWriteNode, CallAndWriteNode already have the correct order so it was also inconsistent with them. https://github.com/ruby/prism/commit/4434e4bc22
2023-11-21[ruby/prism] Fix `..` and `...` to be non-associativeHiroya Fujinami
(https://github.com/ruby/prism/pull/1837) Fix https://github.com/ruby/prism/pull/1829 https://github.com/ruby/prism/commit/90b0b1974c Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2023-11-21[ruby/prism] Warning for ENDs in methodsHaldun Bayhantopcu
(https://github.com/ruby/prism/pull/1899) https://github.com/ruby/prism/commit/1b41c2d56c
2023-11-21[ruby/prism] Check a token after targets more strictlyHiroya Fujinami
(https://github.com/ruby/prism/pull/1878) Fix https://github.com/ruby/prism/pull/1832 https://github.com/ruby/prism/commit/060bcc81a8
2023-11-21[ruby/prism] Build the ability to format errorsKevin Newton
(https://github.com/ruby/prism/pull/1796) Previously, we only supported error messages that were constant strings. This works for the most part, but there are some times where we want to include some part of the source in the error message to make it better. For example, instead of "Token is reserved" it's better to write "_1 is reserved". To do this, we now support allocating error messages at runtime that are built around format strings. https://github.com/ruby/prism/commit/7e6aa17deb
2023-11-21[ruby/prism] Split up CaseNode and CaseMatchNodeKevin Newton
(https://github.com/ruby/prism/pull/1801) https://github.com/ruby/prism/commit/4c1391ea56
2023-11-20[ruby/prism] Disallow defining a numbered parameter methodKevin Newton
(https://github.com/ruby/prism/pull/1797) https://github.com/ruby/prism/commit/c13165e6aa
2023-11-20[ruby/prism] Fix parsing `...` in argumentsHiroya Fujinami
(https://github.com/ruby/prism/pull/1882) * Fix parsing `...` in arguments Fix https://github.com/ruby/prism/pull/1830 Fix https://github.com/ruby/prism/pull/1831 * Rename the constant name to PM_ERR_ARGUMENT_FORWARDING_UNBOUND https://github.com/ruby/prism/pull/1882#discussion_r1398461156 https://github.com/ruby/prism/commit/519653aec2
2023-11-17[ruby/prism] Do not allow trailing commas in calls without parenthesisHaldun Bayhantopcu
https://github.com/ruby/prism/commit/f1d56da58f
2023-11-14Resync prism delete bin/dotKevin Newton
2023-11-14[ruby/prism] Check value expressions on creating a nodeTSUYUSATO Kitsune
https://github.com/ruby/prism/commit/d60948bac3
2023-11-14[ruby/prism] Check value expressions on parsing arguments and assignmentsTSUYUSATO Kitsune
They are corresponding to `arg_value` in `parse.y`. https://github.com/ruby/prism/commit/a4a4834e0d
2023-11-14[ruby/prism] Check value expressions on parsing arguments and assignmentsTSUYUSATO Kitsune
They are corresponding to `arg_value` in `parse.y`. https://github.com/ruby/prism/commit/a4a4834e0d
2023-11-14[ruby/prism] Check value expressions on creating a nodeTSUYUSATO Kitsune
https://github.com/ruby/prism/commit/d60948bac3
2023-11-14[ruby/prism] Check value expressions on parsing arguments and assignmentsTSUYUSATO Kitsune
They are corresponding to `arg_value` in `parse.y`. https://github.com/ruby/prism/commit/a4a4834e0d
2023-11-14[ruby/prism] Add parse_value_expressionTSUYUSATO Kitsune
https://github.com/ruby/prism/commit/37fad74134
2023-11-13[ruby/prism] Add tests for error cases on #1791, #1807, and #1810TSUYUSATO Kitsune
https://github.com/ruby/prism/commit/231e965124
2023-11-10[ruby/prism] Remove extra locals added by ...Kevin Newton
https://github.com/ruby/prism/commit/b7850f2d30
2023-11-01[ruby/prism] Disallow assigning to numbered parameters in regexpKevin Newton
https://github.com/ruby/prism/commit/ec419422f8
2023-11-01[ruby/prism] Flip incorrect names of OptionalKeywordParameterNode and ↵Jemma Issroff
RequiredKeywordParameterNode https://github.com/ruby/prism/commit/c31f61e898
2023-11-01[ruby/prism] Split KeywordParameterNode into Optional and RequiredJemma Issroff
Prior to this commit, KeywordParameterNode included both optional and required keywords. With this commit, it is split in two, with `OptionalKeywordParameterNode`s no longer having a value field. https://github.com/ruby/prism/commit/89084d9af4
2023-10-26[ruby/prism] Ensure no extra multi-target nodes are created for splatsKevin Newton
https://github.com/ruby/prism/commit/e60240d54b
2023-10-26[ruby/prism] Add KeywordSplat flag to ArgumentsNodeJemma Issroff
Method calls with keyword splat args compile differently than without since they merge the keyword arg hash with the keyword splat hash. We know this information at parse time, so can set a flag which the compiler can use. https://github.com/ruby/prism/commit/e5f8a9a3cd
2023-10-18[ruby/prism] Add * and & to methods with ...Kevin Newton
https://github.com/ruby/prism/commit/e8114a786a
2023-10-13[ruby/prism] Fix up PR failingsKevin Newton
https://github.com/ruby/prism/commit/11255f636e
2023-10-12[ruby/prism] Fix parsing symbols in strings after labelsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/e16531650d
2023-10-06[ruby/prism] Emit error when assigning to a numbered parameterHaldun Bayhantopcu
https://github.com/ruby/prism/commit/66248ac2f6
2023-10-05[ruby/prism] Check for duplicate parameter names in destructured paramsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/c3438aabea
2023-10-05[ruby/prism] Check for duplicate names in shadow argsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/e100c6b8ae
2023-10-05[ruby/prism] Fix parsing shadow args in lambda blocksHaldun Bayhantopcu
https://github.com/ruby/prism/commit/53efaf252d
2023-10-02Sync with prism CallNode#name changesBenoit Daloze
* https://github.com/ruby/prism/pull/1533
2023-09-28[ruby/prism] Check whether the predicate is closed for conditionalsHaldun Bayhantopcu
https://github.com/ruby/prism/commit/bf43006d0a
2023-09-28[ruby/prism] Check for a semicolon or a newline after the inheritance operatorHaldun Bayhantopcu
https://github.com/ruby/prism/commit/0326ba6775
2023-09-28[ruby/prism] Fix assertion failure for fwd params after restHaldun Bayhantopcu
https://github.com/ruby/prism/commit/f86bff6dd7
2023-09-27Sync to prism rename commitsKevin Newton
2023-09-27Rename YARP filepaths to prism filepathsKevin Newton