B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Creates script search results elements and adds them to the results container.
   *
   * @param string aScriptUrl
   *        The URL of the source script.
   * @param array aScriptResults
   *        An array containing the search results for a single script url.
   * @param boolean aExpandFlag
   *        True to expand the script results container.
   */
Creates script search results elements and adds them to the results container.
@param string aScriptUrl
The URL of the source script.
@param array aScriptResults
An array containing the search results for a single script url.
@param boolean aExpandFlag
True to expand the script results container.
Creates script search results elements and adds them to the results container . @param string aScriptUrl The URL of the source script . @param array aScriptResults An array containing the search results for a single script url . @param boolean aExpandFlag True to expand the script results container .
function DVGS__createScriptResultsUI(aScriptUrl, aScriptResults, aExpandFlag) {
    let { lineResults, matchCount } = aScriptResults;
    let element;
    for (let lineResult of lineResults) {
      element = this._createLineSearchResultsUI({
        scriptUrl: aScriptUrl,
        matchCount: matchCount,
        lineNumber: lineResult.lineNumber + 1,
        lineContents: lineResult.lineContents
      });
    }
    if (aExpandFlag) {
      element.expand(true);
    }
  }
function DVGS__createScriptResultsUI ( aScriptUrl , aScriptResults , aExpandFlag ) { let { lineResults , matchCount } = aScriptResults ; let element ; for ( let lineResult of lineResults ) { element = this . _createLineSearchResultsUI ( { scriptUrl : aScriptUrl , matchCount : matchCount , lineNumber : lineResult . lineNumber + 1 , lineContents : lineResult . lineContents } ) ; } if ( aExpandFlag ) { element . expand ( true ) ; } }
Creates script search results elements and adds them to the results container.
Creates script search results elements and adds them to the results container .