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

Unified Diff: sdk/lib/_internal/compiler/implementation/closure.dart

Issue 15381002: Fix a pretty bad bug of a class inheriting a patched class. The fix is (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compile_time_constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/closure.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/closure.dart (revision 22929)
+++ sdk/lib/_internal/compiler/implementation/closure.dart (working copy)
@@ -345,7 +345,7 @@
(fieldCaptures.isEmpty && boxes.isEmpty));
void addElement(Element element, SourceString name) {
Element fieldElement = new ClosureFieldElement(name, closureElement);
- closureElement.addBackendMember(fieldElement);
+ closureElement.addMember(fieldElement, compiler);
data.capturedFieldMapping[fieldElement] = element;
freeVariableMapping[element] = fieldElement;
}
@@ -660,7 +660,7 @@
new FunctionElementX.from(Compiler.CALL_OPERATOR_NAME,
element,
globalizedElement);
- globalizedElement.addBackendMember(callElement);
+ globalizedElement.addMember(callElement, compiler);
// The nested function's 'this' is the same as the one for the outer
// function. It could be [null] if we are inside a static method.
Element thisElement = closureData.thisElement;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698