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

Unified Diff: test/codegen/expect/language/flatten_test_08_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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/language/flatten_test_08_multi.js
diff --git a/test/codegen/expect/language/flatten_test_08_multi.js b/test/codegen/expect/language/flatten_test_08_multi.js
new file mode 100644
index 0000000000000000000000000000000000000000..235bc49672faf045f4392400d3adb888dba8e715
--- /dev/null
+++ b/test/codegen/expect/language/flatten_test_08_multi.js
@@ -0,0 +1,65 @@
+dart_library.library('language/flatten_test_08_multi', null, /* Imports */[
+ 'dart_sdk'
+], function load__flatten_test_08_multi(exports, dart_sdk) {
+ 'use strict';
+ const core = dart_sdk.core;
+ const async = dart_sdk.async;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const flatten_test_08_multi = Object.create(null);
+ let Derived = () => (Derived = dart.constFn(flatten_test_08_multi.Derived$()))();
+ let FixedPoint = () => (FixedPoint = dart.constFn(flatten_test_08_multi.FixedPoint$()))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
+ flatten_test_08_multi.Derived$ = dart.generic(T => {
+ let FutureOfT = () => (FutureOfT = dart.constFn(async.Future$(T)))();
+ const Derived = dart.callableClass(function Derived(...args) {
+ const self = this;
+ function call(...args) {
+ return self.call.apply(self, args);
+ }
+ call.__proto__ = this.__proto__;
+ call.new.apply(call, args);
+ return call;
+ }, class Derived extends core.Object {
+ noSuchMethod(invocation) {
+ return super.noSuchMethod(invocation);
+ }
+ });
+ dart.addTypeTests(Derived);
+ Derived[dart.implements] = () => [FutureOfT()];
+ return Derived;
+ });
+ flatten_test_08_multi.Derived = Derived();
+ flatten_test_08_multi.FixedPoint$ = dart.generic(T => {
+ let FixedPointOfT = () => (FixedPointOfT = dart.constFn(flatten_test_08_multi.FixedPoint$(T)))();
+ let FutureOfFixedPointOfT = () => (FutureOfFixedPointOfT = dart.constFn(async.Future$(FixedPointOfT())))();
+ const FixedPoint = dart.callableClass(function FixedPoint(...args) {
+ const self = this;
+ function call(...args) {
+ return self.call.apply(self, args);
+ }
+ call.__proto__ = this.__proto__;
+ call.new.apply(call, args);
+ return call;
+ }, class FixedPoint extends core.Object {
+ noSuchMethod(invocation) {
+ return super.noSuchMethod(invocation);
+ }
+ });
+ dart.addTypeTests(FixedPoint);
+ FixedPoint[dart.implements] = () => [FutureOfFixedPointOfT()];
+ return FixedPoint;
+ });
+ flatten_test_08_multi.FixedPoint = FixedPoint();
+ flatten_test_08_multi.test = function() {
+ return dart.async(function*() {
+ }, dart.dynamic);
+ };
+ dart.fn(flatten_test_08_multi.test, VoidTodynamic());
+ flatten_test_08_multi.main = function() {
+ flatten_test_08_multi.test();
+ };
+ dart.fn(flatten_test_08_multi.main, VoidTodynamic());
+ // Exports:
+ exports.flatten_test_08_multi = flatten_test_08_multi;
+});
« no previous file with comments | « test/codegen/expect/language/flatten_test_07_multi.js ('k') | test/codegen/expect/language/flatten_test_09_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698