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

Side by Side Diff: pkg/compiler/lib/src/core_types.dart

Issue 2569733002: Even less reliance on Compiler.closedWorld (Closed)
Patch Set: Updated cf. comments. Created 4 years 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
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // TODO(sigmund): rename and move to common/elements.dart 5 // TODO(sigmund): rename and move to common/elements.dart
6 library dart2js.type_system; 6 library dart2js.type_system;
7 7
8 import 'dart_types.dart'; 8 import 'dart_types.dart';
9 import 'elements/elements.dart' 9 import 'elements/elements.dart'
10 show 10 show
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 /// The function `identical` in dart:core. 124 /// The function `identical` in dart:core.
125 FunctionElement get identicalFunction; 125 FunctionElement get identicalFunction;
126 126
127 /// The method `Function.apply`. 127 /// The method `Function.apply`.
128 FunctionElement get functionApplyMethod; 128 FunctionElement get functionApplyMethod;
129 129
130 /// Whether [element] is the same as [functionApplyMethod]. This will not 130 /// Whether [element] is the same as [functionApplyMethod]. This will not
131 /// resolve the apply method if it hasn't been seen yet during compilation. 131 /// resolve the apply method if it hasn't been seen yet during compilation.
132 bool isFunctionApplyMethod(Element element); 132 bool isFunctionApplyMethod(Element element);
133
134 /// The unnamed constructor of `List`.
135 ConstructorElement get unnamedListConstructor;
136
137 /// The 'filled' constructor of `List`.
138 ConstructorElement get filledListConstructor;
133 } 139 }
134 140
135 /// The core types in Dart. 141 /// The core types in Dart.
136 abstract class CoreTypes { 142 abstract class CoreTypes {
137 /// The `Object` type defined in 'dart:core'. 143 /// The `Object` type defined in 'dart:core'.
138 InterfaceType get objectType; 144 InterfaceType get objectType;
139 145
140 /// The `bool` type defined in 'dart:core'. 146 /// The `bool` type defined in 'dart:core'.
141 InterfaceType get boolType; 147 InterfaceType get boolType;
142 148
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 /// 202 ///
197 /// If no type argument is provided, the canonical raw type is returned. 203 /// If no type argument is provided, the canonical raw type is returned.
198 InterfaceType futureType([DartType elementType]); 204 InterfaceType futureType([DartType elementType]);
199 205
200 /// Returns an instance of the `Stream` type defined in 'dart:async' with 206 /// Returns an instance of the `Stream` type defined in 'dart:async' with
201 /// [elementType] as its type argument. 207 /// [elementType] as its type argument.
202 /// 208 ///
203 /// If no type argument is provided, the canonical raw type is returned. 209 /// If no type argument is provided, the canonical raw type is returned.
204 InterfaceType streamType([DartType elementType]); 210 InterfaceType streamType([DartType elementType]);
205 } 211 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/dump_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698