Skip to content

Commit

Permalink
Use VisitOperator trait in new FuncTranslator (#645)
Browse files Browse the repository at this point in the history
* separate visit_ from non visit_ functions

* rename internal funcs to translate_

Also make them private.

* move acquire_target method

* move FuncTranslator into translator.rs

Also move VisitOperator for FuncBuilder into mod.rs.

* refactor validate_then_translate method

* impl VisitOperator for FuncTranslator

So far all the translation (or visit) methods were simple methods but mimicking the VisitOperator trait. This commit now turns all those free standing methods into trait method impls.
  • Loading branch information
Robbepop committed Feb 3, 2023
1 parent 398d50d commit 2599728
Show file tree
Hide file tree
Showing 3 changed files with 2,037 additions and 2,156 deletions.
Loading

0 comments on commit 2599728

Please sign in to comment.