ruby_parser 3.20.1 → 3.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/ruby27_parser.y CHANGED
@@ -1225,7 +1225,6 @@ rule
1225
1225
  | k_begin
1226
1226
  {
1227
1227
  lexer.cmdarg.push false
1228
- result = self.lexer.lineno
1229
1228
  }
1230
1229
  bodystmt k_end
1231
1230
  {
@@ -1388,9 +1387,6 @@ rule
1388
1387
  result = new_for iter, var, body
1389
1388
  }
1390
1389
  | k_class
1391
- {
1392
- result = self.lexer.lineno
1393
- }
1394
1390
  cpath superclass
1395
1391
  {
1396
1392
  if (self.in_def || self.in_single > 0) then
@@ -1405,9 +1401,6 @@ rule
1405
1401
  self.lexer.ignore_body_comments
1406
1402
  }
1407
1403
  | k_class tLSHFT
1408
- {
1409
- result = self.lexer.lineno
1410
- }
1411
1404
  expr
1412
1405
  {
1413
1406
  result = self.in_def
@@ -1426,9 +1419,6 @@ rule
1426
1419
  self.lexer.ignore_body_comments
1427
1420
  }
1428
1421
  | k_module
1429
- {
1430
- result = self.lexer.lineno
1431
- }
1432
1422
  cpath
1433
1423
  {
1434
1424
  yyerror "module definition in method body" if