コード例 #1
0
 @Override
 public boolean isModule() {
   checkErrorManager();
   try {
     regenerateDependencyInfoIfNecessary();
     return isModuleFile;
   } catch (IOException e) {
     compiler
         .getErrorManager()
         .report(CheckLevel.ERROR, JSError.make(AbstractCompiler.READ_ERROR, getName()));
     return false;
   }
 }
コード例 #2
0
 /** Gets a list of types provided by this input. */
 @Override
 public Collection<String> getProvides() {
   checkErrorManager();
   try {
     regenerateDependencyInfoIfNecessary();
     return Collections.unmodifiableSet(provides);
   } catch (IOException e) {
     compiler
         .getErrorManager()
         .report(CheckLevel.ERROR, JSError.make(AbstractCompiler.READ_ERROR, getName()));
     return ImmutableList.of();
   }
 }