Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: pkg/analyzer/lib/src/generated/constant.dart

Issue 1265453005: Code clean-up, mostly constructors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698