Chromium Code Reviews
DescriptionRemove some duplicate code in FunctionTypeImpl.
I noticed it when I was in there for LUB, so I figured I'd do some
spring cleaning. Changes are:
- Consolidate duplicate code in namedParameterTypes,
normalParameterTypes, and optionalParameterTypes into a shared
_forEachParameterType() method.
- Consolidate duplicate code in isSubtypeOf() and isMoreSpecificThan()
into a shared _testTypeRelation() method that is parameterized over
the specific relation.
- Also some other small-scale changes in the relation code.
R=paulberry@google.com
Committed: https://github.com/dart-lang/sdk/commit/67b725986b83e37a7faa50f02c2a19b76b68d8a6
Patch Set 1 #
Total comments: 6
Patch Set 2 : Revise with feedback. #Messages
Total messages: 6 (2 generated)
|