Skip to content

Commit

Permalink
nd
Browse files Browse the repository at this point in the history
  • Loading branch information
seren5240 committed May 23, 2024
1 parent e44c8ce commit 8a41140
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions crates/core/src/tree_sitter_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,11 @@ pub fn tree_sitter_node_to_json(
language: &impl NodeTypes,
) -> serde_json::Value {
let sort_id = node.kind_id();
// panic!(
// "holy shit we're just RIGHT FUCKING HERE and the node kind is {} and the kind id is {} and the sort id is {}",
// node.kind(),
// node.kind_id(),
// sort_id
// );
let node_types = language.node_types();
let empty: Vec<Field> = vec![];
let node_fields = if node.is_error() {
&empty
} else {
if node_types.len() == 117 && sort_id == 194 {
panic!(
"Fuck we're here, kind is {} and src is {}",
node.kind(),
node.utf8_text(source.as_bytes()).unwrap()
);
}
&node_types[sort_id as usize]
};
let mut cursor = node.walk();
Expand Down

0 comments on commit 8a41140

Please sign in to comment.