-
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.
Gutted out the old type resolution system, and started pluging in the…
… new one
- Loading branch information
1 parent
26c6ba5
commit 4ec6cc7
Showing
11 changed files
with
280 additions
and
440 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
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,19 +1,23 @@ | ||
use super::error::{ResolveError, ResolveErrorKind}; | ||
use super::error::ResolveError; | ||
use crate::{ | ||
name::ResolvedName, | ||
resolved::{self, StructureRef}, | ||
source_files::Source, | ||
}; | ||
|
||
pub fn get_core_structure_info( | ||
resolved_type: &resolved::Type, | ||
source: Source, | ||
_resolved_type: &resolved::Type, | ||
_source: Source, | ||
) -> Result<(&ResolvedName, StructureRef), ResolveError> { | ||
todo!("get_core_structure_info"); | ||
|
||
/* | ||
match &resolved_type.kind { | ||
resolved::TypeKind::Structure(name, structure_ref) => Ok((name, *structure_ref)), | ||
_ => Err(ResolveErrorKind::CannotCreateStructLiteralForNonStructure { | ||
bad_type: resolved_type.to_string(), | ||
} | ||
.at(source)), | ||
} | ||
*/ | ||
} |
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
Oops, something went wrong.