B2G/gecko/browser/devtools/debugger/debugger-controller.js
/**
   * Gets the text in a source editor's specified line.
   *
   * @param number aLine [optional]
   *        The line to get the text from.
   *        If unspecified, it defaults to the current caret position line.
   * @return string
   *         The specified line text
   */
Gets the text in a source editor's specified line.
@param number aLine [optional]
The line to get the text from.
If unspecified, it defaults to the current caret position line.
@return string
The specified line text
Gets the text in a source editor ' s specified line . @param number aLine [ optional ] The line to get the text from . If unspecified it defaults to the current caret position line . @return string The specified line text
function SS_getLineText(aLine) {
    let editor = DebuggerView.editor;
    let line = aLine || editor.getCaretPosition().line;
    let start = editor.getLineStart(line);
    let end = editor.getLineEnd(line);
    return editor.getText(start, end);
  }
function SS_getLineText ( aLine ) { let editor = DebuggerView . editor ; let line = aLine || editor . getCaretPosition ( ) . line ; let start = editor . getLineStart ( line ) ; let end = editor . getLineEnd ( line ) ; return editor . getText ( start , end ) ; }
Gets the text in a source editor's specified line.
Gets the text in a source editor ' s specified line .