add missing semicolons

This commit is contained in:
Sebastian McKenzie 2015-07-12 00:36:21 +01:00
parent 16502488b9
commit ada45d5800
2 changed files with 10 additions and 11 deletions

View File

@ -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;

View File

@ -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);
};
});