def __init__(self, name, parent, conditionType, lineNo, debugObj): global debug debug = debugObj debug.writeTrace("Condition Constructor") Statement.__init__(self, name, parent, lineNo, debug) self.conditionType = conditionType self.children = []
def __init__(self, name, parent, loopType, lineNo, debugObj): global debug debug = debugObj debug.writeTrace("Loop Constructor") Statement.__init__(self, name, parent, lineNo, debug) self.loopType = loopType self.children = []
def __init__(self, name, parent, lineNo, debugObj): global debug debug = debugObj debug.writeTrace("TryCatch Constructor") Statement.__init__(self, name, parent, lineNo, debugObj) self.tryChildren = [] self.catchChildren = []