ruby_parser 3.20.1 → 3.20.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/ruby20_parser.y CHANGED
@@ -1139,7 +1139,6 @@ rule
1139
1139
  | k_begin
1140
1140
  {
1141
1141
  lexer.cmdarg.push false
1142
- result = self.lexer.lineno
1143
1142
  }
1144
1143
  bodystmt k_end
1145
1144
  {
@@ -1296,9 +1295,6 @@ rule
1296
1295
  result = new_for iter, var, body
1297
1296
  }
1298
1297
  | k_class
1299
- {
1300
- result = self.lexer.lineno
1301
- }
1302
1298
  cpath superclass
1303
1299
  {
1304
1300
  if (self.in_def || self.in_single > 0) then
@@ -1313,9 +1309,6 @@ rule
1313
1309
  self.lexer.ignore_body_comments
1314
1310
  }
1315
1311
  | k_class tLSHFT
1316
- {
1317
- result = self.lexer.lineno
1318
- }
1319
1312
  expr
1320
1313
  {
1321
1314
  result = self.in_def
@@ -1334,9 +1327,6 @@ rule
1334
1327
  self.lexer.ignore_body_comments
1335
1328
  }
1336
1329
  | k_module
1337
- {
1338
- result = self.lexer.lineno
1339
- }
1340
1330
  cpath
1341
1331
  {
1342
1332
  yyerror "module definition in method body" if