"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const t = require("@babel/types");
const parser_1 = require("@babel/parser");
const traverse_1 = require("@babel/traverse");
exports.default = (content, collect) => {
    const ast = (0, parser_1.parse)(content, {
        sourceType: 'module',
    });
    (0, traverse_1.default)(ast, {
        ObjectExpression(path) {
            if (path.parentPath && t.isExportDefaultDeclaration(path.parentPath)) {
                path.node.properties.forEach((v) => {
                    collect.classMethods[v.key.name] = v.value.body.body;
                });
            }
        },
    });
};
