Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lsp): add goto definition for functions #3656

Merged
merged 17 commits into from
Dec 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions compiler/noirc_frontend/src/hir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::hir_def::function::FuncMeta;
use crate::node_interner::{FuncId, NodeInterner, StructId};
use def_map::{Contract, CrateDefMap};
use fm::{FileId, FileManager};
use noirc_errors::Location;
use noirc_errors::{Location, Span};
use std::collections::BTreeMap;

use self::def_map::TestFunction;
Expand Down Expand Up @@ -180,10 +180,11 @@ impl Context {
.collect()
}

kobyhallx marked this conversation as resolved.
Show resolved Hide resolved
/// Returns the [Location] of the definition of the given Ident found at [Span].
kobyhallx marked this conversation as resolved.
Show resolved Hide resolved
pub fn find_definition_location(
&self,
file: FileId,
query_location: &noirc_errors::Span,
query_location: &Span,
) -> Option<Location> {
let interner = &self.def_interner;

Expand Down
Loading