src/JSUtils/node/TernNodeDomain.js
function handleUpdateFile(path, text) {

    ternServer.addFile(path, text);

    self.postMessage({type: MessageIds.TERN_UPDATE_FILE_MSG,
        path: path
        });

    // reset to get the best hints with the updated file.
    ternServer.reset();
    Infer.resetGuessing();
}
function handleUpdateFile(path, text) {

    ternServer.addFile(path, text);

    self.postMessage({type: MessageIds.TERN_UPDATE_FILE_MSG,
        path: path
        });

    // reset to get the best hints with the updated file.
    ternServer.reset();
    Infer.resetGuessing();
}
function handleUpdateFile ( path , text ) { ternServer . addFile ( path , text ) ; self . postMessage ( { type : MessageIds . TERN_UPDATE_FILE_MSG , path : path } ) ; // reset to get the best hints with the updated file. ternServer . reset ( ) ; Infer . resetGuessing ( ) ; }
Update the context of a file in tern.

@param {string} path - full path of file.
@param {string} text - content of the file.
Update the context of a file in tern .