

def Finalize(self, state):
    'Perform all checks that need to occur after all lines are processed.'
    super(JavaScriptLintRules, self).Finalize(token)
    if error_check.ShouldCheck(Rule.UNUSED_PRIVATE_MEMBERS):
        unused_private_members = (self._declared_private_members - self._used_private_members)
        for variable in unused_private_members:
            token = self._declared_private_member_tokens[variable]
            self._HandleError(errors.UNUSED_PRIVATE_MEMBER, ('Unused private member: %s.' % token.string), token)
        self._declared_private_member_tokens = {
            
        }
        self._declared_private_members = set()
        self._used_private_members = set()
    namespaces_info = self._namespaces_info
    if (namespaces_info is not None):
        if ((not namespaces_info.GetProvidedNamespaces()) and (not namespaces_info.GetRequiredNamespaces())):
            missing_provides = namespaces_info.GetMissingProvides()
            if missing_provides:
                self._ReportMissingProvides(missing_provides, state.GetFirstToken(), None)
            (missing_requires, illegal_alias) = namespaces_info.GetMissingRequires()
            if missing_requires:
                self._ReportMissingRequires(missing_requires, state.GetFirstToken(), None)
            if illegal_alias:
                self._ReportIllegalAliasStatement(illegal_alias)
    self._CheckSortedRequiresProvides(state.GetFirstToken())

dataset/ETHPy150Open google/closure-linter/closure_linter/javascriptlintrules.py JavaScriptLintRules.Finalize/VarMisuse@23/53 `state`->`token`