Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 21242002: Retain elements a finer granularity than library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698