MCPcopy Create free account
hub / github.com/GCMiner/GCMiner / initCompiler

Method initCompiler

src/test/java/examples/CompilerTest.java:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 private SourceFile externs = SourceFile.fromCode("externs", "");
31
32 @Before // Runs before tests are executed
33 public void initCompiler() {
34 // Don't use threads
35 compiler.disableThreads();
36 // Don't print things
37 options.setPrintConfig(false);
38 // Enable all safe optimizations
39 CompilationLevel.SIMPLE_OPTIMIZATIONS.setOptionsForCompilationLevel(options);
40 }
41
42 /** Compiles an input and returns its result */
43 private Result compile(SourceFile input) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected