Skip to content
Browse files

Ensured extended attributes on an attribute becomes an

<ExtendedAttributeList>, and ensured that they appear in the <webidl>
element too.

git-svn-id: http://widl.webvm.net/svn/widlproc/trunk@417 b2e84630-a466-403e-8074-5faad0055f28
  • Loading branch information...
1 parent 6086883 commit 74ae26ef2140e92af0df7c2aa3f3f6bd6eecc23a tpr committed Jan 26, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/parse.c
View
4 src/parse.c
@@ -509,6 +509,7 @@ static struct node *
parseoperationrest(struct tok *tok, struct node *eal, struct node *attrs)
{
struct node *node = newelement("Operation");
+ if (eal) addnode(node, eal);
setcommentnode(node);
addnode(node, attrs);
addnode(node, parsereturntype(tok));
@@ -540,6 +541,7 @@ static struct node *
parseattribute(struct tok *tok, struct node *eal, struct node *attrs)
{
struct node *node = newelement("Attribute");
+ if (eal) addnode(node, eal);
setcommentnode(node);
addnode(node, attrs);
if (tok->type == TOK_readonly) {
@@ -748,8 +750,8 @@ parseinterface(struct tok *tok, struct node *eal)
}
eat(tok, '{');
while (tok->type != '}') {
- struct node *eal = parseextendedattributelist(tok);
const char *start = tok->prestart;
+ struct node *eal = parseextendedattributelist(tok);
struct node *node2;
if (tok->type == TOK_const)
addnode(node, node2 = parseconst(tok, eal));

0 comments on commit 74ae26e

Please sign in to comment.
Something went wrong with that request. Please try again.