@@ -497,26 +497,14 @@ public RubyNode visitClassNode(Nodes.ClassNode node) {
497
497
node ,
498
498
defineOrGetClass ,
499
499
name ,
500
- node .statements ,
500
+ node .body ,
501
501
OpenModule .CLASS ,
502
502
shouldUseDynamicConstantLookupForModuleBody (node ));
503
503
504
504
assignNodePositionInSource (node , rubyNode );
505
505
return rubyNode ;
506
506
}
507
507
508
- public RubyNode visitClassVariableOperatorAndWriteNode (Nodes .ClassVariableOperatorAndWriteNode node ) {
509
- return defaultVisit (node );
510
- }
511
-
512
- public RubyNode visitClassVariableOperatorOrWriteNode (Nodes .ClassVariableOperatorOrWriteNode node ) {
513
- return defaultVisit (node );
514
- }
515
-
516
- public RubyNode visitClassVariableOperatorWriteNode (Nodes .ClassVariableOperatorWriteNode node ) {
517
- return defaultVisit (node );
518
- }
519
-
520
508
public RubyNode visitClassVariableReadNode (Nodes .ClassVariableReadNode node ) {
521
509
final RubyNode rubyNode = new ReadClassVariableNode (
522
510
getLexicalScopeNode ("class variable lookup" , node ),
@@ -537,18 +525,6 @@ public RubyNode visitClassVariableWriteNode(Nodes.ClassVariableWriteNode node) {
537
525
return rubyNode ;
538
526
}
539
527
540
- public RubyNode visitConstantOperatorAndWriteNode (Nodes .ConstantOperatorAndWriteNode node ) {
541
- return defaultVisit (node );
542
- }
543
-
544
- public RubyNode visitConstantOperatorOrWriteNode (Nodes .ConstantOperatorOrWriteNode node ) {
545
- return defaultVisit (node );
546
- }
547
-
548
- public RubyNode visitConstantOperatorWriteNode (Nodes .ConstantOperatorWriteNode node ) {
549
- return defaultVisit (node );
550
- }
551
-
552
528
public RubyNode visitConstantPathNode (Nodes .ConstantPathNode node ) {
553
529
assert node .child instanceof Nodes .ConstantReadNode ;
554
530
@@ -569,18 +545,6 @@ public RubyNode visitConstantPathNode(Nodes.ConstantPathNode node) {
569
545
return rubyNode ;
570
546
}
571
547
572
- public RubyNode visitConstantPathOperatorAndWriteNode (Nodes .ConstantPathOperatorAndWriteNode node ) {
573
- return defaultVisit (node );
574
- }
575
-
576
- public RubyNode visitConstantPathOperatorOrWriteNode (Nodes .ConstantPathOperatorOrWriteNode node ) {
577
- return defaultVisit (node );
578
- }
579
-
580
- public RubyNode visitConstantPathOperatorWriteNode (Nodes .ConstantPathOperatorWriteNode node ) {
581
- return defaultVisit (node );
582
- }
583
-
584
548
public RubyNode visitConstantPathWriteNode (Nodes .ConstantPathWriteNode node ) {
585
549
final Nodes .ConstantPathNode constantPathNode = node .target ;
586
550
final RubyNode moduleNode ;
@@ -737,18 +701,6 @@ public RubyNode visitForwardingSuperNode(Nodes.ForwardingSuperNode node) {
737
701
return defaultVisit (node );
738
702
}
739
703
740
- public RubyNode visitGlobalVariableOperatorAndWriteNode (Nodes .GlobalVariableOperatorAndWriteNode node ) {
741
- return defaultVisit (node );
742
- }
743
-
744
- public RubyNode visitGlobalVariableOperatorOrWriteNode (Nodes .GlobalVariableOperatorOrWriteNode node ) {
745
- return defaultVisit (node );
746
- }
747
-
748
- public RubyNode visitGlobalVariableOperatorWriteNode (Nodes .GlobalVariableOperatorWriteNode node ) {
749
- return defaultVisit (node );
750
- }
751
-
752
704
public RubyNode visitGlobalVariableReadNode (Nodes .GlobalVariableReadNode node ) {
753
705
final RubyNode rubyNode = ReadGlobalVariableNodeGen .create (toString (node ));
754
706
assignNodePositionInSource (node , rubyNode );
@@ -864,18 +816,6 @@ public RubyNode visitInNode(Nodes.InNode node) {
864
816
return defaultVisit (node );
865
817
}
866
818
867
- public RubyNode visitInstanceVariableOperatorAndWriteNode (Nodes .InstanceVariableOperatorAndWriteNode node ) {
868
- return defaultVisit (node );
869
- }
870
-
871
- public RubyNode visitInstanceVariableOperatorOrWriteNode (Nodes .InstanceVariableOperatorOrWriteNode node ) {
872
- return defaultVisit (node );
873
- }
874
-
875
- public RubyNode visitInstanceVariableOperatorWriteNode (Nodes .InstanceVariableOperatorWriteNode node ) {
876
- return defaultVisit (node );
877
- }
878
-
879
819
public RubyNode visitInstanceVariableReadNode (Nodes .InstanceVariableReadNode node ) {
880
820
final String name = toString (node );
881
821
final RubyNode rubyNode = new ReadInstanceVariableNode (name );
@@ -992,18 +932,6 @@ public RubyNode visitLambdaNode(Nodes.LambdaNode node) {
992
932
return defaultVisit (node );
993
933
}
994
934
995
- public RubyNode visitLocalVariableOperatorAndWriteNode (Nodes .LocalVariableOperatorAndWriteNode node ) {
996
- return defaultVisit (node );
997
- }
998
-
999
- public RubyNode visitLocalVariableOperatorOrWriteNode (Nodes .LocalVariableOperatorOrWriteNode node ) {
1000
- return defaultVisit (node );
1001
- }
1002
-
1003
- public RubyNode visitLocalVariableOperatorWriteNode (Nodes .LocalVariableOperatorWriteNode node ) {
1004
- return defaultVisit (node );
1005
- }
1006
-
1007
935
public RubyNode visitLocalVariableReadNode (Nodes .LocalVariableReadNode node ) {
1008
936
final String name = toString (node );
1009
937
@@ -1075,7 +1003,7 @@ public RubyNode visitModuleNode(Nodes.ModuleNode node) {
1075
1003
node ,
1076
1004
defineModuleNode ,
1077
1005
name ,
1078
- node .statements ,
1006
+ node .body ,
1079
1007
OpenModule .MODULE ,
1080
1008
shouldUseDynamicConstantLookupForModuleBody (node ));
1081
1009
@@ -1142,12 +1070,12 @@ public RubyNode visitOrNode(Nodes.OrNode node) {
1142
1070
}
1143
1071
1144
1072
public RubyNode visitParenthesesNode (Nodes .ParenthesesNode node ) {
1145
- if (node .statements == null ) {
1073
+ if (node .body == null ) {
1146
1074
final RubyNode rubyNode = new NilLiteralNode (true );
1147
1075
assignNodePositionInSource (node , rubyNode );
1148
1076
return rubyNode ;
1149
1077
}
1150
- return node .statements .accept (this );
1078
+ return node .body .accept (this );
1151
1079
}
1152
1080
1153
1081
public RubyNode visitPinnedExpressionNode (Nodes .PinnedExpressionNode node ) {
0 commit comments