Home | History | Annotate | Download | only in src

Lines Matching refs:source

2 // Redistribution and use in source and binary forms, with or without
6 // * Redistributions of source code must retain the above copyright
211 // Returns the source code line containing the given source
251 * Find a line number given a specific source position.
252 * @param {number} position The source position.
287 * Get information on a specific source position.
288 * @param {number} position The source position
292 * If line is negative or not in the source null is returned.
303 if (end > 0 && StringCharAt.call(this.source, end - 1) == '\r') end--;
319 * Get information on a specific source line and column possibly offset by a
320 * fixed source position. This function is used to find a source position from
321 * a line and column position. The fixed source position offset is typically
322 * used to find a source position in a function based on a line and column in
323 * the source for the function alone. The offset passed will then be the
324 * start position of the source for the function within the full script source.
325 * @param {number} opt_line The line within the source. Default value is 0
328 * source from where the line and column calculation starts. Default value is 0
330 * If line is negative or not in the source null is returned.
365 * Get a slice of source code from the script. The boundaries for the slice is
371 * @return {SourceSlice} The source slice or null of the parameters where
395 // Return a source slice with line numbers re-adjusted to the resource.
414 // Return the source line.
418 return StringSubstring.call(this.source, start, end);
423 * Returns the number of source lines.
425 * Number of source lines.
428 // Return number of source lines.
434 * Class for sourcesource location is a position within some
435 * source with the following properties:
436 * script : script object for the source
437 * line : source line number
438 * column : source column within the line
439 * position : position within the source
440 * start : position of start of source context (inclusive)
441 * end : position of end of source context (not inclusive)
442 * Source text for the source context is the character interval [start, end[. In
444 * the final position of the source if the last source line does not end with a
447 * @param {number} position Source position for the location
450 * @param {number} start Source position for start of source context
451 * @param {number} end Source position for end of source context
467 * Restrict source location start and end positions to make the source slice
469 * @param {number} opt_limit The with limit of the source text with a default
486 // If no before is specified center for small limits and perfer more source
517 * Get the source text for a SourceLocation
519 * Source text for this location.
522 return StringSubstring.call(this.script.source, this.start, this.end);
527 * Class for a source slice. A source slice is a part of a script source with
529 * script : script object for the source
531 * to_line : source line number for the last line in the slice
537 * @param {Script} script The Script object for the source slice
554 * Get the source text for a SourceSlice
555 * @return {String} Source text for this slice. The last line will include
559 return StringSubstring.call(this.script.source, this.from_position, this.to_position);
761 eval_origin += " (unknown source)";
790 fileLocation = "unknown source";