MCPcopy Create free account
hub / github.com/apple/coremltools / ProcessContent

Method ProcessContent

deps/protobuf/objectivec/DevTools/pddm.py:605–618  ·  view source on GitHub ↗

Processes the file contents.

(self, strip_expansion=False)

Source from the content-addressed store, hash-verified

603 return section
604
605 def ProcessContent(self, strip_expansion=False):
606 """Processes the file contents."""
607 self._ParseFile()
608 if strip_expansion:
609 # Without a collection the expansions become blank, removing them.
610 collection = None
611 else:
612 collection = MacroCollection()
613 for section in self._sections:
614 section.BindMacroCollection(collection)
615 result = ''
616 for section in self._sections:
617 result += section.text
618 self._processed_content = result
619
620 @property
621 def original_content(self):

Callers 4

mainFunction · 0.95
testBasicsMethod · 0.95

Calls 3

_ParseFileMethod · 0.95
MacroCollectionClass · 0.85
BindMacroCollectionMethod · 0.45

Tested by 3

testBasicsMethod · 0.76