diff options
author | David Li <li.davidm96@gmail.com> | 2017-11-06 09:00:14 -0500 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2017-11-06 09:00:14 -0500 |
commit | 48411d44fd742800348dace427217a9b5727138d (patch) | |
tree | 06edd036fcd1b67d3fa5805442a8c0055c7e9140 /src/ast.rs | |
parent | 58f30a0ce9e8bb0dde99edcbbaf8e1b7757e2ee6 (diff) |
Reimplement checking of variable bindings
Diffstat (limited to 'src/ast.rs')
-rw-r--r-- | src/ast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -85,8 +85,8 @@ pub enum Expression { #[derive(Debug)] pub struct RecordField { - name: WithLocation<String>, - ty: WithLocation<String>, + pub name: WithLocation<String>, + pub ty: WithLocation<String>, } impl RecordField { @@ -98,7 +98,7 @@ impl RecordField { #[derive(Debug)] pub enum Ty { Name(String), - Array(Box<Ty>), + Array(Box<WithLocation<Ty>>), Record(Vec<WithLocation<RecordField>>), } |