| 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 Scope { | 7 abstract class Scope { |
| 8 /** | 8 /** |
| 9 * Adds [element] to this scope. This operation is only allowed on mutable | 9 * Adds [element] to this scope. This operation is only allowed on mutable |
| 10 * scopes such as [MethodScope] and [BlockScope]. | 10 * scopes such as [MethodScope] and [BlockScope]. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 Element localLookup(String name) => library.find(name); | 166 Element localLookup(String name) => library.find(name); |
| 167 Element lookup(String name) => localLookup(name); | 167 Element lookup(String name) => localLookup(name); |
| 168 | 168 |
| 169 Element add(Element newElement) { | 169 Element add(Element newElement) { |
| 170 throw "Cannot add an element to a library scope"; | 170 throw "Cannot add an element to a library scope"; |
| 171 } | 171 } |
| 172 | 172 |
| 173 String toString() => 'LibraryScope($library)'; | 173 String toString() => 'LibraryScope($library)'; |
| 174 } | 174 } |
| OLD | NEW |