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

Side by Side Diff: pkg/dart2js_incremental/lib/library_updater.dart

Issue 836573003: dart2js: fix typo in incremental compilation fix. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 dart2js_incremental.library_updater; 5 library dart2js_incremental.library_updater;
6 6
7 import 'dart:async' show 7 import 'dart:async' show
8 Future; 8 Future;
9 9
10 import 'dart:convert' show 10 import 'dart:convert' show
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 return element; 1251 return element;
1252 } 1252 }
1253 1253
1254 void writeUpdateJsOn(List<jsAst.Statement> updates) { 1254 void writeUpdateJsOn(List<jsAst.Statement> updates) {
1255 if (!wasStateCaptured) { 1255 if (!wasStateCaptured) {
1256 throw new StateError( 1256 throw new StateError(
1257 "captureState must be called before writeUpdateJsOn."); 1257 "captureState must be called before writeUpdateJsOn.");
1258 } 1258 }
1259 1259
1260 updates.add( 1260 updates.add(
1261 js.statement('delete #.prototype.#', [prototypeAccess, getterName])); 1261 js.statement('delete #.#', [prototypeAccess, getterName]));
1262 updates.add( 1262 updates.add(
1263 js.statement('delete #.prototype.#', [prototypeAccess, setterName])); 1263 js.statement('delete #.#', [prototypeAccess, setterName]));
1264 } 1264 }
1265 } 1265 }
1266 1266
1267 class AddedFunctionUpdate extends Update with JsFeatures { 1267 class AddedFunctionUpdate extends Update with JsFeatures {
1268 final PartialFunctionElement element; 1268 final PartialFunctionElement element;
1269 1269
1270 final /* ScopeContainerElement */ container; 1270 final /* ScopeContainerElement */ container;
1271 1271
1272 AddedFunctionUpdate(Compiler compiler, this.element, this.container) 1272 AddedFunctionUpdate(Compiler compiler, this.element, this.container)
1273 : super(compiler) { 1273 : super(compiler) {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 List<String> computeFields(ClassElement cls) { 1474 List<String> computeFields(ClassElement cls) {
1475 // TODO(ahe): Rewrite for new emitter. 1475 // TODO(ahe): Rewrite for new emitter.
1476 ClassBuilder builder = new ClassBuilder(cls, namer); 1476 ClassBuilder builder = new ClassBuilder(cls, namer);
1477 classEmitter.emitFields(cls, builder); 1477 classEmitter.emitFields(cls, builder);
1478 return builder.fields; 1478 return builder.fields;
1479 } 1479 }
1480 } 1480 }
1481 1481
1482 // TODO(ahe): Remove this method. 1482 // TODO(ahe): Remove this method.
1483 NO_WARN(x) => x; 1483 NO_WARN(x) => x;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698