moving location and symbol_resolver out from typecheck
This commit is contained in:
parent
18db2ddd53
commit
c405e46b00
|
@ -2,5 +2,7 @@
|
|||
#![allow(dead_code)]
|
||||
|
||||
mod codegen;
|
||||
mod location;
|
||||
mod symbol_resolver;
|
||||
mod top_level;
|
||||
mod typecheck;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use super::location::Location;
|
||||
use super::typedef::Type;
|
||||
use crate::location::Location;
|
||||
use crate::typecheck::typedef::Type;
|
||||
use crate::top_level::DefinitionId;
|
||||
use rustpython_parser::ast::Expr;
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
use std::{collections::HashMap, sync::Arc};
|
||||
|
||||
use super::typecheck::symbol_resolver::SymbolResolver;
|
||||
use super::typecheck::type_inferencer::PrimitiveStore;
|
||||
use super::typecheck::typedef::{SharedUnifier, Type, Unifier};
|
||||
use crate::symbol_resolver::SymbolResolver;
|
||||
use inkwell::{builder::Builder, context::Context, module::Module, values::PointerValue};
|
||||
use parking_lot::RwLock;
|
||||
use rustpython_parser::ast::Stmt;
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
mod function_check;
|
||||
pub mod location;
|
||||
mod magic_methods;
|
||||
pub mod symbol_resolver;
|
||||
pub mod type_inferencer;
|
||||
pub mod typedef;
|
||||
mod unification_table;
|
||||
|
|
|
@ -4,8 +4,8 @@ use std::iter::once;
|
|||
use std::{cell::RefCell, sync::Arc};
|
||||
|
||||
use super::magic_methods::*;
|
||||
use super::symbol_resolver::SymbolResolver;
|
||||
use super::typedef::{Call, FunSignature, FuncArg, Type, TypeEnum, Unifier};
|
||||
use crate::symbol_resolver::SymbolResolver;
|
||||
use itertools::izip;
|
||||
use rustpython_parser::ast::{
|
||||
self,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use super::super::location::Location;
|
||||
use super::super::symbol_resolver::*;
|
||||
use super::super::typedef::*;
|
||||
use super::*;
|
||||
use crate::location::Location;
|
||||
use crate::symbol_resolver::*;
|
||||
use crate::top_level::DefinitionId;
|
||||
use indoc::indoc;
|
||||
use itertools::zip;
|
||||
|
|
Loading…
Reference in New Issue