Complete local fn and closure params from surrounding locals scope
This commit is contained in:
@@ -389,8 +389,8 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
|
||||
self.imp.scope(node)
|
||||
}
|
||||
|
||||
pub fn scope_at_offset(&self, token: &SyntaxToken, offset: TextSize) -> SemanticsScope<'db> {
|
||||
self.imp.scope_at_offset(&token.parent().unwrap(), offset)
|
||||
pub fn scope_at_offset(&self, node: &SyntaxNode, offset: TextSize) -> SemanticsScope<'db> {
|
||||
self.imp.scope_at_offset(&node, offset)
|
||||
}
|
||||
|
||||
pub fn scope_for_def(&self, def: Trait) -> SemanticsScope<'db> {
|
||||
|
||||
Reference in New Issue
Block a user