Skip to content

Commit

Permalink
Set checksOnly on the CompilerOptions used by JsFileFullParser.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 407366945
  • Loading branch information
tjgq authored and copybara-github committed Nov 3, 2021
1 parent 44eabea commit fb3a9f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/com/google/javascript/jscomp/deps/JsFileFullParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,11 @@ public void println(CheckLevel level, JSError error) {
protected void printSummary() {}
});
SourceFile source = SourceFile.fromCode(filename, code);
compiler.init(
ImmutableList.<SourceFile>of(),
ImmutableList.<SourceFile>of(source),
new CompilerOptions());

CompilerOptions options = new CompilerOptions();
options.setChecksOnly(true);

compiler.init(ImmutableList.of(), ImmutableList.of(source), options);

Config config =
ParserRunner.createConfig(
Expand Down

0 comments on commit fb3a9f6

Please sign in to comment.