langtools/src/share/classes/com/sun/tools/javac/comp/Flow.java
changeset 24069 dfb8f11542fc
parent 24066 1dfb66929538
child 24218 9102c46a15dc
equal deleted inserted replaced
24068:d8a1180faaa9 24069:dfb8f11542fc
   386                     tree.type == null ||
   386                     tree.type == null ||
   387                     tree.type != Type.stuckType)) {
   387                     tree.type != Type.stuckType)) {
   388                 super.scan(tree);
   388                 super.scan(tree);
   389             }
   389             }
   390         }
   390         }
       
   391 
       
   392         public void visitPackageDef(JCPackageDecl tree) {
       
   393             // Do nothing for PackageDecl
       
   394         }
   391     }
   395     }
   392 
   396 
   393     /**
   397     /**
   394      * This pass implements the first step of the dataflow analysis, namely
   398      * This pass implements the first step of the dataflow analysis, namely
   395      * the liveness analysis check. This checks that every statement is reachable.
   399      * the liveness analysis check. This checks that every statement is reachable.
   721                 pendingExits = prevPending;
   725                 pendingExits = prevPending;
   722                 alive = prevAlive;
   726                 alive = prevAlive;
   723             }
   727             }
   724         }
   728         }
   725 
   729 
   726         public void visitTopLevel(JCCompilationUnit tree) {
       
   727             // Do nothing for TopLevel since each class is visited individually
       
   728         }
       
   729 
       
   730     /**************************************************************************
   730     /**************************************************************************
   731      * main method
   731      * main method
   732      *************************************************************************/
   732      *************************************************************************/
   733 
   733 
   734         /** Perform definite assignment/unassignment analysis on a tree.
   734         /** Perform definite assignment/unassignment analysis on a tree.
  1285             } finally {
  1285             } finally {
  1286                 pendingExits = prevPending;
  1286                 pendingExits = prevPending;
  1287                 caught = prevCaught;
  1287                 caught = prevCaught;
  1288                 thrown = prevThrown;
  1288                 thrown = prevThrown;
  1289             }
  1289             }
  1290         }
       
  1291 
       
  1292         public void visitTopLevel(JCCompilationUnit tree) {
       
  1293             // Do nothing for TopLevel since each class is visited individually
       
  1294         }
  1290         }
  1295 
  1291 
  1296     /**************************************************************************
  1292     /**************************************************************************
  1297      * main method
  1293      * main method
  1298      *************************************************************************/
  1294      *************************************************************************/
  2355         public void visitAnnotatedType(JCAnnotatedType tree) {
  2351         public void visitAnnotatedType(JCAnnotatedType tree) {
  2356             // annotations don't get scanned
  2352             // annotations don't get scanned
  2357             tree.underlyingType.accept(this);
  2353             tree.underlyingType.accept(this);
  2358         }
  2354         }
  2359 
  2355 
  2360         public void visitTopLevel(JCCompilationUnit tree) {
       
  2361             // Do nothing for TopLevel since each class is visited individually
       
  2362         }
       
  2363 
       
  2364     /**************************************************************************
  2356     /**************************************************************************
  2365      * main method
  2357      * main method
  2366      *************************************************************************/
  2358      *************************************************************************/
  2367 
  2359 
  2368         /** Perform definite assignment/unassignment analysis on a tree.
  2360         /** Perform definite assignment/unassignment analysis on a tree.
  2675                 default:
  2667                 default:
  2676                     scan(tree.arg);
  2668                     scan(tree.arg);
  2677             }
  2669             }
  2678         }
  2670         }
  2679 
  2671 
  2680         public void visitTopLevel(JCCompilationUnit tree) {
       
  2681             // Do nothing for TopLevel since each class is visited individually
       
  2682         }
       
  2683 
       
  2684     /**************************************************************************
  2672     /**************************************************************************
  2685      * main method
  2673      * main method
  2686      *************************************************************************/
  2674      *************************************************************************/
  2687 
  2675 
  2688         /** Perform definite assignment/unassignment analysis on a tree.
  2676         /** Perform definite assignment/unassignment analysis on a tree.