| 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 library elements; | 5 library elements; |
| 6 | 6 |
| 7 import 'dart:uri'; | 7 import 'dart:uri'; |
| 8 | 8 |
| 9 import 'modelx.dart'; | 9 import 'modelx.dart'; |
| 10 import '../tree/tree.dart'; | 10 import '../tree/tree.dart'; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 bool hasFixedBackendName(); | 193 bool hasFixedBackendName(); |
| 194 String fixedBackendName(); | 194 String fixedBackendName(); |
| 195 | 195 |
| 196 bool isAbstract(Compiler compiler); | 196 bool isAbstract(Compiler compiler); |
| 197 bool isForeign(Compiler compiler); | 197 bool isForeign(Compiler compiler); |
| 198 | 198 |
| 199 void addMetadata(MetadataAnnotation annotation); | 199 void addMetadata(MetadataAnnotation annotation); |
| 200 void setNative(String name); | 200 void setNative(String name); |
| 201 void setFixedBackendName(String name); | 201 void setFixedBackendName(String name); |
| 202 |
| 202 Scope buildScope(); | 203 Scope buildScope(); |
| 203 } | 204 } |
| 204 | 205 |
| 205 class Elements { | 206 class Elements { |
| 206 static bool isUnresolved(Element e) { | 207 static bool isUnresolved(Element e) { |
| 207 return e == null || e.isErroneous(); | 208 return e == null || e.isErroneous(); |
| 208 } | 209 } |
| 209 static bool isErroneousElement(Element e) => e != null && e.isErroneous(); | 210 static bool isErroneousElement(Element e) => e != null && e.isErroneous(); |
| 210 | 211 |
| 211 static bool isClass(Element e) => e != null && e.kind == ElementKind.CLASS; | 212 static bool isClass(Element e) => e != null && e.kind == ElementKind.CLASS; |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 Element get annotatedElement; | 762 Element get annotatedElement; |
| 762 int get resolutionState; | 763 int get resolutionState; |
| 763 Token get beginToken; | 764 Token get beginToken; |
| 764 | 765 |
| 765 // TODO(kasperl): Try to get rid of these. | 766 // TODO(kasperl): Try to get rid of these. |
| 766 void set annotatedElement(Element value); | 767 void set annotatedElement(Element value); |
| 767 void set resolutionState(int value); | 768 void set resolutionState(int value); |
| 768 | 769 |
| 769 MetadataAnnotation ensureResolved(Compiler compiler); | 770 MetadataAnnotation ensureResolved(Compiler compiler); |
| 770 } | 771 } |
| OLD | NEW |