mirror of
https://github.com/Strum355/mcshader-lsp.git
synced 2025-07-19 01:05:29 +00:00
Moving from maps of maps to a more sophisticated graph class for includes
This commit is contained in:
parent
18c0e2ef5c
commit
c95367739f
3 changed files with 49 additions and 31 deletions
|
@ -23,4 +23,9 @@ export class Graph {
|
|||
}
|
||||
this.nodes.set(parent, par)
|
||||
}
|
||||
|
||||
public get(uri: string): Node {
|
||||
if (!this.nodes.has(uri)) this.nodes.set(uri, {parents: new Map(), children: new Map()})
|
||||
return this.nodes.get(uri)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue