Bug 1317180, part 6 - Removed some unused arguments from TypeSpec ctor. r=billm
--- a/ipc/ipdl/ipdl/ast.py
+++ b/ipc/ipdl/ipdl/ast.py
@@ -401,24 +401,23 @@ State.DYING = State(Loc.NONE, '[dying]',
class Param(Node):
def __init__(self, loc, typespec, name):
Node.__init__(self, loc)
self.name = name
self.typespec = typespec
class TypeSpec(Node):
- def __init__(self, loc, spec, array=0, nullable=0,
- myChmod=None, otherChmod=None):
+ def __init__(self, loc, spec):
Node.__init__(self, loc)
self.spec = spec # QualifiedId
- self.array = array # bool
- self.nullable = nullable # bool
- self.myChmod = myChmod # None or string
- self.otherChmod = otherChmod # None or string
+ self.array = 0 # bool
+ self.nullable = 0 # bool
+ self.myChmod = None # None or string
+ self.otherChmod = None # None or string
def basename(self):
return self.spec.baseid
def __str__(self): return str(self.spec)
class QualifiedId: # FIXME inherit from node?
def __init__(self, loc, baseid, quals=[ ]):