src/com/google/javascript/jscomp/AbstractCommandLineRunner.java
/**
   * Outputs the variable and property name maps for the specified compiler if the proper FLAGS are
   * set.
   */
Outputs the variable and property name maps for the specified compiler if the proper FLAGS are
set.
Outputs the variable and property name maps for the specified compiler if the proper FLAGS are set .
@GwtIncompatible("Unnecessary")
  private void outputNameMaps() throws IOException {
    String propertyMapOutputPath = null;
    String variableMapOutputPath = null;
    String functionInformationMapOutputPath = null;
    if (config.createNameMapFiles) {
      String basePath = getMapPath(config.jsOutputFile);
      propertyMapOutputPath = basePath + "_props_map.out";
      variableMapOutputPath = basePath + "_vars_map.out";
      functionInformationMapOutputPath = basePath + "_functions_map.out";
    }
    if (!config.variableMapOutputFile.isEmpty()) {
      if (variableMapOutputPath != null) {
        throw new FlagUsageException("The flags variable_map_output_file and "
            + "create_name_map_files cannot both be used simultaneously.");
      }
      variableMapOutputPath = config.variableMapOutputFile;
    }
    if (!config.propertyMapOutputFile.isEmpty()) {
      if (propertyMapOutputPath != null) {
        throw new FlagUsageException("The flags property_map_output_file and "
            + "create_name_map_files cannot both be used simultaneously.");
      }
      propertyMapOutputPath = config.propertyMapOutputFile;
    }
    if (variableMapOutputPath != null && compiler.getVariableMap() != null) {
      compiler.getVariableMap().save(variableMapOutputPath);
    }
    if (propertyMapOutputPath != null && compiler.getPropertyMap() != null) {
      compiler.getPropertyMap().save(propertyMapOutputPath);
    }
    if (functionInformationMapOutputPath != null
        && compiler.getFunctionalInformationMap() != null) {
      try (final OutputStream file = filenameToOutputStream(functionInformationMapOutputPath)) {
        CodedOutputStream outputStream = CodedOutputStream.newInstance(file);
        compiler.getFunctionalInformationMap().writeTo(outputStream);
        outputStream.flush();
      }
    }
  }
@ GwtIncompatible ( "Unnecessary" ) private void outputNameMaps ( ) throws IOException { String propertyMapOutputPath = null ; String variableMapOutputPath = null ; String functionInformationMapOutputPath = null ; if ( config . createNameMapFiles ) { String basePath = getMapPath ( config . jsOutputFile ) ; propertyMapOutputPath = basePath + "_props_map.out" ; variableMapOutputPath = basePath + "_vars_map.out" ; functionInformationMapOutputPath = basePath + "_functions_map.out" ; } if ( ! config . variableMapOutputFile . isEmpty ( ) ) { if ( variableMapOutputPath != null ) { throw new FlagUsageException ( "The flags variable_map_output_file and " + "create_name_map_files cannot both be used simultaneously." ) ; } variableMapOutputPath = config . variableMapOutputFile ; } if ( ! config . propertyMapOutputFile . isEmpty ( ) ) { if ( propertyMapOutputPath != null ) { throw new FlagUsageException ( "The flags property_map_output_file and " + "create_name_map_files cannot both be used simultaneously." ) ; } propertyMapOutputPath = config . propertyMapOutputFile ; } if ( variableMapOutputPath != null && compiler . getVariableMap ( ) != null ) { compiler . getVariableMap ( ) . save ( variableMapOutputPath ) ; } if ( propertyMapOutputPath != null && compiler . getPropertyMap ( ) != null ) { compiler . getPropertyMap ( ) . save ( propertyMapOutputPath ) ; } if ( functionInformationMapOutputPath != null && compiler . getFunctionalInformationMap ( ) != null ) { try ( final OutputStream file = filenameToOutputStream ( functionInformationMapOutputPath ) ) { CodedOutputStream outputStream = CodedOutputStream . newInstance ( file ) ; compiler . getFunctionalInformationMap ( ) . writeTo ( outputStream ) ; outputStream . flush ( ) ; } } }
Outputs the variable and property name maps for the specified compiler if the proper FLAGS are
 set.
Outputs the variable and property name maps for the specified compiler if the proper FLAGS are set .
// Check the create_name_map_files FLAG. // Check the individual FLAGS. // Output the maps.