src/com/google/javascript/jscomp/AbstractCommandLineRunner.java
/** Creates JS extern inputs from a list of files. */
Creates JS extern inputs from a list of files.
Creates JS extern inputs from a list of files .
@GwtIncompatible("Unnecessary")
  private List<SourceFile> createExternInputs(List<String> files) throws IOException {
    List<FlagEntry<JsSourceType>> externFiles = new ArrayList<>();
    for (String file : files) {
      externFiles.add(new FlagEntry<JsSourceType>(JsSourceType.EXTERN, file));
    }
    try {
      return createInputs(externFiles, false, new ArrayList<JsModuleSpec>());
    } catch (FlagUsageException e) {
      throw new FlagUsageException("Bad --externs flag. " + e.getMessage());
    }
  }
@ GwtIncompatible ( "Unnecessary" ) private List < SourceFile > createExternInputs ( List < String > files ) throws IOException { List < FlagEntry < JsSourceType > > externFiles = new ArrayList < > ( ) ; for ( String file : files ) { externFiles . add ( new FlagEntry < JsSourceType > ( JsSourceType . EXTERN , file ) ) ; } try { return createInputs ( externFiles , false , new ArrayList < JsModuleSpec > ( ) ) ; } catch ( FlagUsageException e ) { throw new FlagUsageException ( "Bad --externs flag. " + e . getMessage ( ) ) ; } }
Creates JS extern inputs from a list of files.
Creates JS extern inputs from a list of files .