First steps toward removing MethodTrampoline

R=scheglov@google.com

Review URL: https://codereview.chromium.org/2348353002 .
This commit is contained in:
Brian Wilkerson 2016-09-19 08:24:29 -07:00
parent 699e328105
commit 57f1193c01
3 changed files with 5455 additions and 4247 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -416,17 +416,16 @@ class GatheringErrorListener implements AnalysisErrorListener {
}
/**
* Return `true` if the two errors are equivalent.
*
* @param firstError the first error being compared
* @param secondError the second error being compared
* @return `true` if the two errors are equivalent
* Return `true` if the [actualError] matches the [expectedError].
*/
bool _equalErrors(AnalysisError firstError, AnalysisError secondError) =>
identical(firstError.errorCode, secondError.errorCode) &&
firstError.offset == secondError.offset &&
firstError.length == secondError.length &&
_equalSources(firstError.source, secondError.source);
bool _equalErrors(AnalysisError expectedError, AnalysisError actualError) {
Source expectedSource = expectedError.source;
return identical(expectedError.errorCode, actualError.errorCode) &&
expectedError.offset == actualError.offset &&
expectedError.length == actualError.length &&
(expectedSource == null ||
_equalSources(expectedSource, actualError.source));
}
/**
* Return `true` if the two sources are equivalent.