def populateAliases(objects):
    objectsByName = {}
    for object in objects:
        objectsByName[object.name] = object
    for object in objects:
        withoutPostfix = removeTypeExtPostfix(object.name)
        if ((withoutPostfix != None) and (withoutPostfix in objectsByName)):
            objectsByName[withoutPostfix].alias = object
            object.isAlias = True
    for object in objects:
        object.checkAliasValidity()
def populateAliases(objects):
    objectsByName = {}
    for object in objects:
        objectsByName[object.name] = object
    for object in objects:
        withoutPostfix = removeTypeExtPostfix(object.name)
        if ((withoutPostfix != None) and (withoutPostfix in objectsByName)):
            objectsByName[withoutPostfix].alias = object
            object.isAlias = True
    for object in objects:
        object.checkAliasValidity()