@Override public void process(Node externs, Node root) { for (Node script = root.getFirstChild(); script != null; script = script.getNext()) { Preconditions.checkState(script.isScript()); if (script.getStaticSourceFile().isWeak()) { // Keep the file but remove the contents, since some users expect the number of input and // output files to be the same. NodeUtil.deleteChildren(script, compiler); } } } }