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