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

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

Issue 1019923005: Dart2js deferred loading. Follow types of functions when calculating dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added test for generic type Created 5 years, 8 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 | Annotate | Revision Log
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 part of resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 AnalyzableElement get analyzedElement; 8 AnalyzableElement get analyzedElement;
9 Iterable<Node> get superUses; 9 Iterable<Node> get superUses;
10 10
(...skipping 4440 matching lines...) Expand 10 before | Expand all | Expand 10 after
4451 mixinThisType.typeArguments); 4451 mixinThisType.typeArguments);
4452 } 4452 }
4453 4453
4454 bool isDefaultConstructor(FunctionElement constructor) { 4454 bool isDefaultConstructor(FunctionElement constructor) {
4455 return constructor.name == '' && 4455 return constructor.name == '' &&
4456 constructor.computeSignature(compiler).parameterCount == 0; 4456 constructor.computeSignature(compiler).parameterCount == 0;
4457 } 4457 }
4458 4458
4459 FunctionElement createForwardingConstructor(ConstructorElement target, 4459 FunctionElement createForwardingConstructor(ConstructorElement target,
4460 ClassElement enclosing) { 4460 ClassElement enclosing) {
4461 return new SynthesizedConstructorElementX( 4461 return new SynthesizedConstructorElementX.notForDefault(
4462 target.name, target, enclosing, false); 4462 target.name, target, enclosing);
4463 } 4463 }
4464 4464
4465 void doApplyMixinTo(MixinApplicationElementX mixinApplication, 4465 void doApplyMixinTo(MixinApplicationElementX mixinApplication,
4466 DartType supertype, 4466 DartType supertype,
4467 DartType mixinType) { 4467 DartType mixinType) {
4468 Node node = mixinApplication.parseNode(compiler); 4468 Node node = mixinApplication.parseNode(compiler);
4469 4469
4470 if (mixinApplication.supertype != null) { 4470 if (mixinApplication.supertype != null) {
4471 // [supertype] is not null if there was a cycle. 4471 // [supertype] is not null if there was a cycle.
4472 assert(invariant(node, compiler.compilationFailed)); 4472 assert(invariant(node, compiler.compilationFailed));
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
5111 } 5111 }
5112 5112
5113 /// The result for the resolution of the `assert` method. 5113 /// The result for the resolution of the `assert` method.
5114 class AssertResult implements ResolutionResult { 5114 class AssertResult implements ResolutionResult {
5115 const AssertResult(); 5115 const AssertResult();
5116 5116
5117 Element get element => null; 5117 Element get element => null;
5118 5118
5119 String toString() => 'AssertResult()'; 5119 String toString() => 'AssertResult()';
5120 } 5120 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart ('k') | pkg/compiler/lib/src/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698