code: private static boolean isClassFieldDeclaration(Node node) {
      return node.getParent().isScript()
          && node.isVar()
          && (!node.getFirstChild().hasChildren()
              || (node.getFirstFirstChild() != null
                  && NodeUtil.isLiteralValue(
                      node.getFirstFirstChild(), false /* includeFunctions */)));
    }
docs: Matches literal value declarations {@code var foo = 3;} or stub declarations like
  {@code var bar;}.