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

Side by Side Diff: lib/compiler/implementation/js_backend/emitter_no_eval.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of js_backend;
6
5 class CodeEmitterNoEvalTask extends CodeEmitterTask { 7 class CodeEmitterNoEvalTask extends CodeEmitterTask {
6 CodeEmitterNoEvalTask(Compiler compiler, 8 CodeEmitterNoEvalTask(Compiler compiler,
7 Namer namer, 9 Namer namer,
8 bool generateSourceMap) 10 bool generateSourceMap)
9 : super(compiler, namer, generateSourceMap); 11 : super(compiler, namer, generateSourceMap);
10 12
11 String get generateGetterSetterFunction { 13 String get generateGetterSetterFunction {
12 return """ 14 return """
13 function() { 15 function() {
14 throw 'Internal Error: no dynamic generation of getters and setters allowed'; 16 throw 'Internal Error: no dynamic generation of getters and setters allowed';
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 generateSetter(member, name, buffer); 135 generateSetter(member, name, buffer);
134 } 136 }
135 if (needsCheckedSetter) { 137 if (needsCheckedSetter) {
136 assert(!needsSetter); 138 assert(!needsSetter);
137 emitComma(); 139 emitComma();
138 generateCheckedSetter(member, name, buffer); 140 generateCheckedSetter(member, name, buffer);
139 } 141 }
140 }); 142 });
141 } 143 }
142 } 144 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/js_backend/emitter.dart ('k') | lib/compiler/implementation/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698