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

Unified Diff: test/codegen/expect/methods.js

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 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
« no previous file with comments | « test/codegen/expect/map_keys.js.map ('k') | test/codegen/expect/methods.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
-});
« no previous file with comments | « test/codegen/expect/map_keys.js.map ('k') | test/codegen/expect/methods.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698