message: Use Analysis instead of Package from polymer-analyzer
diff: // Requires node >= 7.6
  -import { Analyzer, Feature, Element, Package, FSUrlLoader, PackageUrlResolver, Property, ElementMixin, Method } from 'polymer-analyzer';
  +import { Analyzer, Feature, Element, Analysis, FSUrlLoader, PackageUrlResolver, Property, ElementMixin, Method } from 'polymer-analyzer';
  import { Function as ResolvedFunction} from 'polymer-analyzer/lib/javascript/function';
  import { generate } from 'escodegen';
  @@ -15,16 +15,16 @@ const header = `declare namespace Polymer {
  `;
  const footer = `}`;
  -export function generateDeclarations() {
  +export function generateDeclarations(): Promise<string> {
  const analyzer = new Analyzer({
  urlLoader: new FSUrlLoader(),
  urlResolver: new PackageUrlResolver(),
  });
  - analyzer.analyzePackage().then(generatePackage);
  + return analyzer.analyzePackage().then(generatePackage);
  }
  -function generatePackage(pkg: Package) {
  +function generatePackage(pkg: Analysis): Promise<string> {
  const declarations = [header];
  for (const feature of pkg.getFeatures()) {
  @@ -48,7 +48,7 @@ function generatePackage(pkg: Package) {
  declarations.push(footer);
  - process.stdout.write(declarations.join('\n'));
  + return Promise.resolve(declarations.join('\n'));
  }
  function genElementDeclaration(element: Element, declarations: string[], indent: number = 0) {
  