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

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

Issue 177543002: Constrain type annotations with deferred types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 bool hasLibraryName(); 726 bool hasLibraryName();
727 String getLibraryName(); 727 String getLibraryName();
728 String getLibraryOrScriptName(); 728 String getLibraryOrScriptName();
729 729
730 int compareTo(LibraryElement other); 730 int compareTo(LibraryElement other);
731 } 731 }
732 732
733 abstract class PrefixElement extends Element { 733 abstract class PrefixElement extends Element {
734 void addImport(Element element, Import import, DiagnosticListener listener); 734 void addImport(Element element, Import import, DiagnosticListener listener);
735 Element lookupLocalMember(String memberName); 735 Element lookupLocalMember(String memberName);
736 // Is true if this prefix belongs to a deferred import.
floitsch 2014/03/03 14:18:06 Might as well make it a Dart comment. "///".
sigurdm 2014/03/04 12:36:19 Done.
737 bool get isDeferred;
738 void markAsDeferred();
736 } 739 }
737 740
738 abstract class TypedefElement extends Element 741 abstract class TypedefElement extends Element
739 implements TypeDeclarationElement { 742 implements TypeDeclarationElement {
740 TypedefType get thisType; 743 TypedefType get thisType;
741 TypedefType get rawType; 744 TypedefType get rawType;
742 DartType get alias; 745 DartType get alias;
743 FunctionSignature get functionSignature; 746 FunctionSignature get functionSignature;
744 Link<DartType> get typeVariables; 747 Link<DartType> get typeVariables;
745 748
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 InterfaceType get declarer; 1112 InterfaceType get declarer;
1110 1113
1111 /// Returns `true` if this member is static. 1114 /// Returns `true` if this member is static.
1112 bool get isStatic; 1115 bool get isStatic;
1113 1116
1114 /// Returns `true` if this member is a getter or setter implicitly declared 1117 /// Returns `true` if this member is a getter or setter implicitly declared
1115 /// by a field. 1118 /// by a field.
1116 bool get isDeclaredByField; 1119 bool get isDeclaredByField;
1117 } 1120 }
1118 1121
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698