| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.constant; | 8 library engine.constant; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3519 EvaluationResultImpl(this.value, [List<AnalysisError> errors]) { | 3519 EvaluationResultImpl(this.value, [List<AnalysisError> errors]) { |
| 3520 this._errors = errors == null ? <AnalysisError>[] : errors; | 3520 this._errors = errors == null ? <AnalysisError>[] : errors; |
| 3521 } | 3521 } |
| 3522 | 3522 |
| 3523 @deprecated // Use new EvaluationResultImpl(value) | 3523 @deprecated // Use new EvaluationResultImpl(value) |
| 3524 EvaluationResultImpl.con1(this.value) { | 3524 EvaluationResultImpl.con1(this.value) { |
| 3525 this._errors = new List<AnalysisError>(0); | 3525 this._errors = new List<AnalysisError>(0); |
| 3526 } | 3526 } |
| 3527 | 3527 |
| 3528 @deprecated // Use new EvaluationResultImpl(value, errors) | 3528 @deprecated // Use new EvaluationResultImpl(value, errors) |
| 3529 EvaluationResultImpl.con2(this.value, List<AnalysisError> errors) { | 3529 EvaluationResultImpl.con2(this.value, List<AnalysisError> this._errors); |
| 3530 this._errors = errors; | |
| 3531 } | |
| 3532 | 3530 |
| 3533 List<AnalysisError> get errors => _errors; | 3531 List<AnalysisError> get errors => _errors; |
| 3534 | 3532 |
| 3535 bool equalValues(TypeProvider typeProvider, EvaluationResultImpl result) { | 3533 bool equalValues(TypeProvider typeProvider, EvaluationResultImpl result) { |
| 3536 if (this.value != null) { | 3534 if (this.value != null) { |
| 3537 if (result.value == null) { | 3535 if (result.value == null) { |
| 3538 return false; | 3536 return false; |
| 3539 } | 3537 } |
| 3540 return value == result.value; | 3538 return value == result.value; |
| 3541 } else { | 3539 } else { |
| (...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5272 return BoolState.from(_element == rightElement); | 5270 return BoolState.from(_element == rightElement); |
| 5273 } else if (rightOperand is DynamicState) { | 5271 } else if (rightOperand is DynamicState) { |
| 5274 return BoolState.UNKNOWN_VALUE; | 5272 return BoolState.UNKNOWN_VALUE; |
| 5275 } | 5273 } |
| 5276 return BoolState.FALSE_STATE; | 5274 return BoolState.FALSE_STATE; |
| 5277 } | 5275 } |
| 5278 | 5276 |
| 5279 @override | 5277 @override |
| 5280 String toString() => _element == null ? "-unknown-" : _element.name; | 5278 String toString() => _element == null ? "-unknown-" : _element.name; |
| 5281 } | 5279 } |
| OLD | NEW |