@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; } }
/** 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(); } }