| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package com.google.javascript.jscomp; | |
| 6 | |
| 7 import java.util.List; | |
| 8 | |
| 9 public class ChromePassConfig extends PassConfig.PassConfigDelegate { | |
| 10 public ChromePassConfig(CompilerOptions options) { | |
| 11 super(new DefaultPassConfig(options)); | |
| 12 } | |
| 13 | |
| 14 @Override | |
| 15 protected List<PassFactory> getChecks() { | |
| 16 List<PassFactory> checks = super.getChecks(); | |
| 17 checks.add(0, chromePass); | |
| 18 return checks; | |
| 19 } | |
| 20 | |
| 21 final static PassFactory chromePass = new PassFactory("chromePass", true) { | |
| 22 @Override | |
| 23 protected CompilerPass create(AbstractCompiler compiler) { | |
| 24 return new ChromePass(compiler); | |
| 25 } | |
| 26 }; | |
| 27 } | |
| OLD | NEW |