Skip to content

Commit

Permalink
fixup! Refactor visitor to handle sui-typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tnowacki committed Aug 18, 2023
1 parent f5f48bd commit 0603cd6
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 267 deletions.
4 changes: 2 additions & 2 deletions crates/sui-move-build/src/linters/coin_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use move_compiler::{
expansion::ast as E,
naming::ast as N,
shared::{CompilationEnv, Identifier},
typing::{ast as T, core::ProgramInfo, visitor::TypingVisitor},
typing::{ast as T, core::TypingProgramInfo, visitor::TypingVisitor},
};
use move_core_types::account_address::AccountAddress;
use move_ir_types::location::Loc;
Expand All @@ -36,7 +36,7 @@ impl TypingVisitor for CoinFieldVisitor {
fn visit(
&mut self,
env: &mut CompilationEnv,
_program_info: &ProgramInfo,
_program_info: &TypingProgramInfo,
program: &mut T::Program,
) {
for (_, _, mdef) in program.modules.iter() {
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-move-build/src/linters/collection_equality.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use move_compiler::{
shared::{CompilationEnv, Identifier},
typing::{
ast as T,
core::ProgramInfo,
core::TypingProgramInfo,
visitor::{TypingVisitorConstructor, TypingVisitorContext},
},
};
Expand Down Expand Up @@ -63,7 +63,7 @@ impl TypingVisitorConstructor for CollectionEqualityVisitor {

fn context<'a>(
env: &'a mut CompilationEnv,
_program_info: &'a ProgramInfo,
_program_info: &'a TypingProgramInfo,
_program: &T::Program,
) -> Self::Context<'a> {
Context { env }
Expand Down
Loading

0 comments on commit 0603cd6

Please sign in to comment.