summaryrefslogtreecommitdiff
path: root/src/ast.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.ml')
-rw-r--r--src/ast.ml5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ast.ml b/src/ast.ml
index d23b573..c204ff8 100644
--- a/src/ast.ml
+++ b/src/ast.ml
@@ -93,7 +93,10 @@ type cls = {
c_members : cls_mem list;
}
-type declaration =
+type declaration = {
+ d_loc : loc;
+ d_desc : decl_desc; }
+and decl_desc =
| DGlobal of (var_type * ident)
| DFunction of (proto * block)
| DClass of cls