src/share/classes/com/sun/tools/javac/comp/Flow.java

changeset 1521
71f35e4b93a5
parent 1442
fcf89720ae71
child 1693
c430f1cde21c
equal deleted inserted replaced
1520:5c956be64b9e 1521:71f35e4b93a5
1 /* 1 /*
2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 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
33 import com.sun.tools.javac.tree.*; 33 import com.sun.tools.javac.tree.*;
34 import com.sun.tools.javac.util.*; 34 import com.sun.tools.javac.util.*;
35 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition; 35 import com.sun.tools.javac.util.JCDiagnostic.DiagnosticPosition;
36 36
37 import com.sun.tools.javac.code.Symbol.*; 37 import com.sun.tools.javac.code.Symbol.*;
38 import com.sun.tools.javac.comp.Resolve;
38 import com.sun.tools.javac.tree.JCTree.*; 39 import com.sun.tools.javac.tree.JCTree.*;
39 40
40 import static com.sun.tools.javac.code.Flags.*; 41 import static com.sun.tools.javac.code.Flags.*;
41 import static com.sun.tools.javac.code.Flags.BLOCK; 42 import static com.sun.tools.javac.code.Flags.BLOCK;
42 import static com.sun.tools.javac.code.Kinds.*; 43 import static com.sun.tools.javac.code.Kinds.*;
2173 2174
2174 void referenced(Symbol sym) { 2175 void referenced(Symbol sym) {
2175 unrefdResources.remove(sym); 2176 unrefdResources.remove(sym);
2176 } 2177 }
2177 2178
2179 public void visitAnnotatedType(JCAnnotatedType tree) {
2180 // annotations don't get scanned
2181 tree.underlyingType.accept(this);
2182 }
2183
2178 public void visitTopLevel(JCCompilationUnit tree) { 2184 public void visitTopLevel(JCCompilationUnit tree) {
2179 // Do nothing for TopLevel since each class is visited individually 2185 // Do nothing for TopLevel since each class is visited individually
2180 } 2186 }
2181 2187
2182 /************************************************************************** 2188 /**************************************************************************

mercurial