| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |