Skip to content

Commit 31e59ba

Browse files
authored
C# Support (#1388)
1 parent 23f84ff commit 31e59ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2674
-2
lines changed

Cargo.lock

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ tracing-appender = "0.2.3"
121121
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
122122
tracing-test = "0.2.5"
123123
tree-sitter = "0.22.6"
124+
tree-sitter-c-sharp = "0.21.3"
124125
tree-sitter-go = "0.21.2"
125126
tree-sitter-java = "0.21.0"
126127
tree-sitter-javascript = "0.21.4"

qlty-analysis/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ tempfile.workspace = true
3737
time.workspace = true
3838
tracing.workspace = true
3939
tree-sitter.workspace = true
40+
tree-sitter-c-sharp.workspace = true
4041
tree-sitter-go.workspace = true
4142
tree-sitter-java.workspace = true
4243
tree-sitter-javascript.workspace = true

qlty-analysis/src/lang.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use core::fmt;
33
use std::sync::Arc;
44
use tree_sitter::{Node, Parser, Query};
55

6+
mod csharp;
67
mod go;
78
mod java;
89
mod javascript;
@@ -16,8 +17,8 @@ mod typescript;
1617
mod typescript_common;
1718

1819
pub use {
19-
go::*, java::*, javascript::*, kotlin::*, php::*, python::*, ruby::*, rust::*, tsx::*,
20-
typescript::*,
20+
csharp::*, go::*, java::*, javascript::*, kotlin::*, php::*, python::*, ruby::*, rust::*,
21+
tsx::*, typescript::*,
2122
};
2223

2324
#[allow(clippy::borrowed_box)]
@@ -30,6 +31,7 @@ use lazy_static::lazy_static;
3031
lazy_static! {
3132
pub static ref ALL_LANGS: Vec<Box<dyn Language + Sync>> = {
3233
vec![
34+
Box::<csharp::CSharp>::default(),
3335
Box::<php::Php>::default(),
3436
Box::<kotlin::Kotlin>::default(),
3537
Box::<go::Go>::default(),

0 commit comments

Comments
 (0)