Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
29
Frontend-Learner/node_modules/comment-parser/lib/parser/spec-parser.cjs
generated
vendored
Normal file
29
Frontend-Learner/node_modules/comment-parser/lib/parser/spec-parser.cjs
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
const util_js_1 = require("../util.cjs");
|
||||
|
||||
function getParser({
|
||||
tokenizers
|
||||
}) {
|
||||
return function parseSpec(source) {
|
||||
var _a;
|
||||
|
||||
let spec = (0, util_js_1.seedSpec)({
|
||||
source
|
||||
});
|
||||
|
||||
for (const tokenize of tokenizers) {
|
||||
spec = tokenize(spec);
|
||||
if ((_a = spec.problems[spec.problems.length - 1]) === null || _a === void 0 ? void 0 : _a.critical) break;
|
||||
}
|
||||
|
||||
return spec;
|
||||
};
|
||||
}
|
||||
|
||||
exports.default = getParser;
|
||||
//# sourceMappingURL=spec-parser.cjs.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue