Lines Matching refs:contents
143 contents = file_handle.read()
152 if decode(output) != contents:
559 def ProcessContents(self, name, contents):
563 if '\t' in contents:
569 if not COPYRIGHT_HEADER_PATTERN.search(contents):
572 if ' \n' in contents or contents.endswith(' '):
575 parts = contents.split(' \n')
576 if not contents.endswith(' '):
587 if not contents.endswith('\n') or contents.endswith('\n\n'):
592 match = FLAGS_LINE.search(contents)
598 if ASSERT_OPTIMIZED_PATTERN.search(contents) and \
599 not FLAGS_ENABLE_OPT.search(contents):
603 if ASSERT_UNOPTIMIZED_PATTERN.search(contents) and \
604 not FLAGS_NO_ALWAYS_OPT.search(contents):
609 match = self.runtime_function_call_pattern.search(contents)
621 contents = decode(handle.read(), "ISO-8859-1")
622 if len(contents) > 0 and not self.ProcessContents(file, contents):
653 contents = "\n".join(lines)
655 contents = contents.replace("'", '"')
658 contents = re.sub(r"\b%s\b" % key, "\"%s\"" % key, contents)
669 json.loads(contents, object_pairs_hook=check_pairs)