def resolve_links(self, link_resolver):
self.type_link = None<EOL>self.type_tokens = []<EOL>for child in self.get_children_symbols():<EOL><INDENT>child.resolve_links(link_resolver)<EOL><DEDENT>for tok in self.input_tokens:<EOL><INDENT>if isinstance(tok, Link):<EOL><INDENT>self.type_link = link_resolver.upsert_link(tok)<EOL>self.type_tokens.append(self.type_link)<EOL><DEDENT>else:<EOL><INDENT>self.type_tokens.append(tok)<EOL><DEDENT><DEDENT>
Banana banana