summaryrefslogtreecommitdiff
path: root/src/jsapi-libdom-property.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-01-09 18:29:29 +0000
committerVincent Sanders <vince@kyllikki.org>2014-05-16 14:38:57 +0100
commit6031dd6e55216bd4d9a78c4869bb8b5e5f5aa3c3 (patch)
tree8776dc38c637434bae6ff1739ab6f6e774604c7f /src/jsapi-libdom-property.c
parent74158664a1826e5763e7c6949a915c75c8c1a23d (diff)
downloadnsgenbind-6031dd6e55216bd4d9a78c4869bb8b5e5f5aa3c3.tar.gz
nsgenbind-6031dd6e55216bd4d9a78c4869bb8b5e5f5aa3c3.tar.bz2
Expand implements statements in the AST after it has been built
This greatly simplifies output generation because instead of dealing with implements on every traverse they are expanded once. Additionaly errors in expansion are found and generate error early.
Diffstat (limited to 'src/jsapi-libdom-property.c')
-rw-r--r--src/jsapi-libdom-property.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/jsapi-libdom-property.c b/src/jsapi-libdom-property.c
index df296cf..93ffcc5 100644
--- a/src/jsapi-libdom-property.c
+++ b/src/jsapi-libdom-property.c
@@ -131,14 +131,6 @@ webidl_property_tinyid_cb(struct webidl_node *node, void *ctx)
return 0;
}
-/* callback to emit implements property spec */
-static int
-webidl_property_tinyid_implements_cb(struct webidl_node *node, void *ctx)
-{
- struct binding *binding = ctx;
-
- return generate_property_tinyid(binding, webidl_node_gettext(node));
-}
static int
generate_property_tinyid(struct binding *binding, const char *interface)
@@ -190,13 +182,6 @@ generate_property_tinyid(struct binding *binding, const char *interface)
res = generate_property_tinyid(binding, webidl_node_gettext(inherit_node));
}
- if (res == 0) {
- res = webidl_node_for_each_type(webidl_node_getnode(interface_node),
- WEBIDL_NODE_TYPE_INTERFACE_IMPLEMENTS,
- webidl_property_tinyid_implements_cb,
- binding);
- }
-
return res;
}
@@ -429,13 +414,6 @@ static int webidl_property_spec_cb(struct webidl_node *node, void *ctx)
}
-/* callback to emit implements property spec */
-static int webidl_property_spec_implements_cb(struct webidl_node *node, void *ctx)
-{
- struct binding *binding = ctx;
-
- return generate_property_spec(binding, webidl_node_gettext(node));
-}
static int
generate_property_spec(struct binding *binding, const char *interface)
@@ -488,13 +466,6 @@ generate_property_spec(struct binding *binding, const char *interface)
webidl_node_gettext(inherit_node));
}
- if (res == 0) {
- res = webidl_node_for_each_type(webidl_node_getnode(interface_node),
- WEBIDL_NODE_TYPE_INTERFACE_IMPLEMENTS,
- webidl_property_spec_implements_cb,
- binding);
- }
-
return res;
}
@@ -954,17 +925,6 @@ static int webidl_property_body_cb(struct webidl_node *node, void *ctx)
}
-
-/* callback to emit implements property bodys */
-static int webidl_implements_cb(struct webidl_node *node, void *ctx)
-{
- struct binding *binding = ctx;
-
- return generate_property_body(binding, webidl_node_gettext(node));
-}
-
-
-
static int
generate_property_body(struct binding *binding, const char *interface)
{
@@ -1018,13 +978,6 @@ generate_property_body(struct binding *binding, const char *interface)
webidl_node_gettext(inherit_node));
}
- if (res == 0) {
- res = webidl_node_for_each_type(webidl_node_getnode(interface_node),
- WEBIDL_NODE_TYPE_INTERFACE_IMPLEMENTS,
- webidl_implements_cb,
- binding);
- }
-
return res;
}