Skip to content

Commit

Permalink
[move-analyzer] outline to support
Browse files Browse the repository at this point in the history
  • Loading branch information
hapeeeeee committed Nov 29, 2023
1 parent 8743356 commit fa748e2
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 113 deletions.
2 changes: 2 additions & 0 deletions language/move-analyzer/src/project_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl Project {
.unwrap_or(&d2)
.as_ref()
.borrow();

call_back(VecDefAstProvider::new(
if layout == SourcePackageLayout::Sources {
b.sources.get(filepath).unwrap_or(&d)
Expand Down Expand Up @@ -259,6 +260,7 @@ impl Project {
provider.with_const(|addr, name, c| {
self.visit_const(Some((addr, name)), c, project_context, visitor);
});

provider.with_struct(|addr, module_name, c| {
let item = Item::StructNameRef(ItemStructNameRef {
addr,
Expand Down
Loading

0 comments on commit fa748e2

Please sign in to comment.