function requestFindRefs(session, document, offset) {
        if (!document || !session) {
            return;
        }
        var path    = document.file.fullPath,
            fileInfo = {
                type: MessageIds.TERN_FILE_INFO_TYPE_FULL,
                name: path,
                offsetLines: 0,
                text: ScopeManager.filterText(session.getJavascriptText())
            };
        var ternPromise = getRefs(fileInfo, offset);

        return {promise: ternPromise};
    }
function requestFindRefs(session, document, offset) {
        if (!document || !session) {
            return;
        }
        var path    = document.file.fullPath,
            fileInfo = {
                type: MessageIds.TERN_FILE_INFO_TYPE_FULL,
                name: path,
                offsetLines: 0,
                text: ScopeManager.filterText(session.getJavascriptText())
            };
        var ternPromise = getRefs(fileInfo, offset);

        return {promise: ternPromise};
    }
function requestFindRefs ( session , document , offset ) { if ( ! document || ! session ) { return ; } var path = document . file . fullPath , fileInfo = { type : MessageIds . TERN_FILE_INFO_TYPE_FULL , name : path , offsetLines : 0 , text : ScopeManager . filterText ( session . getJavascriptText ( ) ) } ; var ternPromise = getRefs ( fileInfo , offset ) ; return { promise : ternPromise } ; }
Create info required to find reference
Create info required to find reference
Request find refs