code: public static boolean isNameDeclaration(Node n) {
      return n != null && (n.isVar() || n.isLet() || n.isConst());
    }
docs: Is this node a name declaration?
  
  @param n The node
  @return True if {@code n} is VAR, LET or CONST