Chromium Code Reviews| Index: lib/compiler/implementation/closure.dart |
| =================================================================== |
| --- lib/compiler/implementation/closure.dart (revision 11771) |
| +++ lib/compiler/implementation/closure.dart (working copy) |
| @@ -60,6 +60,7 @@ |
| class ClosureClassElement extends ClassElement { |
| ClosureClassElement(SourceString name, |
| Compiler compiler, |
| + this.originalElement, |
| Element enclosingElement) |
| : super(name, |
| enclosingElement, |
| @@ -73,7 +74,9 @@ |
| interfaces = const EmptyLink<DartType>(); |
| allSupertypes = new Link<DartType>(supertype); |
| } |
| + |
| bool isClosure() => true; |
| + Element originalElement; |
|
floitsch
2012/09/03 16:59:16
methodElement ?
It is not really the "original".
ngeoffray
2012/09/04 07:06:09
Done.
|
| } |
| class BoxElement extends Element { |
| @@ -395,7 +398,7 @@ |
| SourceString closureName = |
| new SourceString(compiler.namer.closureName(element)); |
| ClassElement globalizedElement = new ClosureClassElement( |
| - closureName, compiler, element.getCompilationUnit()); |
| + closureName, compiler, element, element.getCompilationUnit()); |
| FunctionElement callElement = |
| new FunctionElement.from(Namer.CLOSURE_INVOCATION_NAME, |
| element, |