aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-09-21 13:35:42 +0100
committerGitHub <[email protected]>2020-09-21 13:35:42 +0100
commitfcc3c49013c681d7f7cc98a59fe140e076837813 (patch)
tree517f29aab74a5906d02f9035f39e352a055d6088
parent8e3082ff6e622c17a93bec34d2ddbd6f63609512 (diff)
Apply suggestions from code review
Co-authored-by: LaurenČ›iu Nicola <[email protected]>
-rw-r--r--crates/hir/src/semantics.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs
index c23a52b7c..c61a430e1 100644
--- a/crates/hir/src/semantics.rs
+++ b/crates/hir/src/semantics.rs
@@ -706,15 +706,15 @@ fn find_root(node: &SyntaxNode) -> SyntaxNode {
706/// so, but, generally, this is not something left after the analysis. 706/// so, but, generally, this is not something left after the analysis.
707/// 707///
708/// However, we do very much need explicit scopes for IDE purposes -- 708/// However, we do very much need explicit scopes for IDE purposes --
709/// completion, at its core, lists the contents of the current scope. Notion of 709/// completion, at its core, lists the contents of the current scope. The notion
710/// scope is also useful to answer question like "what would be the meaning of 710/// of scope is also useful to answer questions like "what would be the meaning
711/// this piece of code if we insert into this position?". 711/// of this piece of code if we inserted it into this position?".
712/// 712///
713/// So `SemanticsScope` is constructed from a specific program point (a syntax 713/// So `SemanticsScope` is constructed from a specific program point (a syntax
714/// node or just a raw offset) and provides access to the set of visible names 714/// node or just a raw offset) and provides access to the set of visible names
715/// in on a somewhat best-effort basis. 715/// on a somewhat best-effort basis.
716/// 716///
717/// Note that if you are wondering "what this specific existing name means?", 717/// Note that if you are wondering "what does this specific existing name mean?",
718/// you'd better use the `resolve_` family of methods. 718/// you'd better use the `resolve_` family of methods.
719#[derive(Debug)] 719#[derive(Debug)]
720pub struct SemanticsScope<'a> { 720pub struct SemanticsScope<'a> {