Meta: Parse WebIDL declarations into structured objects
Teach the python WebIDL parser to retain typed declarations instead of keeping or skipping raw text.
This commit is contained in:
parent
a455d27e32
commit
2e09af3116
2 changed files with 873 additions and 395 deletions
|
|
@ -471,7 +471,7 @@ WEB_API void Intrinsics::create_web_prototype_and_constructor<{interface.prototy
|
|||
)
|
||||
|
||||
named_properties_class = ""
|
||||
if "Global" in interface.extended_attributes and interface.supports_named_properties():
|
||||
if "Global" in interface.extended_attributes and interface.supports_named_properties:
|
||||
named_properties_class = f"{interface.name}Properties"
|
||||
|
||||
if named_properties_class:
|
||||
|
|
@ -505,7 +505,7 @@ WEB_API void Intrinsics::create_web_prototype_and_constructor<{interface.prototy
|
|||
return
|
||||
|
||||
named_properties_class = ""
|
||||
if "Global" in interface.extended_attributes and interface.supports_named_properties():
|
||||
if "Global" in interface.extended_attributes and interface.supports_named_properties:
|
||||
named_properties_class = f"{interface.name}Properties"
|
||||
|
||||
out.write(
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue