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

Side by Side Diff: test/codegen/expect/language/compile_time_constant_arguments_test_none_multi.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_arguments_test_none_multi', null, /* Imports */[
2 'dart_sdk'
3 ], function load__compile_time_constant_arguments_test_none_multi(exports, dart_ sdk) {
4 'use strict';
5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx;
8 const compile_time_constant_arguments_test_none_multi = Object.create(null);
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
10 compile_time_constant_arguments_test_none_multi.A = class A extends core.Objec t {
11 new(a) {
12 }
13 named(opts) {
14 let a = opts && 'a' in opts ? opts.a : 42;
15 }
16 optional(a) {
17 if (a === void 0) a = null;
18 }
19 };
20 dart.defineNamedConstructor(compile_time_constant_arguments_test_none_multi.A, 'named');
21 dart.defineNamedConstructor(compile_time_constant_arguments_test_none_multi.A, 'optional');
22 dart.setSignature(compile_time_constant_arguments_test_none_multi.A, {
23 constructors: () => ({
24 new: dart.definiteFunctionType(compile_time_constant_arguments_test_none_m ulti.A, [dart.dynamic]),
25 named: dart.definiteFunctionType(compile_time_constant_arguments_test_none _multi.A, [], {a: dart.dynamic}),
26 optional: dart.definiteFunctionType(compile_time_constant_arguments_test_n one_multi.A, [], [dart.dynamic])
27 })
28 });
29 let const$;
30 let const$0;
31 let const$1;
32 let const$2;
33 compile_time_constant_arguments_test_none_multi.main = function() {
34 const$ || (const$ = dart.const(new compile_time_constant_arguments_test_none _multi.A(1)));
35 const$0 || (const$0 = dart.const(new compile_time_constant_arguments_test_no ne_multi.A.named()));
36 const$1 || (const$1 = dart.const(new compile_time_constant_arguments_test_no ne_multi.A.optional()));
37 const$2 || (const$2 = dart.const(new compile_time_constant_arguments_test_no ne_multi.A.optional(42)));
38 };
39 dart.fn(compile_time_constant_arguments_test_none_multi.main, VoidTodynamic()) ;
40 // Exports:
41 exports.compile_time_constant_arguments_test_none_multi = compile_time_constan t_arguments_test_none_multi;
42 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698