(file, text, srv)
| 94 | var astral = /[\uD800-\uDBFF]/g; |
| 95 | |
| 96 | function updateText(file, text, srv) { |
| 97 | file.text = srv.options.stripCRs ? text.replace(/\r\n/g, "\n") : text; |
| 98 | file.hasAstral = astral.test(file.text); |
| 99 | infer.withContext(srv.cx, function() { |
| 100 | file.ast = parseFile(srv, file); |
| 101 | }); |
| 102 | file.lineOffsets = null; |
| 103 | } |
| 104 | |
| 105 | var Server = exports.Server = function(options) { |
| 106 | this.cx = null; |
no test coverage detected
searching dependent graphs…