equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
83 public void visitMethodDef(JCMethodDecl tree) { |
83 public void visitMethodDef(JCMethodDecl tree) { |
84 scan(tree.mods); |
84 scan(tree.mods); |
85 scan(tree.restype); |
85 scan(tree.restype); |
86 scan(tree.typarams); |
86 scan(tree.typarams); |
87 scan(tree.params); |
87 scan(tree.params); |
88 scan(tree.receiverAnnotations); |
|
89 scan(tree.thrown); |
88 scan(tree.thrown); |
90 scan(tree.defaultValue); |
89 scan(tree.defaultValue); |
91 scan(tree.body); |
90 scan(tree.body); |
92 } |
91 } |
93 |
92 |
206 scan(tree.args); |
205 scan(tree.args); |
207 scan(tree.def); |
206 scan(tree.def); |
208 } |
207 } |
209 |
208 |
210 public void visitNewArray(JCNewArray tree) { |
209 public void visitNewArray(JCNewArray tree) { |
211 scan(tree.annotations); |
|
212 scan(tree.elemtype); |
210 scan(tree.elemtype); |
213 scan(tree.dims); |
211 scan(tree.dims); |
214 for (List<JCTypeAnnotation> annos : tree.dimAnnotations) |
|
215 scan(annos); |
|
216 scan(tree.elems); |
212 scan(tree.elems); |
217 } |
213 } |
218 |
214 |
219 public void visitParens(JCParens tree) { |
215 public void visitParens(JCParens tree) { |
220 scan(tree.expr); |
216 scan(tree.expr); |
279 public void visitTypeDisjunction(JCTypeDisjunction tree) { |
275 public void visitTypeDisjunction(JCTypeDisjunction tree) { |
280 scan(tree.alternatives); |
276 scan(tree.alternatives); |
281 } |
277 } |
282 |
278 |
283 public void visitTypeParameter(JCTypeParameter tree) { |
279 public void visitTypeParameter(JCTypeParameter tree) { |
284 scan(tree.annotations); |
|
285 scan(tree.bounds); |
280 scan(tree.bounds); |
286 } |
281 } |
287 |
282 |
288 @Override |
283 @Override |
289 public void visitWildcard(JCWildcard tree) { |
284 public void visitWildcard(JCWildcard tree) { |
303 public void visitAnnotation(JCAnnotation tree) { |
298 public void visitAnnotation(JCAnnotation tree) { |
304 scan(tree.annotationType); |
299 scan(tree.annotationType); |
305 scan(tree.args); |
300 scan(tree.args); |
306 } |
301 } |
307 |
302 |
308 public void visitAnnotatedType(JCAnnotatedType tree) { |
|
309 scan(tree.annotations); |
|
310 scan(tree.underlyingType); |
|
311 } |
|
312 |
|
313 public void visitErroneous(JCErroneous tree) { |
303 public void visitErroneous(JCErroneous tree) { |
314 } |
304 } |
315 |
305 |
316 public void visitLetExpr(LetExpr tree) { |
306 public void visitLetExpr(LetExpr tree) { |
317 scan(tree.defs); |
307 scan(tree.defs); |