summaryrefslogtreecommitdiff
path: root/src/ast.rs
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2017-11-06 09:00:14 -0500
committerDavid Li <li.davidm96@gmail.com>2017-11-06 09:00:14 -0500
commit48411d44fd742800348dace427217a9b5727138d (patch)
tree06edd036fcd1b67d3fa5805442a8c0055c7e9140 /src/ast.rs
parent58f30a0ce9e8bb0dde99edcbbaf8e1b7757e2ee6 (diff)
Reimplement checking of variable bindings
Diffstat (limited to 'src/ast.rs')
-rw-r--r--src/ast.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast.rs b/src/ast.rs
index 8b93e34..3cc68c1 100644
--- a/src/ast.rs
+++ b/src/ast.rs
@@ -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>>),
}