Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Unified Diff: Source/bindings/scripts/IDLParser.pm

Issue 14179013: Add support for [NoInterfaceObject] extended attribute to bindings generator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Faster processing of DOMWindow.idl + Handling of Callback interfaces Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/scripts/IDLParser.pm
diff --git a/Source/bindings/scripts/IDLParser.pm b/Source/bindings/scripts/IDLParser.pm
index 3a2af0110a4617622a00026649b81730512db926..593440f3fbaaa193f57b6e2447740b7664562bd4 100644
--- a/Source/bindings/scripts/IDLParser.pm
+++ b/Source/bindings/scripts/IDLParser.pm
@@ -170,6 +170,21 @@ sub assertNoExtendedAttributesInTypedef
die $msg if %{$typedef->extendedAttributes};
}
+sub ParseOnlyExtendedAttributes
+{
+ my $self = shift;
+ my $fileName = shift;
+ my $defines = shift;
+ my $preprocessor = shift;
+
+ my @lines = applyPreprocessor($fileName, $defines, $preprocessor);
+ $self->{Line} = $lines[0];
+ $self->{DocumentContent} = join(' ', @lines);
+
+ $self->getToken();
+ return $self->parseExtendedAttributeListAllowEmpty();
+}
+
sub Parse
{
my $self = shift;

Powered by Google App Engine
This is Rietveld 408576698