langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/tree/Pretty.java
changeset 44192 aff725b7874a
parent 42822 a84956e7ee4d
equal deleted inserted replaced
44191:adc8e954fe5b 44192:aff725b7874a
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, 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
   440     }
   440     }
   441 
   441 
   442     @Override
   442     @Override
   443     public void visitModuleDef(JCModuleDecl tree) {
   443     public void visitModuleDef(JCModuleDecl tree) {
   444         try {
   444         try {
       
   445             printDocComment(tree);
   445             printAnnotations(tree.mods.annotations);
   446             printAnnotations(tree.mods.annotations);
   446             if (tree.getModuleType() == ModuleKind.OPEN) {
   447             if (tree.getModuleType() == ModuleKind.OPEN) {
   447                 print("open ");
   448                 print("open ");
   448             }
   449             }
   449             print("module ");
   450             print("module ");