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

Side by Side Diff: lib/src/codegen/html_codegen.dart

Issue 1013653004: Suppress generation of JsGlobal and JsType code and use window as the default value instead of {} f… (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: ptal Created 5 years, 9 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 | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dev_compiler.src.codegen.html_codegen; 5 library dev_compiler.src.codegen.html_codegen;
6 6
7 import 'package:html5lib/dom.dart'; 7 import 'package:html5lib/dom.dart';
8 import 'package:html5lib/parser.dart' show parseFragment; 8 import 'package:html5lib/parser.dart' show parseFragment;
9 import 'package:logging/logging.dart' show Logger; 9 import 'package:logging/logging.dart' show Logger;
10 import 'package:path/path.dart' as path; 10 import 'package:path/path.dart' as path;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 /// A script tag with a tiny mock of the core SDK. This is just used for testing 104 /// A script tag with a tiny mock of the core SDK. This is just used for testing
105 /// some small samples. 105 /// some small samples.
106 // TODO(sigmund,jmesserly): remove. 106 // TODO(sigmund,jmesserly): remove.
107 Node get _miniMockSdk => parseFragment(''' 107 Node get _miniMockSdk => parseFragment('''
108 <script> 108 <script>
109 /* placehorder for unimplemented code libraries */ 109 /* placehorder for unimplemented code libraries */
110 var math = Math; 110 var math = Math;
111 var core = { int: { parse: Number }, print: e => console.log(e) }; 111 var core = { int: { parse: Number }, print: e => console.log(e) };
112 var dom = { document: document };
113 </script>'''); 112 </script>''');
114 final _log = new Logger('dev_compiler.src.codegen.html_codegen'); 113 final _log = new Logger('dev_compiler.src.codegen.html_codegen');
OLDNEW
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698