Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 02fdad6

Browse files
author
Hendrik van Antwerpen
authored
Merge pull request #156 from github/analyze-tsconfig
Analyze tsconfig
2 parents d75b47e + 38cf2ea commit 02fdad6

32 files changed

+1169
-55
lines changed

languages/tree-sitter-stack-graphs-typescript/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ harness = false
2424
[dependencies]
2525
anyhow = "1.0"
2626
clap = "3"
27+
glob = "0.3"
2728
stack-graphs = { version = "~0.10.1", path = "../../stack-graphs" }
2829
tree-sitter-stack-graphs = { version = "~0.4.0", path = "../../tree-sitter-stack-graphs", features=["cli"] }
2930
tree-sitter-typescript = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev="082da44a5263599186dadafd2c974c19f3a73d28" }
31+
tsconfig = "0.1.0"

languages/tree-sitter-stack-graphs-typescript/rust/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
// Please see the LICENSE-APACHE or LICENSE-MIT files in this distribution for license details.
66
// ------------------------------------------------------------------------------------------------
77

8+
use crate::tsconfig::TsConfigAnalyzer;
89
use tree_sitter_stack_graphs::loader::FileAnalyzers;
910
use tree_sitter_stack_graphs::loader::LanguageConfiguration;
1011
use tree_sitter_stack_graphs::CancellationFlag;
11-
use tsconfig::TsConfigAnalyzer;
1212

1313
pub mod tsconfig;
1414

1515
/// The stack graphs tsg source for this language
16-
const STACK_GRAPHS_TSG_SOURCE: &str = include_str!("../src/stack-graphs.tsg");
16+
pub const STACK_GRAPHS_TSG_SOURCE: &str = include_str!("../src/stack-graphs.tsg");
1717

1818
/// The stack graphs builtins configuration for this language
19-
const STACK_GRAPHS_BUILTINS_CONFIG: &str = include_str!("../src/builtins.cfg");
19+
pub const STACK_GRAPHS_BUILTINS_CONFIG: &str = include_str!("../src/builtins.cfg");
2020
/// The stack graphs builtins source for this language
21-
const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.ts");
21+
pub const STACK_GRAPHS_BUILTINS_SOURCE: &str = include_str!("../src/builtins.ts");
2222

2323
pub fn language_configuration(cancellation_flag: &dyn CancellationFlag) -> LanguageConfiguration {
2424
LanguageConfiguration::from_tsg_str(

0 commit comments

Comments
 (0)