Skip to content

Commit 7acc3f1

Browse files
committed
Remove go language
1 parent cb37ad9 commit 7acc3f1

17 files changed

Lines changed: 0 additions & 762 deletions

‎.gitmodules‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
[submodule "tree-sitter-java"]
1414
path = tree-sitter-java
1515
url = https://github.com/tree-sitter/tree-sitter-java/
16-
[submodule "tree-sitter-go"]
17-
path = tree-sitter-go
18-
url = https://github.com/tree-sitter/tree-sitter-go/
1916
[submodule "tree-sitter-cpp"]
2017
path = tree-sitter-cpp
2118
url = https://github.com/tree-sitter/tree-sitter-cpp.git

‎enums/src/languages.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ mk_langs!(
77
// 1) Name for enum
88
// 2) tree-sitter function to call to get a Language
99
(Java, tree_sitter_java),
10-
(Go, tree_sitter_go),
1110
(Rust, tree_sitter_rust),
1211
(Cpp, tree_sitter_cpp),
1312
(Python, tree_sitter_python),

‎src/alterator.rs‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,18 +125,6 @@ impl Alterator for TsxCode {
125125
}
126126
}
127127

128-
impl Alterator for GoCode {
129-
fn alterate(node: &Node, code: &[u8], span: bool, children: Vec<AstNode>) -> AstNode {
130-
match Go::from(node.object().kind_id()) {
131-
Go::InterpretedStringLiteral => {
132-
let (text, span) = Self::get_text_span(node, code, span, true);
133-
AstNode::new(node.object().kind(), text, span, Vec::new())
134-
}
135-
_ => Self::get_default(node, code, span, children),
136-
}
137-
}
138-
}
139-
140128
impl Alterator for RustCode {
141129
fn alterate(node: &Node, code: &[u8], span: bool, children: Vec<AstNode>) -> AstNode {
142130
match Rust::from(node.object().kind_id()) {

‎src/checker.rs‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -237,21 +237,6 @@ impl Checker for TsxCode {
237237
mk_checker!(is_non_arg, LPAREN, COMMA, RPAREN);
238238
}
239239

240-
impl Checker for GoCode {
241-
mk_checker!(is_comment, Comment);
242-
mk_checker!(is_string, RawStringLiteral, InterpretedStringLiteral);
243-
mk_checker!(is_call, CallExpression);
244-
mk_checker!(is_func, FunctionDeclaration, MethodDeclaration, FuncLiteral);
245-
mk_checker!(
246-
is_func_space,
247-
SourceFile,
248-
FunctionDeclaration,
249-
MethodDeclaration,
250-
FuncLiteral
251-
);
252-
mk_checker!(is_non_arg,);
253-
}
254-
255240
impl Checker for RustCode {
256241
mk_checker!(is_comment, LineComment, BlockComment);
257242

‎src/getter.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,4 +471,3 @@ impl Getter for CppCode {
471471
impl Getter for PreprocCode {}
472472
impl Getter for CcommentCode {}
473473
impl Getter for JavaCode {}
474-
impl Getter for GoCode {}

‎src/langs.rs‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@ mk_langs!(
4545
[java],
4646
["java"]
4747
),
48-
(
49-
Go,
50-
"The `Go` language",
51-
"go",
52-
GoCode,
53-
GoParser,
54-
tree_sitter_go,
55-
[go],
56-
["go"]
57-
),
5848
(
5949
Rust,
6050
"The `Rust` language",

0 commit comments

Comments
 (0)