-
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.
Implementated data piping for implementation solver
- Loading branch information
1 parent
74f8813
commit 37f5312
Showing
13 changed files
with
69 additions
and
27 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,26 +1,31 @@ | ||
use super::{function_haystack::FunctionHaystack, job::FuncJob}; | ||
use crate::{resolved, workspace::fs::FsNodeId}; | ||
use crate::{ | ||
resolved::{self, Implementations}, | ||
workspace::fs::FsNodeId, | ||
}; | ||
use indexmap::IndexMap; | ||
use std::collections::{HashMap, VecDeque}; | ||
|
||
pub struct ResolveCtx { | ||
pub struct ResolveCtx<'a> { | ||
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, | ||
} | ||
|
||
impl ResolveCtx { | ||
pub fn new() -> Self { | ||
impl<'a> ResolveCtx<'a> { | ||
pub fn new(implementations: &'a Implementations) -> 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, | ||
} | ||
} | ||
} |
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