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

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

Issue 10105031: Check number of type arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove accidental edits. Created 8 years, 8 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 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 void registerInstantiatedClass(ClassElement element) { 396 void registerInstantiatedClass(ClassElement element) {
397 universe.instantiatedClasses.add(element); 397 universe.instantiatedClasses.add(element);
398 enqueuer.onRegisterInstantiatedClass(element); 398 enqueuer.onRegisterInstantiatedClass(element);
399 } 399 }
400 400
401 // TODO(ngeoffray): This should get a type. 401 // TODO(ngeoffray): This should get a type.
402 void registerIsCheck(Element element) { 402 void registerIsCheck(Element element) {
403 universe.isChecks.add(element); 403 universe.isChecks.add(element);
404 } 404 }
405 405
406 Type resolveType(ClassElement element) { 406 void resolveClass(ClassElement element) {
407 return withCurrentElement(element, () => resolver.resolveType(element)); 407 withCurrentElement(element, () => resolver.resolveClass(element));
408 } 408 }
409 409
410 FunctionParameters resolveSignature(FunctionElement element) { 410 FunctionParameters resolveSignature(FunctionElement element) {
411 return withCurrentElement(element, 411 return withCurrentElement(element,
412 () => resolver.resolveSignature(element)); 412 () => resolver.resolveSignature(element));
413 } 413 }
414 414
415 Constant compileVariable(VariableElement element) { 415 Constant compileVariable(VariableElement element) {
416 return withCurrentElement(element, () { 416 return withCurrentElement(element, () {
417 return constantHandler.compileVariable(element); 417 return constantHandler.compileVariable(element);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 } 551 }
552 } 552 }
553 553
554 class SourceSpan { 554 class SourceSpan {
555 final Uri uri; 555 final Uri uri;
556 final int begin; 556 final int begin;
557 final int end; 557 final int end;
558 558
559 const SourceSpan(this.uri, this.begin, this.end); 559 const SourceSpan(this.uri, this.begin, this.end);
560 } 560 }
OLDNEW
« no previous file with comments | « frog/tests/leg/src/mock_compiler.dart ('k') | lib/compiler/implementation/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698