Browse Source

linting

contingency-plan
Rich-Harris 9 years ago
parent
commit
4255482b4b
  1. 3
      src/Module.js
  2. 2
      src/ast/Scope.js

3
src/Module.js

@ -1,4 +1,3 @@
import { Promise } from 'sander';
import { parse } from 'acorn';
import MagicString from 'magic-string';
import Statement from './Statement';
@ -7,8 +6,6 @@ import { blank, keys } from './utils/object';
import getLocation from './utils/getLocation';
import makeLegalIdentifier from './utils/makeLegalIdentifier';
const emptyPromise = Promise.resolve();
function deconflict ( name, names ) {
while ( name in names ) {
name = `_${name}`;

2
src/ast/Scope.js

@ -32,7 +32,7 @@ export default class Scope {
this.parent.addDeclaration( name, declaration, isVar );
} else {
this.declarations[ name ] = declaration;
if ( isVar ) this.varDeclarations.push( name )
if ( isVar ) this.varDeclarations.push( name );
}
}

Loading…
Cancel
Save