ruby_parser 3.20.1 → 3.20.2

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