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

Side by Side Diff: compiler/java/com/google/dart/compiler/resolver/MixinScope.java

Issue 11776037: Initial support for mixins in dartc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot MixinScope.java Created 7 years, 11 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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698