| 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 | 7 |
| 8 import '../tree/tree.dart'; | 8 import '../tree/tree.dart'; |
| 9 import '../util/util.dart'; | 9 import '../util/util.dart'; |
| 10 import '../resolution/resolution.dart'; | 10 import '../resolution/resolution.dart'; |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 | 578 |
| 579 abstract class AmbiguousElement extends Element { | 579 abstract class AmbiguousElement extends Element { |
| 580 DualKind get messageKind; | 580 DualKind get messageKind; |
| 581 Map get messageArguments; | 581 Map get messageArguments; |
| 582 Element get existingElement; | 582 Element get existingElement; |
| 583 Element get newElement; | 583 Element get newElement; |
| 584 } | 584 } |
| 585 | 585 |
| 586 // TODO(kasperl): This probably shouldn't be called an element. It's | 586 // TODO(kasperl): This probably shouldn't be called an element. It's |
| 587 // just an interface shared by classes and libraries. | 587 // just an interface shared by classes and libraries. |
| 588 abstract class ScopeContainerElement { | 588 abstract class ScopeContainerElement implements Element { |
| 589 Element localLookup(SourceString elementName); | 589 Element localLookup(SourceString elementName); |
| 590 | 590 |
| 591 void forEachLocalMember(f(Element element)); | 591 void forEachLocalMember(f(Element element)); |
| 592 } | 592 } |
| 593 | 593 |
| 594 abstract class CompilationUnitElement extends Element { | 594 abstract class CompilationUnitElement extends Element { |
| 595 Script get script; | 595 Script get script; |
| 596 PartOf get partTag; | 596 PartOf get partTag; |
| 597 | 597 |
| 598 void forEachLocalMember(f(Element element)); | 598 void forEachLocalMember(f(Element element)); |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 int get resolutionState; | 934 int get resolutionState; |
| 935 Token get beginToken; | 935 Token get beginToken; |
| 936 Token get endToken; | 936 Token get endToken; |
| 937 | 937 |
| 938 // TODO(kasperl): Try to get rid of these. | 938 // TODO(kasperl): Try to get rid of these. |
| 939 void set annotatedElement(Element value); | 939 void set annotatedElement(Element value); |
| 940 void set resolutionState(int value); | 940 void set resolutionState(int value); |
| 941 | 941 |
| 942 MetadataAnnotation ensureResolved(Compiler compiler); | 942 MetadataAnnotation ensureResolved(Compiler compiler); |
| 943 } | 943 } |
| OLD | NEW |