From 5bbbcfa67672a7791aec9102caaaea1be0b1e7e7 Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 13 Nov 2019 18:45:24 -0800 Subject: [PATCH] Add note --- schala-lang/language/src/ast/visitor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schala-lang/language/src/ast/visitor.rs b/schala-lang/language/src/ast/visitor.rs index 6e74596..13dd73c 100644 --- a/schala-lang/language/src/ast/visitor.rs +++ b/schala-lang/language/src/ast/visitor.rs @@ -46,6 +46,8 @@ pub enum VisitorOutput { Err(E) } +//TODO - cf. the example about "Tree Construction Visitors", every enum type needs its own Visitor +//trait pub trait ExpressionVisitor { type Output; fn type_anno(&mut self, _anno: &TypeIdentifier) -> Self::Output;