Generate a list of supported DOM APIs from parsed WebIDLs.

This commit is contained in:
Josh Matthews 2016-06-29 11:14:11 -04:00
parent 2df5d705e1
commit 3c2435a172
9 changed files with 113 additions and 12 deletions

View file

@ -87,6 +87,8 @@ class Configuration:
getter = lambda x: x.interface.isJSImplemented()
elif key == 'isGlobal':
getter = lambda x: x.isGlobal()
elif key == 'isExposedConditionally':
getter = lambda x: x.interface.isExposedConditionally()
else:
getter = lambda x: getattr(x, key)
curr = filter(lambda x: getter(x) == val, curr)