Ejemplo n.º 1
0
 @Override
 public void visitVarDef(JCVariableDecl tree) {
   super.visitVarDef(tree);
   if (tree.sym != null && tree.sym.kind == Kinds.VAR && !isParameter(tree.sym)) {
     docenv.makeFieldDoc(tree.sym, docenv.getTreePath(env.toplevel, env.enclClass, tree));
   }
 }
Ejemplo n.º 2
0
 public void visitVarDef(VarDef tree) {
   super.visitVarDef(tree);
   if (tree.sym != null && tree.sym.kind == Kinds.VAR && !isParameter(tree.sym)) {
     String docComment = env.toplevel.docComments.get(tree);
     docenv.makeFieldDoc((VarSymbol) tree.sym, docComment, tree);
   }
 }