1520:5c956be64b9e | 1521:71f35e4b93a5 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2013, 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 |
82 | 82 |
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.recvparam); | |
87 scan(tree.params); | 88 scan(tree.params); |
88 scan(tree.thrown); | 89 scan(tree.thrown); |
89 scan(tree.defaultValue); | 90 scan(tree.defaultValue); |
90 scan(tree.body); | 91 scan(tree.body); |
91 } | 92 } |
198 scan(tree.args); | 199 scan(tree.args); |
199 } | 200 } |
200 | 201 |
201 public void visitNewClass(JCNewClass tree) { | 202 public void visitNewClass(JCNewClass tree) { |
202 scan(tree.encl); | 203 scan(tree.encl); |
204 scan(tree.typeargs); | |
203 scan(tree.clazz); | 205 scan(tree.clazz); |
204 scan(tree.typeargs); | |
205 scan(tree.args); | 206 scan(tree.args); |
206 scan(tree.def); | 207 scan(tree.def); |
207 } | 208 } |
208 | 209 |
209 public void visitNewArray(JCNewArray tree) { | 210 public void visitNewArray(JCNewArray tree) { |
211 scan(tree.annotations); | |
210 scan(tree.elemtype); | 212 scan(tree.elemtype); |
211 scan(tree.dims); | 213 scan(tree.dims); |
214 for (List<JCAnnotation> annos : tree.dimAnnotations) | |
215 scan(annos); | |
212 scan(tree.elems); | 216 scan(tree.elems); |
213 } | 217 } |
214 | 218 |
215 public void visitLambda(JCLambda tree) { | 219 public void visitLambda(JCLambda tree) { |
216 scan(tree.body); | 220 scan(tree.body); |
289 public void visitTypeIntersection(JCTypeIntersection tree) { | 293 public void visitTypeIntersection(JCTypeIntersection tree) { |
290 scan(tree.bounds); | 294 scan(tree.bounds); |
291 } | 295 } |
292 | 296 |
293 public void visitTypeParameter(JCTypeParameter tree) { | 297 public void visitTypeParameter(JCTypeParameter tree) { |
298 scan(tree.annotations); | |
294 scan(tree.bounds); | 299 scan(tree.bounds); |
295 } | 300 } |
296 | 301 |
297 @Override | 302 @Override |
298 public void visitWildcard(JCWildcard tree) { | 303 public void visitWildcard(JCWildcard tree) { |
312 public void visitAnnotation(JCAnnotation tree) { | 317 public void visitAnnotation(JCAnnotation tree) { |
313 scan(tree.annotationType); | 318 scan(tree.annotationType); |
314 scan(tree.args); | 319 scan(tree.args); |
315 } | 320 } |
316 | 321 |
322 public void visitAnnotatedType(JCAnnotatedType tree) { | |
323 scan(tree.annotations); | |
324 scan(tree.underlyingType); | |
325 } | |
326 | |
317 public void visitErroneous(JCErroneous tree) { | 327 public void visitErroneous(JCErroneous tree) { |
318 } | 328 } |
319 | 329 |
320 public void visitLetExpr(LetExpr tree) { | 330 public void visitLetExpr(LetExpr tree) { |
321 scan(tree.defs); | 331 scan(tree.defs); |