diff --git a/src/com/google/javascript/jscomp/deps/JsFileFullParser.java b/src/com/google/javascript/jscomp/deps/JsFileFullParser.java index 02ebc765688..b14dd150b17 100644 --- a/src/com/google/javascript/jscomp/deps/JsFileFullParser.java +++ b/src/com/google/javascript/jscomp/deps/JsFileFullParser.java @@ -170,10 +170,11 @@ public void println(CheckLevel level, JSError error) { protected void printSummary() {} }); SourceFile source = SourceFile.fromCode(filename, code); - compiler.init( - ImmutableList.of(), - ImmutableList.of(source), - new CompilerOptions()); + + CompilerOptions options = new CompilerOptions(); + options.setChecksOnly(true); + + compiler.init(ImmutableList.of(), ImmutableList.of(source), options); Config config = ParserRunner.createConfig(