コード例 #1
0
 @Override
 public boolean run() {
   String name = goal.typeName();
   try {
     // Try to resolve the type; this may throw a
     // MissingDependencyException on the job to load the file
     // containing the type.
     Named n = ts.systemResolver().find(name);
     if (n instanceof Type) {
       return true;
     }
   } catch (SemanticException e) {
     ErrorQueue eq = ts.extensionInfo().compiler().errorQueue();
     eq.enqueue(ErrorInfo.SEMANTIC_ERROR, e.getMessage(), e.position());
   }
   return false;
 }