| 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('../tree/tree.dart'); | 9 #import('../tree/tree.dart'); |
| 10 #import('../scanner/scannerlib.dart'); | 10 #import('../scanner/scannerlib.dart'); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 bool _isNative = false; | 286 bool _isNative = false; |
| 287 void setNative() { _isNative = true; } | 287 void setNative() { _isNative = true; } |
| 288 bool isNative() => _isNative; | 288 bool isNative() => _isNative; |
| 289 | 289 |
| 290 FunctionElement asFunctionElement() => null; | 290 FunctionElement asFunctionElement() => null; |
| 291 | 291 |
| 292 Element cloneTo(Element enclosing, DiagnosticListener listener) { | 292 Element cloneTo(Element enclosing, DiagnosticListener listener) { |
| 293 listener.cancel("Unimplemented cloneTo", element: this); | 293 listener.cancel("Unimplemented cloneTo", element: this); |
| 294 } | 294 } |
| 295 | 295 |
| 296 bool get isPatched => false; |
| 296 | 297 |
| 297 static bool isInvalid(Element e) => e == null || e.isErroneous(); | 298 static bool isInvalid(Element e) => e == null || e.isErroneous(); |
| 298 } | 299 } |
| 299 | 300 |
| 300 /** | 301 /** |
| 301 * Represents an unresolvable or duplicated element. | 302 * Represents an unresolvable or duplicated element. |
| 302 * | 303 * |
| 303 * An [ErroneousElement] is used instead of [null] to provide additional | 304 * An [ErroneousElement] is used instead of [null] to provide additional |
| 304 * information about the error that caused the element to be unresolvable | 305 * information about the error that caused the element to be unresolvable |
| 305 * or otherwise invalid. | 306 * or otherwise invalid. |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1651 | 1652 |
| 1652 MetadataAnnotation ensureResolved(Compiler compiler) { | 1653 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 1653 if (resolutionState == STATE_NOT_STARTED) { | 1654 if (resolutionState == STATE_NOT_STARTED) { |
| 1654 compiler.resolver.resolveMetadataAnnotation(this); | 1655 compiler.resolver.resolveMetadataAnnotation(this); |
| 1655 } | 1656 } |
| 1656 return this; | 1657 return this; |
| 1657 } | 1658 } |
| 1658 | 1659 |
| 1659 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 1660 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 1660 } | 1661 } |
| OLD | NEW |