ruby_parser 3.20.1 → 3.20.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ruby26_parser.y CHANGED
@@ -1162,7 +1162,6 @@ rule
1162
1162
  | k_begin
1163
1163
  {
1164
1164
  lexer.cmdarg.push false
1165
- result = self.lexer.lineno
1166
1165
  }
1167
1166
  bodystmt k_end
1168
1167
  {
@@ -1319,9 +1318,6 @@ rule
1319
1318
  result = new_for iter, var, body
1320
1319
  }
1321
1320
  | k_class
1322
- {
1323
- result = self.lexer.lineno
1324
- }
1325
1321
  cpath superclass
1326
1322
  {
1327
1323
  if (self.in_def || self.in_single > 0) then
@@ -1336,9 +1332,6 @@ rule
1336
1332
  self.lexer.ignore_body_comments
1337
1333
  }
1338
1334
  | k_class tLSHFT
1339
- {
1340
- result = self.lexer.lineno
1341
- }
1342
1335
  expr
1343
1336
  {
1344
1337
  result = self.in_def
@@ -1357,9 +1350,6 @@ rule
1357
1350
  self.lexer.ignore_body_comments
1358
1351
  }
1359
1352
  | k_module
1360
- {
1361
- result = self.lexer.lineno
1362
- }
1363
1353
  cpath
1364
1354
  {
1365
1355
  yyerror "module definition in method body" if