mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 12:14:43 +00:00
fix: bugs
This commit is contained in:
parent
33e1b776cb
commit
ced04e5d6a
8 changed files with 71 additions and 65 deletions
|
@ -24,8 +24,8 @@ impl<Checker: BuildRunnable> Server<Checker> {
|
|||
|
||||
fn send_trait_impls_lens(&mut self, uri: &NormalizedUrl) -> ELSResult<Vec<CodeLens>> {
|
||||
let mut result = vec![];
|
||||
if let Some(artifact) = self.artifacts.get(uri) {
|
||||
if let Some(hir) = &artifact.object {
|
||||
if let Some(analysis) = self.artifacts.get(uri) {
|
||||
if let Some(hir) = &analysis.artifact.object {
|
||||
for chunk in hir.module.iter() {
|
||||
match chunk {
|
||||
Expr::Def(def) if def.def_kind().is_trait() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue