Tool to find unused imports

At the risk of going a Java on this, `ImportAndScopeChainBuilder` would
mean "both".


On Thu, Jul 17, 2014 at 8:43 AM, Erik Arvidsson <notifications@github.com>
wrote:

> In demo/FindExtraImports.js:
>
> > +
> > +import {
> > +  CONST,
> > +  IDENTIFIER,
> > +} from '../src/syntax/TokenType';
> > +import {CollectingErrorReporter} from '../src/util/CollectingErrorReporter';
> > +import {Compiler} from '../src/Compiler';
> > +import {
> > +  BINDING_IDENTIFIER,
> > +  IMPORTED_BINDING
> > +} from '../src/syntax/trees/ParseTreeType';
> > +import {ScopeChainBuilder} from '../src/semantics/ScopeChainBuilder';
> > +import {ScopeVisitor} from '../src/semantics/ScopeVisitor.js';
> > +import {getVariableName} from '../src/semantics/getVariableName';
> > +
> > +class ImportsScopes extends ScopeChainBuilder {
>
> It does both. It builds the scopes and also keeps track of the imports.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/google/traceur-compiler/pull/1185/files#r15065045>.
>