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

Side by Side Diff: lib/compiler/implementation/compiler.dart

Issue 10270010: Remove getType; use the resolver instead. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.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) 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 class WorkItem { 5 class WorkItem {
6 final Element element; 6 final Element element;
7 TreeElements resolutionTree; 7 TreeElements resolutionTree;
8 Function run; 8 Function run;
9 bool allowSpeculativeOptimization = true; 9 bool allowSpeculativeOptimization = true;
10 List<HTypeGuard> guards = const <HTypeGuard>[]; 10 List<HTypeGuard> guards = const <HTypeGuard>[];
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 // TODO(ngeoffray): This should get a type. 405 // TODO(ngeoffray): This should get a type.
406 void registerIsCheck(Element element) { 406 void registerIsCheck(Element element) {
407 universe.isChecks.add(element); 407 universe.isChecks.add(element);
408 } 408 }
409 409
410 void resolveClass(ClassElement element) { 410 void resolveClass(ClassElement element) {
411 withCurrentElement(element, () => resolver.resolveClass(element)); 411 withCurrentElement(element, () => resolver.resolveClass(element));
412 } 412 }
413 413
414 Type resolveType(Element element, TypeAnnotation annotation) {
ahe 2012/05/02 14:15:53 resolveTypeAnnotation?
karlklose 2012/05/02 18:43:54 Done.
415 return resolver.resolveType(element, annotation);
ahe 2012/05/02 14:15:53 Ditto
karlklose 2012/05/02 18:43:54 Done.
416 }
417
414 FunctionParameters resolveSignature(FunctionElement element) { 418 FunctionParameters resolveSignature(FunctionElement element) {
415 return withCurrentElement(element, 419 return withCurrentElement(element,
416 () => resolver.resolveSignature(element)); 420 () => resolver.resolveSignature(element));
417 } 421 }
418 422
419 Constant compileVariable(VariableElement element) { 423 Constant compileVariable(VariableElement element) {
420 return withCurrentElement(element, () { 424 return withCurrentElement(element, () {
421 return constantHandler.compileVariable(element); 425 return constantHandler.compileVariable(element);
422 }); 426 });
423 } 427 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 } 559 }
556 } 560 }
557 561
558 class SourceSpan { 562 class SourceSpan {
559 final Uri uri; 563 final Uri uri;
560 final int begin; 564 final int begin;
561 final int end; 565 final int end;
562 566
563 const SourceSpan(this.uri, this.begin, this.end); 567 const SourceSpan(this.uri, this.begin, this.end);
564 } 568 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698