components/node_modules/vue-docgen-api/dist/parse.js
/**
 * parses the source at filePath and returns the doc
 * @param opt ParseOptions containing the filePath and the rest of the options
 * @param documentation documentation to be enriched if needed
 * @returns {object} documentation object
 */
parses the source at filePath and returns the doc
@param opt ParseOptions containing the filePath and the rest of the options
@param documentation documentation to be enriched if needed
@returns {object} documentation object
parses the source at filePath and returns the doc @param opt ParseOptions containing the filePath and the rest of the options @param documentation documentation to be enriched if needed @returns { object } documentation object
function parseFile(opt, documentation) {
    return __awaiter(this, void 0, void 0, function () {
        var source;
        return __generator(this, function (_a) {
            switch (_a.label) {
                case 0: return [4 , read(opt.filePath, {
                        encoding: 'utf-8'
                    })];
                case 1:
                    source = _a.sent();
                    return [2 , parseSource(source, opt, documentation)];
            }
        });
    });
}
function parseFile ( opt , documentation ) { return __awaiter ( this , void 0 , void 0 , function ( ) { var source ; return __generator ( this , function ( _a ) { switch ( _a . label ) { case 0 : return [ 4 , read ( opt . filePath , { encoding : 'utf-8' } ) ] ; case 1 : source = _a . sent ( ) ; return [ 2 , parseSource ( source , opt , documentation ) ] ; } } ) ; } ) ; }
parses the source at filePath and returns the doc
 @param opt ParseOptions containing the filePath and the rest of the options
 @param documentation documentation to be enriched if needed
 @returns {object} documentation object
parses the source at filePath and returns the doc @param opt ParseOptions containing the filePath and the rest of the options @param documentation documentation to be enriched if needed @returns { object } documentation object
/*yield*/ /*return*/