def CheckCompletedBlocks(self, filename, error):
<EOL>for obj in self.stack:<EOL><INDENT>if isinstance(obj, _ClassInfo):<EOL><INDENT>error(filename, obj.starting_linenum, '<STR_LIT>', <NUM_LIT:5>,<EOL>'<STR_LIT>' %<EOL>obj.name)<EOL><DEDENT>elif isinstance(obj, _NamespaceInfo):<EOL><INDENT>error(filename, obj.starting_linenum, '<STR_LIT>', <NUM_LIT:5>,<EOL>'<STR_LIT>' %<EOL>obj.name)<EOL><DEDENT><DEDENT>
Checks that all classes and namespaces have been completely parsed.

        Call this when all lines in a file have been processed.
        Args:
          filename: The name of the current file.
          error: The function to call with any errors found.