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

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: Address comments. 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 // TODO(ngeoffray): This should get a type. 410 // TODO(ngeoffray): This should get a type.
411 void registerIsCheck(Element element) { 411 void registerIsCheck(Element element) {
412 universe.isChecks.add(element); 412 universe.isChecks.add(element);
413 } 413 }
414 414
415 void resolveClass(ClassElement element) { 415 void resolveClass(ClassElement element) {
416 withCurrentElement(element, () => resolver.resolveClass(element)); 416 withCurrentElement(element, () => resolver.resolveClass(element));
417 } 417 }
418 418
419 Type resolveTypeAnnotation(Element element, TypeAnnotation annotation) {
420 return resolver.resolveTypeAnnotation(element, annotation);
421 }
422
419 FunctionParameters resolveSignature(FunctionElement element) { 423 FunctionParameters resolveSignature(FunctionElement element) {
420 return withCurrentElement(element, 424 return withCurrentElement(element,
421 () => resolver.resolveSignature(element)); 425 () => resolver.resolveSignature(element));
422 } 426 }
423 427
424 Constant compileVariable(VariableElement element) { 428 Constant compileVariable(VariableElement element) {
425 return withCurrentElement(element, () { 429 return withCurrentElement(element, () {
426 return constantHandler.compileVariable(element); 430 return constantHandler.compileVariable(element);
427 }); 431 });
428 } 432 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 } 567 }
564 } 568 }
565 569
566 class SourceSpan { 570 class SourceSpan {
567 final Uri uri; 571 final Uri uri;
568 final int begin; 572 final int begin;
569 final int end; 573 final int end;
570 574
571 const SourceSpan(this.uri, this.begin, this.end); 575 const SourceSpan(this.uri, this.begin, this.end);
572 } 576 }
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