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

Side by Side Diff: test/codegen/expect/names.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 unified diff | Download patch
« no previous file with comments | « test/codegen/expect/misc.txt ('k') | test/codegen/expect/names.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 dart_library.library('names', null, /* Imports */[
2 'dart_sdk'
3 ], function(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 names = Object.create(null);
9 names.exports = 42;
10 const _foo = Symbol('_foo');
11 names.Foo = class Foo extends core.Object {
12 [_foo]() {
13 return 123;
14 }
15 };
16 dart.setSignature(names.Foo, {
17 methods: () => ({[_foo]: [dart.dynamic, []]})
18 });
19 names._foo = function() {
20 return 456;
21 };
22 dart.fn(names._foo);
23 names.Frame = class Frame extends core.Object {
24 caller(arguments$) {
25 this.arguments = arguments$;
26 }
27 static callee() {
28 return null;
29 }
30 };
31 dart.defineNamedConstructor(names.Frame, 'caller');
32 dart.setSignature(names.Frame, {
33 constructors: () => ({caller: [names.Frame, [core.List]]}),
34 statics: () => ({callee: [dart.dynamic, []]}),
35 names: ['callee']
36 });
37 names.Frame2 = class Frame2 extends core.Object {};
38 dart.defineLazy(names.Frame2, {
39 get caller() {
40 return 100;
41 },
42 set caller(_) {},
43 get arguments() {
44 return 200;
45 },
46 set arguments(_) {}
47 });
48 names.main = function() {
49 core.print(names.exports);
50 core.print(new names.Foo()[_foo]());
51 core.print(names._foo());
52 core.print(new names.Frame.caller(dart.list([1, 2, 3], core.int)));
53 let eval$ = names.Frame.callee;
54 core.print(eval$);
55 core.print(dart.notNull(names.Frame2.caller) + dart.notNull(names.Frame2.arg uments));
56 };
57 dart.fn(names.main);
58 // Exports:
59 exports.names = names;
60 });
OLDNEW
« no previous file with comments | « test/codegen/expect/misc.txt ('k') | test/codegen/expect/names.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698