Skip to content

Commit

Permalink
Clean up some wording in the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Apr 10, 2024
1 parent 9124880 commit f0552aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions crates/codegen/parser/runtime/src/napi_interface/cst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ impl RuleNode {

#[napi(catch_unwind, js_name = "toJSON")]
/// Serialize the token node to JSON.
///
/// This method is intended for debugging purposes and may not be stable.
pub fn to_json(&self) -> String {
serde_json::to_string(&self.0).unwrap()
}
Expand All @@ -82,7 +80,7 @@ impl RuleNode {
}

// Expose the children as a hidden (non-enumerable, don't generate type definition)
// property that's eagerly evaluated (getter) in the debugger context.
// property that's eagerly evaluated (getter) for an inspected parent object in the debugger context.
#[napi(
enumerable = false,
configurable = false,
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.

0 comments on commit f0552aa

Please sign in to comment.