MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / main

Function main

tests/external/gmock-1.7.0/scripts/generator/cpp/ast.py:1701–1719  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

1699
1700
1701def main(argv):
1702 for filename in argv[1:]:
1703 source = utils.ReadFile(filename)
1704 if source is None:
1705 continue
1706
1707 print('Processing %s' % filename)
1708 builder = BuilderFromSource(source, filename)
1709 try:
1710 entire_ast = filter(None, builder.Generate())
1711 except KeyboardInterrupt:
1712 return
1713 except:
1714 # Already printed a warning, print the traceback and continue.
1715 traceback.print_exc()
1716 else:
1717 if utils.DEBUG:
1718 for ast in entire_ast:
1719 print(ast)
1720
1721
1722if __name__ == '__main__':

Callers 1

ast.pyFile · 0.70

Calls 3

BuilderFromSourceFunction · 0.85
filterFunction · 0.50
GenerateMethod · 0.45

Tested by

no test coverage detected