Package com.google.javascript.jscomp

Examples of com.google.javascript.jscomp.JsAst


  void initialize(AbstractCompiler compiler) throws Exception {
    Preconditions.checkState(
        !Strings.isNullOrEmpty(templateJs),
        "The template JS must be loaded before the scanner is used. "
        + "Make sure that the template file is not empty.");
    Node scriptRoot = new JsAst(SourceFile.fromCode(
        "template", templateJs)).getAstRoot(compiler);

    Map<String, Node> beforeTemplates = Maps.newHashMap();
    Map<String, Node> afterTemplates = Maps.newHashMap();
    for (Node templateNode : scriptRoot.children()) {
View Full Code Here

TOP

Related Classes of com.google.javascript.jscomp.JsAst

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.