src/com/google/javascript/jscomp/AbstractCommandLineRunner.java
/** A helper function for creating the dependency options object. */
A helper function for creating the dependency options object.
A helper function for creating the dependency options object .
public static DependencyOptions createDependencyOptions(
      CompilerOptions.DependencyMode dependencyMode, List<ModuleIdentifier> entryPoints) {
    if (dependencyMode == CompilerOptions.DependencyMode.STRICT) {
      if (entryPoints.isEmpty()) {
        throw new FlagUsageException(
            "When dependency_mode=STRICT, you must " + "specify at least one entry_point");
      }
      return new DependencyOptions()
          .setDependencyPruning(true)
          .setDependencySorting(true)
          .setMoocherDropping(true)
          .setEntryPoints(entryPoints);
    } else if (dependencyMode == CompilerOptions.DependencyMode.LOOSE || !entryPoints.isEmpty()) {
      return new DependencyOptions()
          .setDependencyPruning(true)
          .setDependencySorting(true)
          .setMoocherDropping(false)
          .setEntryPoints(entryPoints);
    }
    return null;
  }
public static DependencyOptions createDependencyOptions ( CompilerOptions . DependencyMode dependencyMode , List < ModuleIdentifier > entryPoints ) { if ( dependencyMode == CompilerOptions . DependencyMode . STRICT ) { if ( entryPoints . isEmpty ( ) ) { throw new FlagUsageException ( "When dependency_mode=STRICT, you must " + "specify at least one entry_point" ) ; } return new DependencyOptions ( ) . setDependencyPruning ( true ) . setDependencySorting ( true ) . setMoocherDropping ( true ) . setEntryPoints ( entryPoints ) ; } else if ( dependencyMode == CompilerOptions . DependencyMode . LOOSE || ! entryPoints . isEmpty ( ) ) { return new DependencyOptions ( ) . setDependencyPruning ( true ) . setDependencySorting ( true ) . setMoocherDropping ( false ) . setEntryPoints ( entryPoints ) ; } return null ; }
A helper function for creating the dependency options object.
A helper function for creating the dependency options object .