Files
shaka-player/third_party/jsdoc/lib/jsdoc
Joey Parrish 8ba088a38f Generate externs automatically
We were not able to get our externs generated by the Closure compiler.
There were many issues with the Closure-generated externs, including
the order of the externs and the replacement of record types and enums
with their underlying types.

We made a few attempts to patch the compiler, but could not get our
patches accepted upstream.

This change introduces a new script to generate our externs from
scratch.  It uses a JavaScript parser called 'esprima'.

Some interfaces need to be exported to the generated externs, but are
not actually attached to the namespace by the compiler.  For this, we
introduce a new annotation.  These are the currently-supported export
annotations:

 - @export: truly exported (attached to namespace) by the compiler
 - @expose: truly exposed (not renamed) by the compiler
 - @exportDoc: considered part of the exports in the docs
 - @exportInterface: considered part of the exports in generated externs

These annotations are now documented in docs/design/export.md

Change-Id: I33bf7384889c14c9edb0fa5f11caa7c4f4d79af6
2017-02-01 11:42:16 -08:00
..
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2017-02-01 11:42:16 -08:00
2015-04-16 15:13:51 -07:00
2016-04-13 17:12:32 -07:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00
2014-12-19 14:26:19 -08:00

/*global env: true */

/**
 * Make the contents of a README file available to include in the output.
 * @module jsdoc/readme
 * @author Michael Mathews <micmath@gmail.com>
 * @author Ben Blank <ben.blank@gmail.com>
 */
'use strict';

var fs = require('jsdoc/fs'),
    markdown = require('jsdoc/util/markdown');

/**
 * @class
 * @classdesc Represents a README file.
 * @param {string} path - The filepath to the README.
 */
function ReadMe(path) {
    var content = fs.readFileSync(path, env.opts.encoding),
        parse = markdown.getParser();

    this.html = parse(content);
}

module.exports = ReadMe;