def _MarkLocalVariableUsed(self, identifier):
    """Marks the local variable as used in the relevant scope.

    Marks the local variable in the scope nearest to the current scope that
    matches the given identifier as used.

    Args:
      identifier: The identifier representing the potential usage of a local
                  variable.
    """
    identifier = identifier.split('.', 1)[0]
    # Find the first instance of the identifier in the stack of function scopes
    # and mark it used.
    for unused_local_variables in reversed(
        self._unused_local_variables_by_scope):
      if identifier in unused_local_variables:
        del unused_local_variables[identifier]
        break
dataset/ETHPy150Open google/closure-linter/closure_linter/javascriptlintrules.py/JavaScriptLintRules._MarkLocalVariableUsed/original