Skip to content

Commit

Permalink
analysis::Grammar trait API turned to unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliah-Lakhin committed Jul 2, 2024
1 parent 0fcd126 commit 4b6ef54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions work/book/src/semantics/code-diagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ function to retrieve a copy of the current diagnostics sets, you can leverage
the version number of the attribute value to determine whether this set needs to
be republished to the client.

[^syntaxerror]:
The [Document::errors](https://docs.rs/lady-deirdre/2.0.0/lady_deirdre/syntax/trait.SyntaxTree.html#method.errors)
[^syntaxerror]: The [Document::errors](https://docs.rs/lady-deirdre/2.0.0/lady_deirdre/syntax/trait.SyntaxTree.html#method.errors)
function would provide you with an iterator over all syntax errors within the
compilation unit.
3 changes: 3 additions & 0 deletions work/crates/main/src/analysis/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ use crate::{
/// The [Node] supertrait of this trait provides lexical and syntax components
/// of the programming language. The rest of the trait's API related to the
/// semantics description.
///
/// **NOTE**: This trait API is not stabilized yet. New trait members may be
/// added in future minor versions of Lady Deirdre.
pub trait Grammar: Node + AbstractFeature {
/// A syntax tree node classifier that indexes the nodes by classes.
///
Expand Down

0 comments on commit 4b6ef54

Please sign in to comment.