3eaaf4ee77afdf1760f2e8b8d17affc657c8b08a,src/python/pants/backend/codegen/tasks/antlr_gen.py,AntlrGen,register_options,#Any#Any#,34

Before Change


  @classmethod
  def register_options(cls, register):
    super(AntlrGen, cls).register_options(register)
    cls.register_jvm_tool(register, "antlr3", ["//:antlr-3.4"])
    cls.register_jvm_tool(register, "antlr4", ["//:antlr-4"])

  @property

After Change


  def register_options(cls, register):
    super(AntlrGen, cls).register_options(register)
    for key, value in _DEFAULT_ANTLR_DEPS.items():
      cls.register_jvm_tool(register, key, [value])

  @property
  def config_section(self):
    return "antlr"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pantsbuild/pants
Commit Name: 3eaaf4ee77afdf1760f2e8b8d17affc657c8b08a
Time: 2015-07-21
Author: jrosenfield@squareup.com
File Name: src/python/pants/backend/codegen/tasks/antlr_gen.py
Class Name: AntlrGen
Method Name: register_options


Project Name: pantsbuild/pants
Commit Name: 1dda3a05a832569ea6a5ed9ff5056947ab181b99
Time: 2014-12-19
Author: benjyw@gmail.com
File Name: src/python/pants/backend/jvm/tasks/checkstyle.py
Class Name: Checkstyle
Method Name: register_options


Project Name: pantsbuild/pants
Commit Name: 0c5f68f79b76fb76aa46c5c0ce1bee3e04092b0e
Time: 2015-09-08
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/codegen/tasks/wire_gen.py
Class Name: WireGen
Method Name: register_options