| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 } | 513 } |
| 514 } | 514 } |
| 515 } | 515 } |
| 516 | 516 |
| 517 class LibraryElement extends ScopeContainerElement { | 517 class LibraryElement extends ScopeContainerElement { |
| 518 final Uri uri; | 518 final Uri uri; |
| 519 CompilationUnitElement entryCompilationUnit; | 519 CompilationUnitElement entryCompilationUnit; |
| 520 Link<CompilationUnitElement> compilationUnits = | 520 Link<CompilationUnitElement> compilationUnits = |
| 521 const EmptyLink<CompilationUnitElement>(); | 521 const EmptyLink<CompilationUnitElement>(); |
| 522 Link<LibraryTag> tags = const EmptyLink<LibraryTag>(); | 522 Link<LibraryTag> tags = const EmptyLink<LibraryTag>(); |
| 523 LibraryTag libraryTag; | 523 LibraryName libraryTag; |
| 524 bool canUseNative = false; | 524 bool canUseNative = false; |
| 525 | 525 |
| 526 /** | 526 /** |
| 527 * If this library is patched, [patch] points to the patch library. | 527 * If this library is patched, [patch] points to the patch library. |
| 528 * | 528 * |
| 529 * See [:patch_parser.dart:] for a description of the terminology. | 529 * See [:patch_parser.dart:] for a description of the terminology. |
| 530 */ | 530 */ |
| 531 LibraryElement patch = null; | 531 LibraryElement patch = null; |
| 532 | 532 |
| 533 /** | 533 /** |
| (...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 | 1873 |
| 1874 MetadataAnnotation ensureResolved(Compiler compiler) { | 1874 MetadataAnnotation ensureResolved(Compiler compiler) { |
| 1875 if (resolutionState == STATE_NOT_STARTED) { | 1875 if (resolutionState == STATE_NOT_STARTED) { |
| 1876 compiler.resolver.resolveMetadataAnnotation(this); | 1876 compiler.resolver.resolveMetadataAnnotation(this); |
| 1877 } | 1877 } |
| 1878 return this; | 1878 return this; |
| 1879 } | 1879 } |
| 1880 | 1880 |
| 1881 String toString() => 'MetadataAnnotation($value, $resolutionState)'; | 1881 String toString() => 'MetadataAnnotation($value, $resolutionState)'; |
| 1882 } | 1882 } |
| OLD | NEW |