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];
|
||||
|
||||
if (Array.isArray(options.onToken)) {
|
||||
let tokens = options.onToken
|
||||
options.onToken = (token) => tokens.push(token)
|
||||
let tokens = options.onToken;
|
||||
options.onToken = (token) => tokens.push(token);
|
||||
}
|
||||
if (Array.isArray(options.onComment)) {
|
||||
options.onComment = pushComment(options, options.onComment)
|
||||
options.onComment = pushComment(options, options.onComment);
|
||||
}
|
||||
|
||||
return options;
|
||||
|
||||
@ -784,19 +784,18 @@ export default function (instance) {
|
||||
|
||||
instance.extend("parseImportSpecifiers", function (inner) {
|
||||
return function (node) {
|
||||
node.importKind = "value"
|
||||
var kind =
|
||||
(this.type === tt._typeof ? "typeof" :
|
||||
(this.isContextual("type") ? "type" : null))
|
||||
node.importKind = "value";
|
||||
|
||||
var kind = (this.type === tt._typeof ? "typeof" : (this.isContextual("type") ? "type" : null));
|
||||
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) {
|
||||
this.next()
|
||||
node.importKind = kind
|
||||
this.next();
|
||||
node.importKind = kind;
|
||||
}
|
||||
}
|
||||
|
||||
inner.call(this, node)
|
||||
inner.call(this, node);
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user