Docs.rs
mago-syntax-1.27.1
mago-syntax 1.27.1
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Repository
crates.io
Source
Owners
azjezz
Dependencies
bumpalo ^3
normal
mago-database ^1.27.1
normal
mago-php-version ^1.27.1
normal
mago-reporting ^1.27.1
normal
mago-span ^1.27.1
normal
mago-syntax-core ^1.27.1
normal
memchr ^2.7.4
normal
ordered-float ^5.0
normal
paste ^1.0.15
normal
serde ^1.0
normal
strum ^0.28
normal
codspeed-criterion-compat ^4.5.0
dev
pretty_assertions ^1.4.1
dev
tree-sitter ^0.26
dev
tree-sitter-php ^0.24
dev
Versions
5.15%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module docblock
mago_
syntax
1.27.1
Module docblock
Module Items
Structs
Functions
In mago_
syntax::
comments
mago_syntax
::
comments
Module
docblock
Copy item path
Source
Structs
§
Preceding
Docblocks
An iterator that yields docblock trivia nodes preceding a position, walking backwards through stacked docblocks using the same gap-checking logic as
get_docblock_before_position
.
Functions
§
get_
docblock_
before_
position
Retrieves the docblock comment that appears before a specific position in the source code.
get_
docblock_
for_
node
Retrieves the docblock comment associated with a given node in the program. If the node is preceded by a docblock comment, it returns that comment.