def _find_first_named_symbol(self, identOrOp: Union[(ASTIdentifier, ASTOperator)], templateParams: Any, templateArgs: ASTTemplateArgs, templateShorthand: bool, matchSelf: bool, recurseInAnon: bool, correctPrimaryTemplateArgs: bool) -> 'Symbol':
    if Symbol.debug_lookup:
        Symbol.debug_print('_find_first_named_symbol ->')
    res = self._find_named_symbols(identOrOp, templateParams, templateArgs, templateShorthand, matchSelf, recurseInAnon, correctPrimaryTemplateArgs, searchInSiblings=False)
    try:
        return next(res)
    except StopIteration:
        return None
def _find_first_named_symbol(self, identOrOp: Union[(ASTIdentifier, ASTOperator)], templateParams: Any, templateArgs: ASTTemplateArgs, templateShorthand: bool, matchSelf: bool, recurseInAnon: bool, correctPrimaryTemplateArgs: bool) -> 'Symbol':
    if Symbol.debug_lookup:
        Symbol.debug_print('_find_first_named_symbol ->')
    res = self._find_named_symbols(identOrOp, templateParams, templateArgs, templateShorthand, matchSelf, recurseInAnon, correctPrimaryTemplateArgs, searchInSiblings=False)
    try:
        return next(res)
    except StopIteration:
        return None