Page MenuHomePhabricator

Use PhutilClassMapQuery
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 10, 11:14 AM
Unknown Object (File)
Sat, Apr 6, 1:49 AM
Unknown Object (File)
Sun, Mar 31, 7:49 PM
Unknown Object (File)
Mar 25 2024, 2:00 PM
Unknown Object (File)
Feb 9 2024, 3:39 PM
Unknown Object (File)
Jan 28 2024, 5:34 AM
Unknown Object (File)
Dec 29 2023, 5:27 AM
Unknown Object (File)
Dec 18 2023, 11:28 PM
Subscribers

Details

Summary

Use PhutilClassMapQuery where appropriate.

Test Plan

arc unit

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Use PhutilClassMapQuery.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 25 2015, 12:16 PM

Oh, there's also a bunch of additional places where it maybe makes sense to use PhutilClassMapQuery instead of PhutilSymbolLoader just because of the cacheing... what do you thnk?

For example, in ArcanistConfigurationDrivenLintEngine we do this:

$linters = id(new PhutilSymbolLoader())
  ->setAncestorClass('ArcanistLinter')
  ->loadObjects();

I think it's probably good to use it everywhere -- the caching probably isn't too important, but I think it's more consistent and makes intent more clear.

This revision was automatically updated to reflect the committed changes.