mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: Fix rustdoc warnings
`cargo doc` generates a bunch of warnings on rust-analyzer. Fix all the bare URL and empty code block warnings.
This commit is contained in:
parent
e059feadef
commit
d68e549205
15 changed files with 33 additions and 32 deletions
|
@ -26,19 +26,19 @@
|
|||
//!
|
||||
//! The actual algorithm to resolve syntax to def is curious in two aspects:
|
||||
//!
|
||||
//! * It is recursive
|
||||
//! * It uses the inverse algorithm (what is the syntax for this def?)
|
||||
//! * It is recursive
|
||||
//! * It uses the inverse algorithm (what is the syntax for this def?)
|
||||
//!
|
||||
//! Specifically, the algorithm goes like this:
|
||||
//!
|
||||
//! 1. Find the syntactic container for the syntax. For example, field's
|
||||
//! container is the struct, and structs container is a module.
|
||||
//! 2. Recursively get the def corresponding to container.
|
||||
//! 3. Ask the container def for all child defs. These child defs contain
|
||||
//! the answer and answer's siblings.
|
||||
//! 4. For each child def, ask for it's source.
|
||||
//! 5. The child def whose source is the syntax node we've started with
|
||||
//! is the answer.
|
||||
//! 1. Find the syntactic container for the syntax. For example, field's
|
||||
//! container is the struct, and structs container is a module.
|
||||
//! 2. Recursively get the def corresponding to container.
|
||||
//! 3. Ask the container def for all child defs. These child defs contain
|
||||
//! the answer and answer's siblings.
|
||||
//! 4. For each child def, ask for it's source.
|
||||
//! 5. The child def whose source is the syntax node we've started with
|
||||
//! is the answer.
|
||||
//!
|
||||
//! It's interesting that both Roslyn and Kotlin contain very similar code
|
||||
//! shape.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue