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/ruby21_parser.y CHANGED
@@ -1137,7 +1137,6 @@ rule
1137
1137
  | k_begin
1138
1138
  {
1139
1139
  lexer.cmdarg.push false
1140
- result = self.lexer.lineno
1141
1140
  }
1142
1141
  bodystmt k_end
1143
1142
  {
@@ -1294,9 +1293,6 @@ rule
1294
1293
  result = new_for iter, var, body
1295
1294
  }
1296
1295
  | k_class
1297
- {
1298
- result = self.lexer.lineno
1299
- }
1300
1296
  cpath superclass
1301
1297
  {
1302
1298
  if (self.in_def || self.in_single > 0) then
@@ -1311,9 +1307,6 @@ rule
1311
1307
  self.lexer.ignore_body_comments
1312
1308
  }
1313
1309
  | k_class tLSHFT
1314
- {
1315
- result = self.lexer.lineno
1316
- }
1317
1310
  expr
1318
1311
  {
1319
1312
  result = self.in_def
@@ -1332,9 +1325,6 @@ rule
1332
1325
  self.lexer.ignore_body_comments
1333
1326
  }
1334
1327
  | k_module
1335
- {
1336
- result = self.lexer.lineno
1337
- }
1338
1328
  cpath
1339
1329
  {
1340
1330
  yyerror "module definition in method body" if