OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dart2js.js_emitter; | 5 part of dart2js.js_emitter; |
6 | 6 |
7 ClassElement computeMixinClass(MixinApplicationElement mixinApplication) { | 7 ClassElement computeMixinClass(MixinApplicationElement mixinApplication) { |
8 ClassElement mixin = mixinApplication.mixin; | 8 ClassElement mixin = mixinApplication.mixin; |
9 while (mixin.isMixinApplication) { | 9 while (mixin.isMixinApplication) { |
10 mixinApplication = mixin; | 10 mixinApplication = mixin; |
11 mixin = mixinApplication.mixin; | 11 mixin = mixinApplication.mixin; |
12 } | 12 } |
13 return mixin; | 13 return mixin; |
14 } | 14 } |
OLD | NEW |