fb69acebcd2b2783dc03913e46ecfa029704f0a8,src/python/pants/base/build_file_parser.py,BuildFileParser,parse_build_file_family,#BuildFileParser#Any#,251

Before Change


  def parse_build_file_family(self, build_file):
    if build_file not in self._added_build_file_families:
      for bf in build_file.family():
        self.parse_build_file(bf)
    self._added_build_file_families.add(build_file)

  def parse_build_file(self, build_file):
    Capture TargetProxies from parsing `build_file`.

After Change


  def parse_build_file_family(self, build_file):
    family_address_map_by_build_file = {}  // {build_file: {address: addressable}}
    for bf in build_file.family():
      bf_address_map = self.parse_build_file(bf)
      for address, addressable in bf_address_map.items():
        for sibling_build_file, sibling_address_map in family_address_map_by_build_file.items():
          if address in sibling_address_map:
            raise BuildFileParser.SiblingConflictException(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: fb69acebcd2b2783dc03913e46ecfa029704f0a8
Time: 2014-08-12
Author: pl@foursquare.com
File Name: src/python/pants/base/build_file_parser.py
Class Name: BuildFileParser
Method Name: parse_build_file_family


Project Name: pantsbuild/pants
Commit Name: fb69acebcd2b2783dc03913e46ecfa029704f0a8
Time: 2014-08-12
Author: pl@foursquare.com
File Name: src/python/pants/backend/core/tasks/dependees.py
Class Name: ReverseDepmap
Method Name: console_output


Project Name: pantsbuild/pants
Commit Name: fb69acebcd2b2783dc03913e46ecfa029704f0a8
Time: 2014-08-12
Author: pl@foursquare.com
File Name: src/python/pants/backend/core/tasks/what_changed.py
Class Name: WhatChanged
Method Name: _owning_targets