/** * Adds the given mappings to the generator and offsets them if offset is given * * @name addMappings * @function * @param sourceFile {String} name of the source file * @param mappings {Array{{Object}} each object has the form { original: { line: _, column: _ }, generated: { line: _, column: _ } } * @param offset {Object} offset to apply to each mapping. Has the form { line: _, column: _ } * @return {Object} the generator to allow chaining */
addGeneratedMappings(sourceFile, source, offset)
/** * Generates mappings for the given source and adds them, assuming that no translation from original to generated is necessary. * * @name addGeneratedMappings * @function * @param sourceFile {String} name of the source file * @param source {String} source of the file * @param offset {Object} offset to apply to each mapping. Has the form { line: _, column: _ } * @return {Object} the generator to allow chaining */
addSourceContent(sourceFile, sourceContent)
/** * Adds source content for the given source file. * * @name addSourceContent * @function * @param sourceFile {String} The source file for which a mapping is included * @param sourceContent {String} The content of the source file * @return {Object} The generator to allow chaining */
base64Encode()
/** * @name base64Encode * @function * @return {String} bas64 encoded representation of the added mappings */
If source contents were added, this will be included in the encoded mappings.
inlineMappingUrl()
/** * @name inlineMappingUrl * @function * @return {String} comment with base64 encoded representation of the added mappings. Can be inlined at the end of the generated file. */