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

Side by Side Diff: pkg/compiler/lib/src/compiler.dart

Issue 1417103002: Add ElementKind for factory constructors. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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 | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 dart2js.compiler_base; 5 library dart2js.compiler_base;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 EventSink, 8 EventSink,
9 Future; 9 Future;
10 10
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 MessageKind.GENERIC, 1168 MessageKind.GENERIC,
1169 {'text': 'Warning: $e resolved but not compiled.'}); 1169 {'text': 'Warning: $e resolved but not compiled.'});
1170 } 1170 }
1171 } 1171 }
1172 1172
1173 WorldImpact analyzeElement(Element element) { 1173 WorldImpact analyzeElement(Element element) {
1174 assert(invariant(element, 1174 assert(invariant(element,
1175 element.impliesType || 1175 element.impliesType ||
1176 element.isField || 1176 element.isField ||
1177 element.isFunction || 1177 element.isFunction ||
1178 element.isGenerativeConstructor || 1178 element.isConstructor ||
1179 element.isGetter || 1179 element.isGetter ||
1180 element.isSetter, 1180 element.isSetter,
1181 message: 'Unexpected element kind: ${element.kind}')); 1181 message: 'Unexpected element kind: ${element.kind}'));
1182 assert(invariant(element, element is AnalyzableElement, 1182 assert(invariant(element, element is AnalyzableElement,
1183 message: 'Element $element is not analyzable.')); 1183 message: 'Element $element is not analyzable.'));
1184 assert(invariant(element, element.isDeclaration)); 1184 assert(invariant(element, element.isDeclaration));
1185 return resolution.computeWorldImpact(element); 1185 return resolution.computeWorldImpact(element);
1186 } 1186 }
1187 1187
1188 WorldImpact analyze(ResolutionWorkItem work, 1188 WorldImpact analyze(ResolutionWorkItem work,
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 if (_otherDependencies == null) { 2042 if (_otherDependencies == null) {
2043 _otherDependencies = new Setlet<Element>(); 2043 _otherDependencies = new Setlet<Element>();
2044 } 2044 }
2045 _otherDependencies.add(element.implementation); 2045 _otherDependencies.add(element.implementation);
2046 } 2046 }
2047 2047
2048 Iterable<Element> get otherDependencies { 2048 Iterable<Element> get otherDependencies {
2049 return _otherDependencies != null ? _otherDependencies : const <Element>[]; 2049 return _otherDependencies != null ? _otherDependencies : const <Element>[];
2050 } 2050 }
2051 } 2051 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698