Skip to content

Commit

Permalink
refactor: Bring back children: Array<cst.Node> for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Apr 4, 2024
1 parent 9896c79 commit f5fb2a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/codegen/parser/runtime/src/napi_interface/cst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl RuleNode {
(&self.0.text_len).into()
}

#[napi(catch_unwind)]
#[napi(ts_return_type = "Array<cst.Node>", catch_unwind)]
pub fn children(&self) -> Vec<Either<RuleNode, TokenNode>> {
self.0
.children
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5fb2a6

Please sign in to comment.