summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-09-04 00:55:16 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-09-04 00:55:16 -0400
commit07233d517e4ff5c8aa1c3ea4fd91ea3fba6658b8 (patch)
tree7143de45acd9ed22f2a7a227ff27c4672641d1fc /ast.c
parent4d0dd6fd594eb4f6fd2ced69cf88a7340458e4d1 (diff)
Working field access
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ast.c b/ast.c
index 2b31f9e..96907e3 100644
--- a/ast.c
+++ b/ast.c
@@ -402,6 +402,15 @@ ast_type_spec_new_class (ast_class_definition_t *class)
return type_spec;
}
+ast_type_spec_t *
+ast_type_spec_resolve (ast_type_spec_t *type)
+{
+ if (type->common.type == AST_IDENTIFIER_TYPE)
+ return ast_type_spec_resolve (type->identifier.resolved);
+ else
+ return type;
+}
+
static ast_definition_t *
definition_new (ast_definition_type_t type)
{