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

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

Issue 60293003: Version 0.8.10.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 // A different target statement only happens if the body is itself 592 // A different target statement only happens if the body is itself
593 // a break or continue for a different target. In that case, this 593 // a break or continue for a different target. In that case, this
594 // label is also always unused. 594 // label is also always unused.
595 return element == null || element.statement != body; 595 return element == null || element.statement != body;
596 } 596 }
597 } 597 }
598 598
599 abstract class ErroneousElement extends Element implements FunctionElement { 599 abstract class ErroneousElement extends Element implements FunctionElement {
600 MessageKind get messageKind; 600 MessageKind get messageKind;
601 Map get messageArguments; 601 Map get messageArguments;
602 String get message;
602 } 603 }
603 604
604 /// An [Element] whose usage should cause a warning. 605 /// An [Element] whose usage should cause a warning.
605 abstract class WarnOnUseElement extends Element { 606 abstract class WarnOnUseElement extends Element {
606 /// The element whose usage cause a warning. 607 /// The element whose usage cause a warning.
607 Element get wrappedElement; 608 Element get wrappedElement;
608 609
609 /// Reports the attached warning and returns the wrapped element. 610 /// Reports the attached warning and returns the wrapped element.
610 /// [usageSpannable] is used to report messages on the reference of 611 /// [usageSpannable] is used to report messages on the reference of
611 /// [wrappedElement]. 612 /// [wrappedElement].
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 int get resolutionState; 981 int get resolutionState;
981 Token get beginToken; 982 Token get beginToken;
982 Token get endToken; 983 Token get endToken;
983 984
984 // TODO(kasperl): Try to get rid of these. 985 // TODO(kasperl): Try to get rid of these.
985 void set annotatedElement(Element value); 986 void set annotatedElement(Element value);
986 void set resolutionState(int value); 987 void set resolutionState(int value);
987 988
988 MetadataAnnotation ensureResolved(Compiler compiler); 989 MetadataAnnotation ensureResolved(Compiler compiler);
989 } 990 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698