Example #1
0
 /**
  * Spawn a new job. All passes between the pass <code>begin</code> and <code>end</code> inclusive
  * will be performed immediately on the AST <code>ast</code>, and the resulting AST returned.
  *
  * <p>Spawn a new job. All passes between the pass <code>begin</code> and <code>end</code>
  * inclusive will be performed immediately on the AST <code>ast</code>.
  *
  * @param c the context that the AST occurs in
  * @param ast the AST the new Job is for.
  * @param begin the first pass to perform for this job.
  * @param end the last pass to perform for this job.
  * @return the new job. The caller can check the result with <code>j.status()</code> and get the
  *     ast with <code>j.ast()</code>.
  */
 public Job spawn(Context c, Node ast, Pass.ID begin, Pass.ID end) {
   return lang.spawnJob(c, ast, this, begin, end);
 }
Example #2
0
 public Compiler compiler() {
   return lang.compiler();
 }