src/com/google/javascript/jscomp/AbstractCommandLineRunner.java
/** Given an output module, convert it to a JSONFileSpec with associated sourcemap */
Given an output module, convert it to a JSONFileSpec with associated sourcemap
Given an output module convert it to a JSONFileSpec with associated sourcemap
@GwtIncompatible("Unnecessary")
  private JsonFileSpec createJsonFileFromModule(JSModule module) throws IOException {
    compiler.getSourceMap().reset();
    StringBuilder output = new StringBuilder();
    writeModuleOutput(output, module);
    JsonFileSpec jsonFile = new JsonFileSpec(output.toString(),
        getModuleOutputFileName(module));
    StringBuilder moduleSourceMap = new StringBuilder();
    compiler.getSourceMap().appendTo(moduleSourceMap,
        getModuleOutputFileName(module));
    jsonFile.setSourceMap(moduleSourceMap.toString());
    return jsonFile;
  }
@ GwtIncompatible ( "Unnecessary" ) private JsonFileSpec createJsonFileFromModule ( JSModule module ) throws IOException { compiler . getSourceMap ( ) . reset ( ) ; StringBuilder output = new StringBuilder ( ) ; writeModuleOutput ( output , module ) ; JsonFileSpec jsonFile = new JsonFileSpec ( output . toString ( ) , getModuleOutputFileName ( module ) ) ; StringBuilder moduleSourceMap = new StringBuilder ( ) ; compiler . getSourceMap ( ) . appendTo ( moduleSourceMap , getModuleOutputFileName ( module ) ) ; jsonFile . setSourceMap ( moduleSourceMap . toString ( ) ) ; return jsonFile ; }
Given an output module, convert it to a JSONFileSpec with associated sourcemap
Given an output module convert it to a JSONFileSpec with associated sourcemap