OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 package com.google.dart.compiler.resolver; |
| 6 |
| 7 /** |
| 8 * Lexical scope corresponding to a mixin. |
| 9 */ |
| 10 class MixinScope extends Scope { |
| 11 private final ClassElement classElement; |
| 12 |
| 13 MixinScope(ClassElement classElement, Scope parent) { |
| 14 super(classElement.getName(), parent.getLibrary(), parent); |
| 15 this.classElement = classElement; |
| 16 } |
| 17 |
| 18 @Override |
| 19 public Element declareElement(String name, Element element) { |
| 20 throw new AssertionError("not supported yet"); |
| 21 } |
| 22 |
| 23 @Override |
| 24 public Element findLocalElement(String name) { |
| 25 return Elements.findElement(classElement, name); |
| 26 } |
| 27 } |
OLD | NEW |