Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
[submodule "tree-sitter-java"]
path = tree-sitter-java
url = https://github.com/tree-sitter/tree-sitter-java/
[submodule "tree-sitter-go"]
path = tree-sitter-go
url = https://github.com/tree-sitter/tree-sitter-go/
[submodule "tree-sitter-cpp"]
path = tree-sitter-cpp
url = https://github.com/tree-sitter/tree-sitter-cpp.git
1 change: 0 additions & 1 deletion enums/src/languages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mk_langs!(
// 1) Name for enum
// 2) tree-sitter function to call to get a Language
(Java, tree_sitter_java),
(Go, tree_sitter_go),
(Rust, tree_sitter_rust),
(Cpp, tree_sitter_cpp),
(Python, tree_sitter_python),
Expand Down
12 changes: 0 additions & 12 deletions src/alterator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,6 @@ impl Alterator for TsxCode {
}
}

impl Alterator for GoCode {
fn alterate(node: &Node, code: &[u8], span: bool, children: Vec<AstNode>) -> AstNode {
match Go::from(node.object().kind_id()) {
Go::InterpretedStringLiteral => {
let (text, span) = Self::get_text_span(node, code, span, true);
AstNode::new(node.object().kind(), text, span, Vec::new())
}
_ => Self::get_default(node, code, span, children),
}
}
}

impl Alterator for RustCode {
fn alterate(node: &Node, code: &[u8], span: bool, children: Vec<AstNode>) -> AstNode {
match Rust::from(node.object().kind_id()) {
Expand Down
15 changes: 0 additions & 15 deletions src/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,6 @@ impl Checker for TsxCode {
mk_checker!(is_non_arg, LPAREN, COMMA, RPAREN);
}

impl Checker for GoCode {
mk_checker!(is_comment, Comment);
mk_checker!(is_string, RawStringLiteral, InterpretedStringLiteral);
mk_checker!(is_call, CallExpression);
mk_checker!(is_func, FunctionDeclaration, MethodDeclaration, FuncLiteral);
mk_checker!(
is_func_space,
SourceFile,
FunctionDeclaration,
MethodDeclaration,
FuncLiteral
);
mk_checker!(is_non_arg,);
}

impl Checker for RustCode {
mk_checker!(is_comment, LineComment, BlockComment);

Expand Down
1 change: 0 additions & 1 deletion src/getter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,4 +471,3 @@ impl Getter for CppCode {
impl Getter for PreprocCode {}
impl Getter for CcommentCode {}
impl Getter for JavaCode {}
impl Getter for GoCode {}
10 changes: 0 additions & 10 deletions src/langs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ mk_langs!(
[java],
["java"]
),
(
Go,
"The `Go` language",
"go",
GoCode,
GoParser,
tree_sitter_go,
[go],
["go"]
),
(
Rust,
"The `Rust` language",
Expand Down
Loading