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

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

Issue 968273002: Fixing layout in js output (use full paths rather than just the library name) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: address review comments Created 5 years, 10 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/fieldtest.js ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/fieldtest/fieldtest.js
diff --git a/test/codegen/expect/fieldtest/fieldtest.js b/test/codegen/expect/fieldtest/fieldtest.js
deleted file mode 100644
index 45cf4355334202bacc7415410ff488dcd26e53d1..0000000000000000000000000000000000000000
--- a/test/codegen/expect/fieldtest/fieldtest.js
+++ /dev/null
@@ -1,74 +0,0 @@
-var fieldtest;
-(function(exports) {
- 'use strict';
- class A extends dart.Object {
- A() {
- this.x = 42;
- }
- }
- let B$ = dart.generic(function(T) {
- class B extends dart.Object {
- B() {
- this.x = dart.as(null, core.int);
- this.y = null;
- this.z = dart.as(null, T);
- }
- }
- return B;
- });
- let B = B$(dynamic);
- // Function foo: (A) → int
- function foo(a) {
- core.print(a.x);
- return a.x;
- }
- // Function bar: (dynamic) → int
- function bar(a) {
- core.print(dart.dload(a, 'x'));
- return dart.as(dart.dload(a, 'x'), core.int);
- }
- // Function baz: (A) → dynamic
- function baz(a) {
- return a.x;
- }
- // Function compute: () → int
- function compute() {
- return 123;
- }
- dart.defineLazyProperties(exports, {
- get y() {
- return compute() + 444;
- },
- set y() {}
- });
- dart.copyProperties(exports, {
- get q() {
- return core.String['+'](core.String['+']('life, ', 'the universe '), 'and everything');
- },
- get z() {
- return 42;
- },
- set z(value) {
- exports.y = dart.as(value, core.int);
- }
- });
- // Function main: () → void
- function main() {
- let a = new A();
- foo(a);
- bar(a);
- core.print(baz(a));
- }
- // Exports:
- exports.A = A;
- exports.B = B;
- exports.B$ = B$;
- exports.foo = foo;
- exports.bar = bar;
- exports.baz = baz;
- exports.compute = compute;
- exports.q = q;
- exports.z = z;
- exports.z = z;
- exports.main = main;
-})(fieldtest || (fieldtest = {}));
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698