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

Side by Side Diff: test/codegen/expect/language/named_parameters_aggregated_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/named_parameters_aggregated_test_none_multi', nul l, /* Imports */[
2 'dart_sdk'
3 ], function load__named_parameters_aggregated_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 named_parameters_aggregated_test_none_multi = Object.create(null);
9 let TypeTester = () => (TypeTester = dart.constFn(named_parameters_aggregated_ test_none_multi.TypeTester$()))();
10 let TypeTesterOfCallback = () => (TypeTesterOfCallback = dart.constFn(named_pa rameters_aggregated_test_none_multi.TypeTester$(named_parameters_aggregated_test _none_multi.Callback)))();
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 named_parameters_aggregated_test_none_multi.TypeTester$ = dart.generic(T => {
13 class TypeTester extends core.Object {}
14 dart.addTypeTests(TypeTester);
15 return TypeTester;
16 });
17 named_parameters_aggregated_test_none_multi.TypeTester = TypeTester();
18 named_parameters_aggregated_test_none_multi.Callback = dart.typedef('Callback' , () => dart.functionType(dart.void, [], [core.String]));
19 const _handler = Symbol('_handler');
20 named_parameters_aggregated_test_none_multi.NamedParametersAggregatedTests = c lass NamedParametersAggregatedTests extends core.Object {
21 new() {
22 this[_handler] = null;
23 }
24 static F31(a, opts) {
25 let b = opts && 'b' in opts ? opts.b : 20;
26 let c = opts && 'c' in opts ? opts.c : 30;
27 return 100 * (100 * dart.notNull(a) + dart.notNull(b)) + dart.notNull(c);
28 }
29 static f_missing_comma(a) {
30 return core.int._check(a);
31 }
32 InstallCallback(cb) {
33 this[_handler] = cb;
34 }
35 };
36 dart.setSignature(named_parameters_aggregated_test_none_multi.NamedParametersA ggregatedTests, {
37 methods: () => ({InstallCallback: dart.definiteFunctionType(dart.void, [dart .functionType(dart.void, [], {msg: core.String})])}),
38 statics: () => ({
39 F31: dart.definiteFunctionType(core.int, [core.int], {b: core.int, c: core .int}),
40 f_missing_comma: dart.definiteFunctionType(core.int, [dart.dynamic])
41 }),
42 names: ['F31', 'f_missing_comma']
43 });
44 named_parameters_aggregated_test_none_multi.main = function() {
45 named_parameters_aggregated_test_none_multi.NamedParametersAggregatedTests.f _missing_comma(10);
46 named_parameters_aggregated_test_none_multi.NamedParametersAggregatedTests.F 31(10, {b: 25});
47 new (TypeTesterOfCallback())();
48 new named_parameters_aggregated_test_none_multi.NamedParametersAggregatedTes ts().InstallCallback(null);
49 };
50 dart.fn(named_parameters_aggregated_test_none_multi.main, VoidTodynamic());
51 // Exports:
52 exports.named_parameters_aggregated_test_none_multi = named_parameters_aggrega ted_test_none_multi;
53 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698