@classmethod
def buildmap(cls, items):
    """Parse a list of alias (name, replacement) pairs into a dict of
        alias objects"""
    aliases = {}
    for decl, defn in items:
        a = cls.build(decl, defn)
        aliases[a.name] = a
    return aliases
