

def setUp(self):
    super(AntlrGenTest, self).setUp()
    for ver in self.VERSIONS:
        self.create_file(relpath='{srcroot}/{dir}/{prefix}.g{version}'.format(version=ver, **ver.PARTS), contents=dedent("\n        grammar {prefix};\n        ////////////////////\n        start  : letter EOF ;\n        letter : LETTER ;\n        ////////////////////\n        fragment LETTER : 'a'..'z' | 'A'..'Z' ;\n      ".format(**self.PARTS)))

dataset/ETHPy150Open pantsbuild/pants/tests/python/pants_test/backend/codegen/tasks/test_antlr_gen.py AntlrGenTest.setUp/VarMisuse@45/65 `self`->`ver`