Skip to content

Commit ba07b6a

Browse files
committed
Add maintenance comment
1 parent 77a3902 commit ba07b6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/analyser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ export default class Analyzer {
319319

320320
const tree = this.parser.parse(contents)
321321

322+
// TODO: would be nicer to save one map from uri to object containing all
323+
// these fields.
322324
this.uriToTextDocument[uri] = document
323325
this.uriToTreeSitterTrees[uri] = tree
324326
this.uriToDeclarations[uri] = {}
@@ -330,6 +332,7 @@ export default class Analyzer {
330332

331333
const problems: LSP.Diagnostic[] = []
332334

335+
// TODO: move this somewhere
333336
TreeSitterUtil.forEach(tree.rootNode, (n: Parser.SyntaxNode) => {
334337
if (n.type === 'ERROR') {
335338
problems.push(

0 commit comments

Comments
 (0)