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

Side by Side Diff: test/codegen/expect/language/field_method_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/field_method_test', null, /* Imports */[
2 'dart_sdk'
3 ], function load__field_method_test(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 field_method_test = Object.create(null);
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
10 field_method_test.A = class A extends core.Object {
11 new() {
12 this.foo = null;
13 this.foo = dart.fn(() => {
14 }, VoidTodynamic());
15 }
16 bar() {
17 dart.dcall(this.foo);
18 }
19 };
20 dart.setSignature(field_method_test.A, {
21 constructors: () => ({new: dart.definiteFunctionType(field_method_test.A, [] )}),
22 methods: () => ({bar: dart.definiteFunctionType(dart.void, [])})
23 });
24 field_method_test.FieldMethodTest = class FieldMethodTest extends core.Object {
25 static testMain() {
26 new field_method_test.A().bar();
27 }
28 };
29 dart.setSignature(field_method_test.FieldMethodTest, {
30 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}),
31 names: ['testMain']
32 });
33 field_method_test.main = function() {
34 field_method_test.FieldMethodTest.testMain();
35 };
36 dart.fn(field_method_test.main, VoidTodynamic());
37 // Exports:
38 exports.field_method_test = field_method_test;
39 });
OLDNEW
« no previous file with comments | « test/codegen/expect/language/field_method4_negative_test.js ('k') | test/codegen/expect/language/field_optimization2_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698