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

Side by Side Diff: test/codegen_expected/language/ct_const2_test.js

Issue 2211293002: Reify type params on map literals (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Suppress empty arg with dynamic params Created 4 years, 4 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
OLDNEW
1 dart_library.library('language/ct_const2_test', null, /* Imports */[ 1 dart_library.library('language/ct_const2_test', null, /* Imports */[
2 'dart_sdk' 2 'dart_sdk'
3 ], function load__ct_const2_test(exports, dart_sdk) { 3 ], function load__ct_const2_test(exports, dart_sdk) {
4 'use strict'; 4 'use strict';
5 const core = dart_sdk.core; 5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart; 6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx; 7 const dartx = dart_sdk.dartx;
8 const ct_const2_test = Object.create(null); 8 const ct_const2_test = Object.create(null);
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
10 ct_const2_test.b = true; 10 ct_const2_test.b = true;
11 ct_const2_test.s = "apple"; 11 ct_const2_test.s = "apple";
12 ct_const2_test.i = 1; 12 ct_const2_test.i = 1;
13 ct_const2_test.d = 3.3; 13 ct_const2_test.d = 3.3;
14 ct_const2_test.h = 15; 14 ct_const2_test.h = 15;
15 ct_const2_test.n = null; 15 ct_const2_test.n = null;
16 ct_const2_test.aList = dart.constList([1, 2, 3], core.int); 16 ct_const2_test.aList = dart.constList([1, 2, 3], core.int);
17 ct_const2_test.aMap = dart.const(dart.map({"1": "one", "2": "banana"})); 17 ct_const2_test.aMap = dart.const(dart.map({"1": "one", "2": "banana"}, core.St ring, core.String));
18 ct_const2_test.INT_LIT = 5; 18 ct_const2_test.INT_LIT = 5;
19 ct_const2_test.INT_LIT_REF = ct_const2_test.INT_LIT; 19 ct_const2_test.INT_LIT_REF = ct_const2_test.INT_LIT;
20 ct_const2_test.DOUBLE_LIT = 1.5; 20 ct_const2_test.DOUBLE_LIT = 1.5;
21 ct_const2_test.BOOL_LIT = true; 21 ct_const2_test.BOOL_LIT = true;
22 ct_const2_test.STRING_LIT = "Hello"; 22 ct_const2_test.STRING_LIT = "Hello";
23 ct_const2_test.BOP1_0 = ct_const2_test.INT_LIT + 1; 23 ct_const2_test.BOP1_0 = ct_const2_test.INT_LIT + 1;
24 ct_const2_test.BOP1_1 = 1 + ct_const2_test.INT_LIT; 24 ct_const2_test.BOP1_1 = 1 + ct_const2_test.INT_LIT;
25 ct_const2_test.BOP1_2 = ct_const2_test.INT_LIT - 1; 25 ct_const2_test.BOP1_2 = ct_const2_test.INT_LIT - 1;
26 ct_const2_test.BOP1_3 = 1 - ct_const2_test.INT_LIT; 26 ct_const2_test.BOP1_3 = 1 - ct_const2_test.INT_LIT;
27 ct_const2_test.BOP1_4 = ct_const2_test.INT_LIT * 1; 27 ct_const2_test.BOP1_4 = ct_const2_test.INT_LIT * 1;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 get a() { 99 get a() {
100 return dart.const(new ct_const2_test.A()); 100 return dart.const(new ct_const2_test.A());
101 } 101 }
102 }); 102 });
103 ct_const2_test.main = function() { 103 ct_const2_test.main = function() {
104 }; 104 };
105 dart.fn(ct_const2_test.main, VoidTodynamic()); 105 dart.fn(ct_const2_test.main, VoidTodynamic());
106 // Exports: 106 // Exports:
107 exports.ct_const2_test = ct_const2_test; 107 exports.ct_const2_test = ct_const2_test;
108 }); 108 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698