summaryrefslogtreecommitdiff
path: root/src/ir.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-10-24 19:36:20 +0100
committerVincent Sanders <vince@kyllikki.org>2015-10-24 19:36:20 +0100
commita126224b443aa279e58a6d58f316b2182086812b (patch)
treea65e3f763ef3e70cc7ca28d7d695d1bead18feb1 /src/ir.h
parentc260593486213c84521b23b40759800e4a312db9 (diff)
downloadnsgenbind-a126224b443aa279e58a6d58f316b2182086812b.tar.gz
nsgenbind-a126224b443aa279e58a6d58f316b2182086812b.tar.bz2
Extend IR attribute entries to contain the type modifiler
Diffstat (limited to 'src/ir.h')
-rw-r--r--src/ir.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/ir.h b/src/ir.h
index 12f1e79..87c72c3 100644
--- a/src/ir.h
+++ b/src/ir.h
@@ -47,14 +47,18 @@ struct ir_operation_entry {
struct ir_operation_overload_entry *overloadv;
};
-/** map entry for attributes on an interface */
+/**
+ * ir entry for attributes on an interface
+ */
struct ir_attribute_entry {
- const char *name; /** attribute name */
+ const char *name; /**< attribute name */
struct webidl_node *node; /**< AST attribute node */
- enum webidl_type base_type; /* type of attribute */
- enum webidl_type_modifier modifier; /* type modifier */
- const char *putforwards;
+ enum webidl_type base_type; /**< type of attribute */
+ enum webidl_type_modifier type_modifier; /**< modifier for the type */
+
+ enum webidl_type_modifier modifier; /**< modifier for the attribute intself */
+ const char *putforwards; /**< putforwards attribute */
struct genbind_node *getter; /**< getter from binding */
struct genbind_node *setter; /**< getter from binding */
@@ -66,7 +70,9 @@ struct ir_attribute_entry {
*/
};
-/** map entry for constants on an interface */
+/**
+ * map entry for constants on an interface
+ */
struct ir_constant_entry {
const char *name; /** attribute name */
struct webidl_node *node; /**< AST constant node */