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

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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 bool hasLibraryName(); 736 bool hasLibraryName();
737 String getLibraryName(); 737 String getLibraryName();
738 String getLibraryOrScriptName(); 738 String getLibraryOrScriptName();
739 739
740 int compareTo(LibraryElement other); 740 int compareTo(LibraryElement other);
741 } 741 }
742 742
743 abstract class PrefixElement extends Element { 743 abstract class PrefixElement extends Element {
744 void addImport(Element element, Import import, DiagnosticListener listener); 744 void addImport(Element element, Import import, DiagnosticListener listener);
745 Element lookupLocalMember(String memberName); 745 Element lookupLocalMember(String memberName);
746 /// Is true if this prefix belongs to a deferred import.
747 bool get isDeferred;
748 void markAsDeferred();
746 } 749 }
747 750
748 abstract class TypedefElement extends Element 751 abstract class TypedefElement extends Element
749 implements TypeDeclarationElement { 752 implements TypeDeclarationElement {
750 TypedefType get thisType; 753 TypedefType get thisType;
751 TypedefType get rawType; 754 TypedefType get rawType;
752 DartType get alias; 755 DartType get alias;
753 FunctionSignature get functionSignature; 756 FunctionSignature get functionSignature;
754 Link<DartType> get typeVariables; 757 Link<DartType> get typeVariables;
755 758
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 InterfaceType get declarer; 1122 InterfaceType get declarer;
1120 1123
1121 /// Returns `true` if this member is static. 1124 /// Returns `true` if this member is static.
1122 bool get isStatic; 1125 bool get isStatic;
1123 1126
1124 /// Returns `true` if this member is a getter or setter implicitly declared 1127 /// Returns `true` if this member is a getter or setter implicitly declared
1125 /// by a field. 1128 /// by a field.
1126 bool get isDeclaredByField; 1129 bool get isDeclaredByField;
1127 } 1130 }
1128 1131
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698