| Index: test/codegen/expect/methods.js
|
| diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
|
| deleted file mode 100644
|
| index 70f328fefea632ccac923edc084345d722443a07..0000000000000000000000000000000000000000
|
| --- a/test/codegen/expect/methods.js
|
| +++ /dev/null
|
| @@ -1,95 +0,0 @@
|
| -dart_library.library('methods', null, /* Imports */[
|
| - 'dart_sdk'
|
| -], function(exports, dart_sdk) {
|
| - 'use strict';
|
| - const core = dart_sdk.core;
|
| - const dart = dart_sdk.dart;
|
| - const dartx = dart_sdk.dartx;
|
| - const methods = Object.create(null);
|
| - const _c = Symbol('_c');
|
| - methods.A = class A extends core.Object {
|
| - new() {
|
| - this[_c] = 3;
|
| - }
|
| - x() {
|
| - return 42;
|
| - }
|
| - y(a) {
|
| - return a;
|
| - }
|
| - z(b) {
|
| - if (b === void 0) b = null;
|
| - return dart.asInt(b);
|
| - }
|
| - zz(b) {
|
| - if (b === void 0) b = 0;
|
| - return b;
|
| - }
|
| - w(a, opts) {
|
| - let b = opts && 'b' in opts ? opts.b : null;
|
| - return dart.asInt(dart.notNull(a) + dart.notNull(b));
|
| - }
|
| - ww(a, opts) {
|
| - let b = opts && 'b' in opts ? opts.b : 0;
|
| - return dart.notNull(a) + dart.notNull(b);
|
| - }
|
| - clashWithObjectProperty(opts) {
|
| - let constructor = opts && 'constructor' in opts ? opts.constructor : null;
|
| - return constructor;
|
| - }
|
| - clashWithJsReservedName(opts) {
|
| - let func = opts && 'function' in opts ? opts.function : null;
|
| - return func;
|
| - }
|
| - get a() {
|
| - return this.x();
|
| - }
|
| - set b(b) {}
|
| - get c() {
|
| - return this[_c];
|
| - }
|
| - set c(c) {
|
| - this[_c] = c;
|
| - }
|
| - };
|
| - dart.setSignature(methods.A, {
|
| - methods: () => ({
|
| - x: [core.int, []],
|
| - y: [core.int, [core.int]],
|
| - z: [core.int, [], [core.num]],
|
| - zz: [core.int, [], [core.int]],
|
| - w: [core.int, [core.int], {b: core.num}],
|
| - ww: [core.int, [core.int], {b: core.int}],
|
| - clashWithObjectProperty: [dart.dynamic, [], {constructor: dart.dynamic}],
|
| - clashWithJsReservedName: [dart.dynamic, [], {function: dart.dynamic}]
|
| - })
|
| - });
|
| - methods.Bar = class Bar extends core.Object {
|
| - call(x) {
|
| - return core.print(`hello from ${x}`);
|
| - }
|
| - };
|
| - dart.setSignature(methods.Bar, {
|
| - methods: () => ({call: [dart.dynamic, [dart.dynamic]]})
|
| - });
|
| - methods.Foo = class Foo extends core.Object {
|
| - new() {
|
| - this.bar = new methods.Bar();
|
| - }
|
| - };
|
| - methods.test = function() {
|
| - let f = new methods.Foo();
|
| - dart.dsend(f, 'bar', "Bar's call method!");
|
| - let a = new methods.A();
|
| - let g = dart.bind(a, 'x');
|
| - let aa = new methods.A();
|
| - let h = dart.dload(aa, 'x');
|
| - let ts = dart.bind(a, 'toString');
|
| - let nsm = dart.bind(a, 'noSuchMethod');
|
| - let c = dart.bind("", dartx.padLeft);
|
| - let r = dart.bind(3.0, dartx.floor);
|
| - };
|
| - dart.fn(methods.test);
|
| - // Exports:
|
| - exports.methods = methods;
|
| -});
|
|
|