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;
    }
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;
    }
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 ; }
Contains a list of information about functions for a single document.

@return {?Array.<FileLocation>}
Contains a list of information about functions for a single document .
Create a list of file locations for functions