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

Side by Side Diff: test/codegen/expect/language/compile_time_constant_m_test.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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
(Empty)
1 dart_library.library('language/compile_time_constant_m_test', null, /* Imports * /[
2 'dart_sdk',
3 'expect'
4 ], function load__compile_time_constant_m_test(exports, dart_sdk, expect) {
5 'use strict';
6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect;
10 const compile_time_constant_m_test = Object.create(null);
11 let __Todynamic = () => (__Todynamic = dart.constFn(dart.definiteFunctionType( dart.dynamic, [], [dart.dynamic])))();
12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
13 let const$;
14 compile_time_constant_m_test.A = class A extends core.Object {
15 new() {
16 }
17 foo(x) {
18 if (x === void 0) x = const$ || (const$ = dart.const(new compile_time_cons tant_m_test.A()));
19 return x;
20 }
21 };
22 dart.setSignature(compile_time_constant_m_test.A, {
23 constructors: () => ({new: dart.definiteFunctionType(compile_time_constant_m _test.A, [])}),
24 methods: () => ({foo: dart.definiteFunctionType(dart.dynamic, [], [dart.dyna mic])})
25 });
26 compile_time_constant_m_test.x = dart.const(new compile_time_constant_m_test.A ());
27 let const$0;
28 compile_time_constant_m_test.foo = function(x) {
29 if (x === void 0) x = const$0 || (const$0 = dart.const(new compile_time_cons tant_m_test.A()));
30 return x;
31 };
32 dart.fn(compile_time_constant_m_test.foo, __Todynamic());
33 compile_time_constant_m_test.main = function() {
34 expect$.Expect.identical(compile_time_constant_m_test.x, compile_time_consta nt_m_test.foo());
35 expect$.Expect.identical(compile_time_constant_m_test.x, compile_time_consta nt_m_test.x.foo());
36 };
37 dart.fn(compile_time_constant_m_test.main, VoidTodynamic());
38 // Exports:
39 exports.compile_time_constant_m_test = compile_time_constant_m_test;
40 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698