Index: Source/bindings/scripts/IDLParser.pm |
diff --git a/Source/bindings/scripts/IDLParser.pm b/Source/bindings/scripts/IDLParser.pm |
index 3a2af0110a4617622a00026649b81730512db926..95bf8330c3a131e07d8ec8ae871f8db1a8f815dc 100644 |
--- a/Source/bindings/scripts/IDLParser.pm |
+++ b/Source/bindings/scripts/IDLParser.pm |
@@ -51,6 +51,7 @@ struct( domInterface => { |
constructors => '@', # Constructors, list of 'domFunction' |
customConstructors => '@', # Custom constructors, list of 'domFunction' |
isException => '$', # Used for exception interfaces |
+ isCallback => '$', # Used for callback interfaces |
}); |
# Used to represent domInterface contents (name of method, signature) |
@@ -470,7 +471,9 @@ sub parseCallbackRestOrInterface |
my $next = $self->nextToken(); |
if ($next->value() eq "interface") { |
- return $self->parseInterface($extendedAttributeList); |
+ my $interface = $self->parseInterface($extendedAttributeList); |
+ $interface->isCallback(1); |
+ return $interface; |
} |
if ($next->type() == IdentifierToken) { |
return $self->parseCallbackRest($extendedAttributeList); |