def checkAliasValidity(self):
    if (self.alias != None):
        if (len(self.arguments) != len(self.alias.arguments)):
            raise Exception(('%s has different number of arguments than its alias %s.' % (self.name, self.alias.name)))
        if ((self.returnType != self.alias.returnType) or (not (self.returnType.startswith(self.alias.returnType) or self.alias.returnType.startswith(self.returnType)))):
            raise Exception(("%s has different return value's type than its alias %s." % (self.name, self.alias.name)))
        for (index, argument) in enumerate(self.arguments):
            if (argument != self.alias.arguments[index]):
                raise Exception(('argument %s: "%s" of %s is different than "%s" of %s.' % (index, self.alias.arguments[index].getAsString(' '), self.alias.name, argument.getAsString(' '), self.name)))
def checkAliasValidity(self):
    if (self.alias != None):
        if (len(self.arguments) != len(self.alias.arguments)):
            raise Exception(('%s has different number of arguments than its alias %s.' % (self.name, self.alias.name)))
        if ((self.returnType != self.alias.returnType) or (not (self.returnType.startswith(self.alias.returnType) or self.alias.returnType.startswith(self.returnType)))):
            raise Exception(("%s has different return value's type than its alias %s." % (self.name, self.alias.name)))
        for (index, argument) in enumerate(self.arguments):
            if (argument != self.alias.arguments[index]):
                raise Exception(('argument %s: "%s" of %s is different than "%s" of %s.' % (index, self.alias.arguments[index].getAsString(' '), self.alias.name, argument.getAsString(' '), self.name)))