| 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 4425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4436 mixinThisType.typeArguments); | 4436 mixinThisType.typeArguments); |
| 4437 } | 4437 } |
| 4438 | 4438 |
| 4439 bool isDefaultConstructor(FunctionElement constructor) { | 4439 bool isDefaultConstructor(FunctionElement constructor) { |
| 4440 return constructor.name == '' && | 4440 return constructor.name == '' && |
| 4441 constructor.computeSignature(compiler).parameterCount == 0; | 4441 constructor.computeSignature(compiler).parameterCount == 0; |
| 4442 } | 4442 } |
| 4443 | 4443 |
| 4444 FunctionElement createForwardingConstructor(ConstructorElement target, | 4444 FunctionElement createForwardingConstructor(ConstructorElement target, |
| 4445 ClassElement enclosing) { | 4445 ClassElement enclosing) { |
| 4446 return new SynthesizedConstructorElementX.notForDefault( | 4446 return new SynthesizedConstructorElementX( |
| 4447 target.name, target, enclosing); | 4447 target.name, target, enclosing, false); |
| 4448 } | 4448 } |
| 4449 | 4449 |
| 4450 void doApplyMixinTo(MixinApplicationElementX mixinApplication, | 4450 void doApplyMixinTo(MixinApplicationElementX mixinApplication, |
| 4451 DartType supertype, | 4451 DartType supertype, |
| 4452 DartType mixinType) { | 4452 DartType mixinType) { |
| 4453 Node node = mixinApplication.parseNode(compiler); | 4453 Node node = mixinApplication.parseNode(compiler); |
| 4454 | 4454 |
| 4455 if (mixinApplication.supertype != null) { | 4455 if (mixinApplication.supertype != null) { |
| 4456 // [supertype] is not null if there was a cycle. | 4456 // [supertype] is not null if there was a cycle. |
| 4457 assert(invariant(node, compiler.compilationFailed)); | 4457 assert(invariant(node, compiler.compilationFailed)); |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5096 } | 5096 } |
| 5097 | 5097 |
| 5098 /// The result for the resolution of the `assert` method. | 5098 /// The result for the resolution of the `assert` method. |
| 5099 class AssertResult implements ResolutionResult { | 5099 class AssertResult implements ResolutionResult { |
| 5100 const AssertResult(); | 5100 const AssertResult(); |
| 5101 | 5101 |
| 5102 Element get element => null; | 5102 Element get element => null; |
| 5103 | 5103 |
| 5104 String toString() => 'AssertResult()'; | 5104 String toString() => 'AssertResult()'; |
| 5105 } | 5105 } |
| OLD | NEW |