[engine] Introduce TypeConstraint#satisfied_by_type

Review Request #4260 - Created Sept. 26, 2016 and submitted

Information
Nick Howard (Twitter)
pants
3903
Reviewers
pants-reviews
kwlzn, stuhood, yujiec

For doing static analysis with TypeConstraints, it's helpful to be able to test the types directly.

This introduces an interface for doing that, TypeConstraint#satisfied_by_type.

CI away on the associated PR. I also added a unit test.

Kris Wilson
Stu Hood
Nick Howard (Twitter)
Nick Howard (Twitter)
Yujie Chen
Nick Howard (Twitter)
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted as https://github.com/pantsbuild/pants/commit/f5212b9abfddfa49e349683ee0c3ac4c15c7c587
Loading...