This repository was archived by the owner on Sep 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
languages/tree-sitter-stack-graphs-typescript/rust Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 66// ------------------------------------------------------------------------------------------------
77
88use serde:: Deserialize ;
9- use stack_graphs:: graph:: NodeID ;
109use std:: collections:: HashMap ;
1110use std:: path:: Path ;
1211
@@ -42,7 +41,7 @@ impl FileAnalyzer for NpmPackageAnalyzer {
4241 serde_json:: from_str ( source) . map_err ( |_| LoadError :: ParseError ) ?;
4342
4443 // root node
45- let root = graph . node_for_id ( NodeID :: root ( ) ) . unwrap ( ) ;
44+ let root = StackGraph :: root_node ( ) ;
4645
4746 // project scope
4847 let proj_scope_id = graph. new_node_id ( file) ;
Original file line number Diff line number Diff line change 66// ------------------------------------------------------------------------------------------------
77
88use glob:: Pattern ;
9- use stack_graphs:: graph:: NodeID ;
109use std:: collections:: HashMap ;
1110use std:: path:: Component ;
1211use std:: path:: Path ;
@@ -43,7 +42,7 @@ impl FileAnalyzer for TsConfigAnalyzer {
4342 let tsc = TsConfig :: parse_str ( path, source) . map_err ( |_| LoadError :: ParseError ) ?;
4443
4544 // root node
46- let root = graph . node_for_id ( NodeID :: root ( ) ) . unwrap ( ) ;
45+ let root = StackGraph :: root_node ( ) ;
4746
4847 // project scope
4948 let proj_scope_id = graph. new_node_id ( file) ;
You can’t perform that action at this time.
0 commit comments