add missing semicolons
This commit is contained in:
parent
16502488b9
commit
ada45d5800
@ -95,11 +95,11 @@ export function getOptions(opts) {
|
|||||||
options[opt] = opts && has(opts, opt) ? opts[opt] : defaultOptions[opt];
|
options[opt] = opts && has(opts, opt) ? opts[opt] : defaultOptions[opt];
|
||||||
|
|
||||||
if (Array.isArray(options.onToken)) {
|
if (Array.isArray(options.onToken)) {
|
||||||
let tokens = options.onToken
|
let tokens = options.onToken;
|
||||||
options.onToken = (token) => tokens.push(token)
|
options.onToken = (token) => tokens.push(token);
|
||||||
}
|
}
|
||||||
if (Array.isArray(options.onComment)) {
|
if (Array.isArray(options.onComment)) {
|
||||||
options.onComment = pushComment(options, options.onComment)
|
options.onComment = pushComment(options, options.onComment);
|
||||||
}
|
}
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
|||||||
@ -784,19 +784,18 @@ export default function (instance) {
|
|||||||
|
|
||||||
instance.extend("parseImportSpecifiers", function (inner) {
|
instance.extend("parseImportSpecifiers", function (inner) {
|
||||||
return function (node) {
|
return function (node) {
|
||||||
node.importKind = "value"
|
node.importKind = "value";
|
||||||
var kind =
|
|
||||||
(this.type === tt._typeof ? "typeof" :
|
var kind = (this.type === tt._typeof ? "typeof" : (this.isContextual("type") ? "type" : null));
|
||||||
(this.isContextual("type") ? "type" : null))
|
|
||||||
if (kind) {
|
if (kind) {
|
||||||
var lh = this.lookahead()
|
var lh = this.lookahead();
|
||||||
if ((lh.type === tt.name && lh.value !== "from") || lh.type === tt.braceL || lh.type === tt.star) {
|
if ((lh.type === tt.name && lh.value !== "from") || lh.type === tt.braceL || lh.type === tt.star) {
|
||||||
this.next()
|
this.next();
|
||||||
node.importKind = kind
|
node.importKind = kind;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inner.call(this, node)
|
inner.call(this, node);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user