code: function(node) {
  
          var leadingComments = node.leadingComments || [],
              trailingComments = node.trailingComments || [];
  
          /*
           * espree adds a "comments" array on Program nodes rather than
           * leadingComments/trailingComments. Comments are only left in the
           * Program node comments array if there is no executable code.
           */
          if (node.type === "Program") {
              if (node.body.length === 0) {
                  leadingComments = node.comments;
              }
          }
  
          return {
              leading: leadingComments,
              trailing: trailingComments
          };
      }
docs: Gets all comments for the given node.
  @param {ASTNode} node The AST node to get the comments for.
  @returns {Object} The list of comments indexed by their position.
  @public