edd039bf98702f3eb01a7cd4e25559247e686a72,src/python/pants/engine/build_files.py,,create_graph_rules,#Any#Any#,320
Before Change
symbol_table_constraint = symbol_table_cls.constraint()
return [
TaskRule(BuildFilesCollection,
[SelectDependencies(BuildFiles, BuildDirs, field_types=(Dir,))] ,
BuildFilesCollection),
// A singleton to provide the AddressMapper.
SingletonRule(AddressMapper, address_mapper),
After Change
:param symbol_table_cls: A SymbolTable class to provide symbols for Address lookups.
symbol_table_constraint = symbol_table_cls.constraint()
return [
TaskRule(BuildFilesCollection,
[SelectDependencies(BuildFiles, BuildDirs, field_types=(Dir,))],
BuildFilesCollection),
// A singleton to provide the AddressMapper.
SingletonRule(AddressMapper, address_mapper),
// Support for resolving Structs from Addresses.
TaskRule(
symbol_table_constraint,
[Select(AddressMapper),
Select(UnhydratedStruct),
SelectDependencies(symbol_table_constraint, UnhydratedStruct, field_types=(Address,))],
hydrate_struct
),
resolve_unhydrated_struct,
// BUILD file parsing.
parse_address_family,
build_files,
buildfile_path_globs_for_dir,
// Spec handling: locate directories that contain build files, and request
// AddressFamilies for each of them.
addresses_from_address_families,
filter_build_dirs,
spec_to_globs,
// Root rules representing parameters that might be provided via root subjects.
RootRule(Address),
RootRule(BuildFileAddress),
RootRule(AscendantAddresses),
RootRule(DescendantAddresses),
RootRule(SiblingAddresses),
RootRule(SingleAddress),
]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: pantsbuild/pants
Commit Name: edd039bf98702f3eb01a7cd4e25559247e686a72
Time: 2017-06-16
Author: stuhood@twitter.com
File Name: src/python/pants/engine/build_files.py
Class Name:
Method Name: create_graph_rules
Project Name: pantsbuild/pants
Commit Name: 2d56d4dce9bb8a5ee96250b80c6321e1edd1455c
Time: 2018-05-14
Author: stuhood@twitter.com
File Name: tests/python/pants_test/engine/test_mapper.py
Class Name: AddressMapperTest
Method Name: setUp
Project Name: pantsbuild/pants
Commit Name: 03fbea65b93d51c910b957921e4ff63319117d73
Time: 2017-04-11
Author: ndh@baroquebobcat.com
File Name: src/python/pants/engine/legacy/address_mapper.py
Class Name: LegacyAddressMapper
Method Name: scan_build_files