Skip to content

Commit

Permalink
Remove go language (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Nov 20, 2020
1 parent cb37ad9 commit 244a810
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 762 deletions.
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

0 comments on commit 244a810

Please sign in to comment.