summaryrefslogtreecommitdiff
path: root/src/ast.rs
diff options
context:
space:
mode:
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>>),
}