ada.editor/src/org/netbeans/modules/ada/editor/ast/nodes/visitors/DefaultVisitor.java
1.1 --- a/ada.editor/src/org/netbeans/modules/ada/editor/ast/nodes/visitors/DefaultVisitor.java Wed Sep 23 02:06:44 2009 +0200
1.2 +++ b/ada.editor/src/org/netbeans/modules/ada/editor/ast/nodes/visitors/DefaultVisitor.java Sun Aug 22 23:37:11 2010 +0200
1.3 @@ -56,6 +56,7 @@
1.4 import org.netbeans.modules.ada.editor.ast.nodes.GotoStatement;
1.5 import org.netbeans.modules.ada.editor.ast.nodes.Identifier;
1.6 import org.netbeans.modules.ada.editor.ast.nodes.IfStatement;
1.7 +import org.netbeans.modules.ada.editor.ast.nodes.InfixExpression;
1.8 import org.netbeans.modules.ada.editor.ast.nodes.LoopStatement;
1.9 import org.netbeans.modules.ada.editor.ast.nodes.MethodDeclaration;
1.10 import org.netbeans.modules.ada.editor.ast.nodes.NullStatement;
1.11 @@ -67,6 +68,7 @@
1.12 import org.netbeans.modules.ada.editor.ast.nodes.Program;
1.13 import org.netbeans.modules.ada.editor.ast.nodes.QualifiedExpression;
1.14 import org.netbeans.modules.ada.editor.ast.nodes.RaiseStatement;
1.15 +import org.netbeans.modules.ada.editor.ast.nodes.Range;
1.16 import org.netbeans.modules.ada.editor.ast.nodes.Reference;
1.17 import org.netbeans.modules.ada.editor.ast.nodes.ReturnStatement;
1.18 import org.netbeans.modules.ada.editor.ast.nodes.Scalar;
1.19 @@ -127,6 +129,22 @@
1.20 scan(node.getStatements());
1.21 }
1.22
1.23 + public void visit(BlockStatement node) {
1.24 + scan(node.getLabel());
1.25 + scan(node.getDeclarations());
1.26 + scan(node.getBody());
1.27 + }
1.28 +
1.29 + public void visit(CaseStatement node) {
1.30 + scan(node.getExpression());
1.31 + scan(node.getBody());
1.32 + }
1.33 +
1.34 + public void visit(CaseWhen node) {
1.35 + scan(node.getValue());
1.36 + scan(node.getActions());
1.37 + }
1.38 +
1.39 public void visit(CodeStatement node) {
1.40 scan(node.getExpression());
1.41 }
1.42 @@ -158,6 +176,17 @@
1.43 public void visit(Identifier node) {
1.44 }
1.45
1.46 + public void visit(IfStatement node) {
1.47 + scan(node.getCondition());
1.48 + scan(node.getTrueStatement());
1.49 + scan(node.getFalseStatement());
1.50 + }
1.51 +
1.52 + public void visit(InfixExpression node) {
1.53 + scan(node.getLeft());
1.54 + scan(node.getRight());
1.55 + }
1.56 +
1.57 public void visit(LoopStatement node) {
1.58 scan(node.getCondition());
1.59 scan(node.getBody());
1.60 @@ -193,6 +222,11 @@
1.61 scan(node.getBody());
1.62 }
1.63
1.64 + public void visit(PackageRenames node) {
1.65 + scan(node.getName());
1.66 + scan(node.getPackageRenames());
1.67 + }
1.68 +
1.69 public void visit(Program node) {
1.70 scan(node.getStatements());
1.71 }
1.72 @@ -202,6 +236,11 @@
1.73 scan(node.getExpression());
1.74 }
1.75
1.76 + public void visit(Range node) {
1.77 + scan(node.getLeft());
1.78 + scan(node.getRight());
1.79 + }
1.80 +
1.81 public void visit(Reference node) {
1.82 scan(node.getExpression());
1.83 }
1.84 @@ -223,7 +262,7 @@
1.85 scan(node.getParentType());
1.86 }
1.87
1.88 - public void visit(TaskName node) {
1.89 + public void visit(TaskName node) {
1.90 scan(node.getTaskName());
1.91 }
1.92
1.93 @@ -263,33 +302,6 @@
1.94 scan(node.getPackages());
1.95 }
1.96
1.97 - public void visit(BlockStatement node) {
1.98 - scan(node.getLabel());
1.99 - scan(node.getDeclarations());
1.100 - scan(node.getBody());
1.101 - }
1.102 -
1.103 - public void visit(CaseStatement node) {
1.104 - scan(node.getExpression());
1.105 - scan(node.getBody());
1.106 - }
1.107 -
1.108 - public void visit(CaseWhen node) {
1.109 - scan(node.getValue());
1.110 - scan(node.getActions());
1.111 - }
1.112 -
1.113 - public void visit(IfStatement node) {
1.114 - scan(node.getCondition());
1.115 - scan(node.getTrueStatement());
1.116 - scan(node.getFalseStatement());
1.117 - }
1.118 -
1.119 - public void visit(PackageRenames node) {
1.120 - scan(node.getName());
1.121 - scan(node.getPackageRenames());
1.122 - }
1.123 -
1.124 public void visit(UnaryOperation node) {
1.125 scan(node.getExpression());
1.126 }