You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
622 B
28 lines
622 B
2 years ago
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.types = exports.TokContext = void 0;
|
||
|
class TokContext {
|
||
|
constructor(token, preserveSpace) {
|
||
|
this.token = void 0;
|
||
|
this.preserveSpace = void 0;
|
||
|
this.token = token;
|
||
|
this.preserveSpace = !!preserveSpace;
|
||
|
}
|
||
|
}
|
||
|
exports.TokContext = TokContext;
|
||
|
const types = {
|
||
|
brace: new TokContext("{"),
|
||
|
j_oTag: new TokContext("<tag"),
|
||
|
j_cTag: new TokContext("</tag"),
|
||
|
j_expr: new TokContext("<tag>...</tag>", true)
|
||
|
};
|
||
|
exports.types = types;
|
||
|
{
|
||
|
types.template = new TokContext("`", true);
|
||
|
}
|
||
|
|
||
|
//# sourceMappingURL=context.js.map
|