Package com.google.javascript.jscomp.deps

Examples of com.google.javascript.jscomp.deps.DependencyInfo


      if (!generatedDependencyInfoFromSource) {
        // Note: it's OK to use getName() instead of
        // getPathRelativeToClosureBase() here because we're not using
        // this to generate deps files. (We're only using it for
        // symbol dependencies.)
        DependencyInfo info =
            (new JsFileParser(compiler.getErrorManager()))
            .setIncludeGoogBase(true)
            .parseFile(getName(), getName(), getCode());

        isModuleFile = info.isModule();
        provides.addAll(info.getProvides());
        requires.addAll(info.getRequires());

        generatedDependencyInfoFromSource = true;
      }
    }
  }
View Full Code Here


    Set<String> requires = Sets.newHashSet();
    Queue<String> unprocessedRequires = new LinkedList<String>();
    unprocessedRequires.addAll(entryPoints);
    while (!unprocessedRequires.isEmpty()) {
      String clazz = unprocessedRequires.remove();
      DependencyInfo depInfo = depMap.get(clazz);
      requires.add(clazz);
      for (String require : depInfo.getRequires()) {
        if (!requires.contains(require)) {
          unprocessedRequires.add(require);
        }
      }
    }
View Full Code Here

      if (!generatedDependencyInfoFromSource) {
        // Note: it's ok to use getName() instead of
        // getPathRelativeToClosureBase() here because we're not using
        // this to generate deps files. (We're only using it for
        // symbol dependencies.)
        DependencyInfo info = (new JsFileParser(errorManager)).parseFile(
            getName(), getName(), getCode());

        provides.addAll(info.getProvides());
        requires.addAll(info.getRequires());

        generatedDependencyInfoFromSource = true;
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.google.javascript.jscomp.deps.DependencyInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.