-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed old impl gathering infrastructure
- Loading branch information
1 parent
7828753
commit 5dc4cff
Showing
13 changed files
with
37 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
use super::{function_haystack::FunctionHaystack, job::FuncJob}; | ||
use crate::{ | ||
resolved::{self, Implementations}, | ||
workspace::fs::FsNodeId, | ||
}; | ||
use crate::{resolved, workspace::fs::FsNodeId}; | ||
use indexmap::IndexMap; | ||
use std::collections::{HashMap, VecDeque}; | ||
|
||
pub struct ResolveCtx<'a> { | ||
pub struct ResolveCtx { | ||
pub jobs: VecDeque<FuncJob>, | ||
pub function_haystacks: IndexMap<FsNodeId, FunctionHaystack>, | ||
pub public_functions: HashMap<FsNodeId, HashMap<String, Vec<resolved::FunctionRef>>>, | ||
pub types_in_modules: HashMap<FsNodeId, HashMap<String, resolved::TypeDecl>>, | ||
pub globals_in_modules: HashMap<FsNodeId, HashMap<String, resolved::GlobalVarDecl>>, | ||
pub helper_exprs_in_modules: HashMap<FsNodeId, HashMap<String, resolved::HelperExprDecl>>, | ||
pub implementations: &'a Implementations, | ||
pub trait_haystacks: HashMap<FsNodeId, HashMap<String, resolved::TraitRef>>, | ||
pub impl_haystacks: HashMap<FsNodeId, HashMap<String, resolved::TraitRef>>, | ||
} | ||
|
||
impl<'a> ResolveCtx<'a> { | ||
pub fn new(implementations: &'a Implementations) -> Self { | ||
impl ResolveCtx { | ||
pub fn new() -> Self { | ||
Self { | ||
jobs: Default::default(), | ||
function_haystacks: Default::default(), | ||
public_functions: HashMap::new(), | ||
types_in_modules: HashMap::new(), | ||
globals_in_modules: HashMap::new(), | ||
helper_exprs_in_modules: HashMap::new(), | ||
implementations, | ||
trait_haystacks: HashMap::new(), | ||
impl_haystacks: HashMap::new(), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters