code: function createFunctionList() {
          var doc = DocumentManager.getCurrentDocument();
          if (!doc) {
              return;
          }
  
          var functionList = [];
          var docText = doc.getText();
          var lines = docText.split("\n");
          var functions = JSUtils.findAllMatchingFunctionsInText(docText, "*");
          functions.forEach(function (funcEntry) {
              functionList.push(new FileLocation(null, funcEntry.nameLineStart, funcEntry.columnStart, funcEntry.columnEnd, funcEntry.label || funcEntry.name));
          });
          return functionList;
      }
docs: Contains a list of information about functions for a single document.
  
  @return {?Array.<FileLocation>}