def get_lookup_key(self) -> 'LookupKey':
    symbols = []
    s = self
    while s.parent:
        symbols.append(s)
        s = s.parent
    symbols.reverse()
    key = []
    for s in symbols:
        nne = ASTNestedNameElement(s.identOrOp, s.templateArgs)
        if (s.declaration is not None):
            key.append((nne, s.templateParams, s.declaration.get_newest_id()))
        else:
            key.append((nne, s.templateParams, None))
    return LookupKey(key)
def get_lookup_key(self) -> 'LookupKey':
    symbols = []
    s = self
    while s.parent:
        symbols.append(s)
        s = s.parent
    symbols.reverse()
    key = []
    for s in symbols:
        nne = ASTNestedNameElement(s.identOrOp, s.templateArgs)
        if (s.declaration is not None):
            key.append((nne, s.templateParams, s.declaration.get_newest_id()))
        else:
            key.append((nne, s.templateParams, None))
    return LookupKey(key)