Skip to content

Commit c7d4869

Browse files
committed
Add maintenance comment
1 parent 6f53296 commit c7d4869

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
@@ -324,6 +324,8 @@ export default class Analyzer {
324324

325325
const tree = this.parser.parse(contents)
326326

327+
// TODO: would be nicer to save one map from uri to object containing all
328+
// these fields.
327329
this.uriToTextDocument[uri] = document
328330
this.uriToTreeSitterTrees[uri] = tree
329331
this.uriToDeclarations[uri] = {}
@@ -335,6 +337,7 @@ export default class Analyzer {
335337

336338
const problems: LSP.Diagnostic[] = []
337339

340+
// TODO: move this somewhere
338341
TreeSitterUtil.forEach(tree.rootNode, (n: Parser.SyntaxNode) => {
339342
if (n.type === 'ERROR') {
340343
problems.push(

0 commit comments

Comments
 (0)