mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
Issue #1322 - Part 4: Fix WebIDL.py parser for line endings and wrong
IDL name
This commit is contained in:
parent
15672c6231
commit
d3e44892bf
1 changed files with 40 additions and 40 deletions
|
|
@ -2851,9 +2851,9 @@ class IDLWrapperType(IDLType):
|
||||||
return set()
|
return set()
|
||||||
|
|
||||||
|
|
||||||
class IDLPromiseType(IDLParametrizedType):
|
class IDLPromiseType(IDLParameterizedType):
|
||||||
def __init__(self, location, innerType):
|
def __init__(self, location, innerType):
|
||||||
IDLParametrizedType.__init__(self, location, "Promise", innerType)
|
IDLParameterizedType.__init__(self, location, "Promise", innerType)
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
return (isinstance(other, IDLPromiseType) and
|
return (isinstance(other, IDLPromiseType) and
|
||||||
|
|
@ -6439,7 +6439,7 @@ class Parser(Tokenizer):
|
||||||
|
|
||||||
if p[1].name == "Promise":
|
if p[1].name == "Promise":
|
||||||
raise WebIDLError("Promise used without saying what it's "
|
raise WebIDLError("Promise used without saying what it's "
|
||||||
"parametrized over",
|
"parameterized over",
|
||||||
[self.getLocation(p, 1)])
|
[self.getLocation(p, 1)])
|
||||||
|
|
||||||
type = None
|
type = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue