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

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

Issue 1121233002: Add ConstantExpression.evaluate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 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
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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after
2419 .createInstantiation([keyType, valueType]); 2419 .createInstantiation([keyType, valueType]);
2420 } 2420 }
2421 2421
2422 @override 2422 @override
2423 InterfaceType get nullType => nullClass.computeType(compiler); 2423 InterfaceType get nullType => nullClass.computeType(compiler);
2424 2424
2425 @override 2425 @override
2426 InterfaceType get numType => numClass.computeType(compiler); 2426 InterfaceType get numType => numClass.computeType(compiler);
2427 2427
2428 @override 2428 @override
2429 InterfaceType get stringType => stringClass.computeType(compiler); 2429 InterfaceType get stringType => stringClass.computeType(compiler);
2430
2431 @override
2432 InterfaceType get typeType => typeClass.computeType(compiler);
2430 2433
2431 @override 2434 @override
2432 InterfaceType iterableType([DartType elementType = const DynamicType()]) { 2435 InterfaceType iterableType([DartType elementType = const DynamicType()]) {
2433 return iterableClass.computeType(compiler) 2436 return iterableClass.computeType(compiler)
2434 .createInstantiation([elementType]); 2437 .createInstantiation([elementType]);
2435 } 2438 }
2436 2439
2437 @override 2440 @override
2438 InterfaceType futureType([DartType elementType = const DynamicType()]) { 2441 InterfaceType futureType([DartType elementType = const DynamicType()]) {
2439 return futureClass.computeType(compiler).createInstantiation([elementType]); 2442 return futureClass.computeType(compiler).createInstantiation([elementType]);
2440 } 2443 }
2441 2444
2442 @override 2445 @override
2443 InterfaceType streamType([DartType elementType = const DynamicType()]) { 2446 InterfaceType streamType([DartType elementType = const DynamicType()]) {
2444 return streamClass.computeType(compiler).createInstantiation([elementType]); 2447 return streamClass.computeType(compiler).createInstantiation([elementType]);
2445 } 2448 }
2446 } 2449 }
2447 2450
2448 typedef void InternalErrorFunction(Spannable location, String message); 2451 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compile_time_constants.dart ('k') | pkg/compiler/lib/src/constant_system_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698