@@ -340,6 +340,29 @@ def test_scan_git
340340 Date: 2021-01-20 01:58:26 +0900
341341
342342 * 2021-01-20 [ci skip]
343+
344+ commit de5f8a92d5001799bedb3b1a271a2d9b23c6c8fb
345+ Author: Masataka Pocke Kuwabara <kuwabara@pocke.me>
346+ Date: 2021-01-01 14:25:08 +0900
347+
348+ Make args info for RubyVM::AST to available on endless method without parens
349+
350+ Problem
351+ ===
352+
353+ Arguments information is missing for endless method without parens.
354+ For example:
355+
356+ ```ruby
357+ # ok
358+ ```
359+
360+ It causes an error if a program expects `args` node exists.
361+
362+ Solution
363+ ===
364+
365+ Call `new_args` on this case.
343366ChangeLog
344367
345368 parser . scan
@@ -354,7 +377,18 @@ def test_scan_git
354377 head ( 2 , '2021-01-20' ) ,
355378 blank_line ,
356379 head ( 3 , '2021-01-20 01:58:26 +0900 git <svn-admin@ruby-lang.org>' ) ,
357- list ( :BULLET , item ( nil , para ( '2021-01-20 [ci skip]' ) ) ) )
380+ list ( :BULLET , item ( nil , para ( '2021-01-20 [ci skip]' ) ) ) ,
381+ head ( 2 , '2021-01-01' ) ,
382+ blank_line ,
383+ head ( 3 , '2021-01-01 14:25:08 +0900 Masataka Pocke Kuwabara <kuwabara@pocke.me>' ) ,
384+ para ( 'Make args info for RubyVM::AST to available on endless method without parens' ) ,
385+ head ( 4 , 'Problem' ) ,
386+ para ( "Arguments information is missing for endless method without parens.\n " +
387+ "For example:" ) ,
388+ verb ( "# ok\n " ) . tap { |v | v . format = :ruby } ,
389+ para ( 'It causes an error if a program expects <code>args</code> node exists.' ) ,
390+ head ( 4 , 'Solution' ) ,
391+ para ( 'Call <code>new_args</code> on this case.' ) )
358392
359393 expected . file = @top_level
360394
0 commit comments