Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl DependencyContext {
function.dfg[block].instructions().iter().for_each(|instruction| {
if let Instruction::Call { func, arguments } = &function.dfg[*instruction] {
if let Value::Function(callee) = &function.dfg[*func] {
if all_functions[&callee].runtime().is_brillig() {
if all_functions[callee].runtime().is_brillig() {
// Skip already visited locations (happens often in unrolled functions)
let call_stack = function.dfg.get_instruction_call_stack(*instruction);
let location = call_stack.last();
Expand Down
7 changes: 2 additions & 5 deletions tooling/lsp/src/modules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,12 @@ pub(crate) fn module_def_id_relative_path(
interner,
)
} else {
let Some(module_full_path) = relative_module_full_path(
relative_module_full_path(
module_def_id,
current_module_id,
current_module_parent_id,
interner,
) else {
return None;
};
module_full_path
)?
};

let path = if defining_module.is_some() || !matches!(module_def_id, ModuleDefId::ModuleId(..)) {
Expand Down