Commit 7670098a authored by Christian Hergert's avatar Christian Hergert

signature: add dispatch for union

parent 17d4e6d9
......@@ -49,6 +49,7 @@
#include "parser/girst-record.h"
#include "parser/girst-return-value.h"
#include "parser/girst-type.h"
#include "parser/girst-union.h"
#include "parser/girst-varargs.h"
#include "parser/girst-virtual-method.h"
......@@ -271,6 +272,14 @@ girst_type_get_lhs_ctype (GirstType *self)
return NULL;
}
gchar *
girst_union_get_lhs_ctype (GirstUnion *self)
{
g_return_val_if_fail (GIRST_IS_UNION (self), NULL);
return g_strdup (girst_union_get_c_type (self));
}
gchar *
girst_record_get_lhs_ctype (GirstRecord *self)
{
......@@ -515,6 +524,9 @@ girst_parser_object_get_lhs_ctype (GirstParserObject *self)
if (GIRST_IS_IMPLEMENTS (self))
return girst_implements_get_lhs_ctype (GIRST_IMPLEMENTS (self));
if (GIRST_IS_UNION (self))
return girst_union_get_lhs_ctype (GIRST_UNION (self));
if (GIRST_IS_VARARGS (self))
return girst_varargs_get_lhs_ctype (GIRST_VARARGS (self));
......
......@@ -41,6 +41,7 @@ gchar *girst_parser_object_get_lhs_ctype (GirstParserObject
gchar *girst_property_get_lhs_ctype (GirstProperty *self);
gchar *girst_record_get_lhs_ctype (GirstRecord *self);
gchar *girst_return_value_get_lhs_ctype (GirstReturnValue *self);
gchar *girst_union_get_lhs_ctype (GirstUnion *self);
gchar *girst_virtual_method_get_lhs_ctype (GirstVirtualMethod *self);
gchar *girst_type_get_lhs_ctype (GirstType *self);
gchar *girst_varargs_get_lhs_ctype (GirstVarargs *self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment