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

Side by Side Diff: test/codegen/expect/sunflower/dom.js

Issue 1076883003: Initial support for runtime function types and type checking (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: uncomment code Created 5 years, 8 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
OLDNEW
1 var dom; 1 var dom;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class JsName extends core.Object { 4 class JsName extends core.Object {
5 JsName(opts) { 5 JsName(opts) {
6 let name = opts && 'name' in opts ? opts.name : null; 6 let name = opts && 'name' in opts ? opts.name : null;
7 this.name = name; 7 this.name = name;
8 } 8 }
9 } 9 }
10 class Overload extends core.Object { 10 class Overload extends core.Object {
11 Overload() { 11 Overload() {
12 } 12 }
13 } 13 }
14 let overload = new Overload(); 14 let overload = new Overload();
15 class EventListener extends core.Function {} 15 let EventListener = dart.typedef('EventListener', () => dart.functionType(dart .void, [Event]));
16 class Event extends core.Object {} 16 class Event extends core.Object {}
17 class RenderingContext extends core.Object {} 17 class RenderingContext extends core.Object {}
18 class CanvasDrawingStyles extends core.Object { 18 class CanvasDrawingStyles extends core.Object {
19 CanvasDrawingStyles() { 19 CanvasDrawingStyles() {
20 this.lineWidth = null; 20 this.lineWidth = null;
21 this.lineCap = null; 21 this.lineCap = null;
22 this.lineJoin = null; 22 this.lineJoin = null;
23 this.miterLimit = null; 23 this.miterLimit = null;
24 this.lineDashOffset = null; 24 this.lineDashOffset = null;
25 this.font = null; 25 this.font = null;
26 this.textAlign = null; 26 this.textAlign = null;
27 this.textBaseline = null; 27 this.textBaseline = null;
28 } 28 }
29 } 29 }
30 class CanvasPathMethods extends core.Object {} 30 class CanvasPathMethods extends core.Object {}
31 // Exports: 31 // Exports:
32 exports.JsName = JsName; 32 exports.JsName = JsName;
33 exports.Overload = Overload; 33 exports.Overload = Overload;
34 exports.overload = overload; 34 exports.overload = overload;
35 exports.EventListener = EventListener; 35 exports.EventListener = EventListener;
36 exports.Event = Event; 36 exports.Event = Event;
37 exports.RenderingContext = RenderingContext; 37 exports.RenderingContext = RenderingContext;
38 exports.CanvasDrawingStyles = CanvasDrawingStyles; 38 exports.CanvasDrawingStyles = CanvasDrawingStyles;
39 exports.CanvasPathMethods = CanvasPathMethods; 39 exports.CanvasPathMethods = CanvasPathMethods;
40 })(dom || (dom = window)); 40 })(dom || (dom = window));
OLDNEW
« lib/src/codegen/js_codegen.dart ('K') | « test/browser/runtime_tests.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698