MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / updateText

Function updateText

lib/web/tern/tern.js:94–100  ·  view source on GitHub ↗
(file, text, srv)

Source from the content-addressed store, hash-verified

92 }
93
94 function updateText(file, text, srv) {
95 file.text = srv.options.stripCRs ? text.replace(/\r\n/g, "\n") : text;
96 infer.withContext(srv.cx, function() {
97 file.ast = parseFile(srv, file)
98 });
99 file.lineOffsets = null;
100 }
101
102 var Server = exports.Server = function(options) {
103 this.cx = null;

Callers 2

ensureFileFunction · 0.85
fetchAllFunction · 0.85

Calls 2

parseFileFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected