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

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

Issue 1701843003: Fix the order of constructor wrappers - member of handle. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | 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 library analyzer.src.generated.constant; 5 library analyzer.src.generated.constant;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 13 matching lines...) Expand all
24 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; 24 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider;
25 import 'package:analyzer/src/generated/source.dart' show Source; 25 import 'package:analyzer/src/generated/source.dart' show Source;
26 import 'package:analyzer/src/generated/type_system.dart' 26 import 'package:analyzer/src/generated/type_system.dart'
27 show TypeSystem, TypeSystemImpl; 27 show TypeSystem, TypeSystemImpl;
28 import 'package:analyzer/src/generated/utilities_collection.dart'; 28 import 'package:analyzer/src/generated/utilities_collection.dart';
29 import 'package:analyzer/src/generated/utilities_dart.dart' show ParameterKind; 29 import 'package:analyzer/src/generated/utilities_dart.dart' show ParameterKind;
30 import 'package:analyzer/src/generated/utilities_general.dart'; 30 import 'package:analyzer/src/generated/utilities_general.dart';
31 import 'package:analyzer/src/task/dart.dart'; 31 import 'package:analyzer/src/task/dart.dart';
32 32
33 ConstructorElementImpl _getConstructorImpl(ConstructorElement constructor) { 33 ConstructorElementImpl _getConstructorImpl(ConstructorElement constructor) {
34 while (constructor is ConstructorMember) {
35 constructor = (constructor as ConstructorMember).baseElement;
36 }
34 if (constructor is ConstructorElementHandle) { 37 if (constructor is ConstructorElementHandle) {
35 constructor = (constructor as ConstructorElementHandle).actualElement; 38 constructor = (constructor as ConstructorElementHandle).actualElement;
36 } 39 }
37 while (constructor is ConstructorMember) {
38 constructor = (constructor as ConstructorMember).baseElement;
39 }
40 return constructor; 40 return constructor;
41 } 41 }
42 42
43 /** 43 /**
44 * Callback used by [ReferenceFinder] to report that a dependency was found. 44 * Callback used by [ReferenceFinder] to report that a dependency was found.
45 */ 45 */
46 typedef void ReferenceFinderCallback(ConstantEvaluationTarget dependency); 46 typedef void ReferenceFinderCallback(ConstantEvaluationTarget dependency);
47 47
48 /** 48 /**
49 * The state of an object representing a boolean value. 49 * The state of an object representing a boolean value.
(...skipping 5362 matching lines...) Expand 10 before | Expand all | Expand 10 after
5412 return BoolState.from(_element == rightElement); 5412 return BoolState.from(_element == rightElement);
5413 } else if (rightOperand is DynamicState) { 5413 } else if (rightOperand is DynamicState) {
5414 return BoolState.UNKNOWN_VALUE; 5414 return BoolState.UNKNOWN_VALUE;
5415 } 5415 }
5416 return BoolState.FALSE_STATE; 5416 return BoolState.FALSE_STATE;
5417 } 5417 }
5418 5418
5419 @override 5419 @override
5420 String toString() => _element == null ? "-unknown-" : _element.name; 5420 String toString() => _element == null ? "-unknown-" : _element.name;
5421 } 5421 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698