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

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

Issue 90713003: Dart2js option to dump info about compilation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 void setFixedBackendName(String name); 250 void setFixedBackendName(String name);
251 251
252 Scope buildScope(); 252 Scope buildScope();
253 253
254 /// If the element is a forwarding constructor, [targetConstructor] holds 254 /// If the element is a forwarding constructor, [targetConstructor] holds
255 /// the generative constructor that the forwarding constructor points to 255 /// the generative constructor that the forwarding constructor points to
256 /// (possibly via other forwarding constructors). 256 /// (possibly via other forwarding constructors).
257 FunctionElement get targetConstructor; 257 FunctionElement get targetConstructor;
258 258
259 void diagnose(Element context, DiagnosticListener listener); 259 void diagnose(Element context, DiagnosticListener listener);
260
261 /**
262 * Collect a JSON Object describing inferred information on this element and
karlklose 2013/11/27 14:19:23 'JSON Object' -> Map.
sigurdm 2013/11/29 10:39:37 Done.
263 * its sub-elements.
264 * Returns null if the given element is not used in the program.
265 */
266 Map collectInferredTypes(Compiler compiler);
260 } 267 }
261 268
262 class Elements { 269 class Elements {
263 static bool isUnresolved(Element e) { 270 static bool isUnresolved(Element e) {
264 return e == null || e.isErroneous(); 271 return e == null || e.isErroneous();
265 } 272 }
266 static bool isErroneousElement(Element e) => e != null && e.isErroneous(); 273 static bool isErroneousElement(Element e) => e != null && e.isErroneous();
267 274
268 /// Unwraps [element] reporting any warnings attached to it, if any. 275 /// Unwraps [element] reporting any warnings attached to it, if any.
269 static Element unwrap(Element element, 276 static Element unwrap(Element element,
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 int get resolutionState; 990 int get resolutionState;
984 Token get beginToken; 991 Token get beginToken;
985 Token get endToken; 992 Token get endToken;
986 993
987 // TODO(kasperl): Try to get rid of these. 994 // TODO(kasperl): Try to get rid of these.
988 void set annotatedElement(Element value); 995 void set annotatedElement(Element value);
989 void set resolutionState(int value); 996 void set resolutionState(int value);
990 997
991 MetadataAnnotation ensureResolved(Compiler compiler); 998 MetadataAnnotation ensureResolved(Compiler compiler);
992 } 999 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698