Exemplo n.º 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;
   }
 }
Exemplo n.º 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();
   }
 }