Lines Matching full:source
30 * The version of the source mapping spec that we are consuming.
35 // parsed mapping coordinates from the source map's "mappings" attribute. They
38 // and create these arrays once queried for a source location. We jump through
47 // source: The path to the original source file that generated this
49 // originalLine: The line number in the original source that
51 // originalColumn: The column number in the original source that
113 * Iterate over each mapping between an original source/line/column and a
114 * generated line/column in this source map.
125 * order or the original's source/line/column order, respectively. Defaults to
147 var source = mapping.source === null ? null : this._sources.at(mapping.source);
148 source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL);
150 source: source,
161 * Returns all generated line and column information for the original source,
170 * - source: The filename of the original source.
171 * - line: The line number in the original source. The line number is 1-based.
172 * - column: Optional. the column number in the original source.
177 * - line: The line number in the generated source, or null. The
179 * - column: The column number in the generated source, or null.
191 source: util.getArg(aArgs, 'source'), property
196 needle.source = this._findSourceIndex(needle.source);
197 if (needle.source < 0) {
255 * A BasicSourceMapConsumer instance represents a parsed source map which we can
257 * position in the generated source.
259 * The first parameter is the raw source map (either as a JSON string, or
260 * already parsed to an object). According to the spec, source maps have the
263 * - version: Which version of the source map spec this map is following.
264 * - sources: An array of URLs to the original source files.
267 * - sourcesContent: Optional. An array of contents of the original source files.
269 * - file: Optional. The generated file this source map is associated with.
271 * Here is an example source map, taken from the source map spec[0]:
283 * at which the source map was found. This URL is used to compute the
316 // Some source maps produce relative source paths like "./foo.js" instead of
321 // the source root, if the source root is absolute. Not doing this would
322 // be particularly problematic when the source root is a prefix of the
323 // source (valid, but why??). See github issue #199 and bugzil.la/1188982.
324 .map(function (source) { argument
325 return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source)
326 ? util.relative(sourceRoot, source)
327 : source;
330 // Pass `true` below to allow duplicate names and sources. While source maps
332 // sometimes generates source maps with duplicates in them. See Github issue
352 * Utility function to find the index of a source. Returns -1 if not
381 * The source map that will be consumed.
383 * The URL at which the source map can be found (optional)
416 if (srcMapping.source) {
417 destMapping.source = sources.indexOf(srcMapping.source);
437 * The version of the source mapping spec that we are consuming.
456 this.source = null;
521 throw new Error('Found a source, but no line and column');
525 throw new Error('Found a source and line, but no column');
536 // Original source.
537 mapping.source = previousSource + segment[1];
623 * Returns the original source, line, and column information for the generated
624 * source's line and column positions provided. The only argument is an object
627 * - line: The line number in the generated source. The line number
629 * - column: The column number in the generated source. The column
639 * - source: The original source file, or null.
640 * - line: The line number in the original source, or null. The
642 * - column: The column number in the original source, or null. The
666 var source = util.getArg(mapping, 'source', null);
667 if (source !== null) {
668 source = this._sources.at(source);
669 source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
676 source: source,
685 source: null,
693 * Return true if we have the source content for every source in the source
706 * Returns the original source content. The only argument is the url of the
707 * original source file. Returns null if no original source content is
747 // don't want to throw if we can't find the source - we just want to
758 * Returns the generated line and column information for the original source,
762 * - source: The filename of the original source.
763 * - line: The line number in the original source. The line number
765 * - column: The column number in the original source. The column
775 * - line: The line number in the generated source, or null. The
777 * - column: The column number in the generated source, or null.
782 var source = util.getArg(aArgs, 'source');
783 source = this._findSourceIndex(source);
784 if (source < 0) {
793 source: source, property
810 if (mapping.source === needle.source) {
829 * An IndexedSourceMapConsumer instance represents a parsed source map which
831 * that it takes "indexed" source maps (i.e. ones with a "sections" field) as
834 * The first parameter is a raw source map (either as a JSON string, or already
835 * parsed to an object). According to the spec for indexed source maps, they
838 * - version: Which version of the source map spec this map is following.
839 * - file: Optional. The generated file this source map is associated with.
846 * - map: A source map definition. This source map could also be indexed,
850 * specifying a URL to retrieve a source map from, but that's currently
853 * Here's an example source map, taken from the source map spec[0], but
872 * at which the source map was found. This URL is used to compute the
900 // See https://github.com/mozilla/source-map/issues/16
929 * The version of the source mapping spec that we are consuming.
949 * Returns the original source, line, and column information for the generated
950 * source's line and column positions provided. The only argument is an object
953 * - line: The line number in the generated source. The line number
955 * - column: The column number in the generated source. The column
960 * - source: The original source file, or null.
961 * - line: The line number in the original source, or null. The
963 * - column: The column number in the original source, or null. The
990 source: null,
1009 * Return true if we have the source content for every source in the source
1020 * Returns the original source content. The only argument is the url of the
1021 * original source file. Returns null if no original source content is
1043 * Returns the generated line and column information for the original source,
1047 * - source: The filename of the original source.
1048 * - line: The line number in the original source. The line number
1050 * - column: The column number in the original source. The column
1055 * - line: The line number in the generated source, or null. The
1057 * - column: The column number in the generated source, or null.
1065 // Only consider this section if the requested source is in the list of
1067 if (section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1) {
1105 var source = section.consumer._sources.at(mapping.source);
1106 source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
1107 this._sources.add(source);
1108 source = this._sources.indexOf(source);
1122 source: source, property