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

Unified Diff: dart/pkg/compiler/lib/src/scanner/listener.dart

Issue 732083002: Implement adding methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41885 Created 6 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 side-by-side diff with in-line comments
Download patch
Index: dart/pkg/compiler/lib/src/scanner/listener.dart
diff --git a/dart/pkg/compiler/lib/src/scanner/listener.dart b/dart/pkg/compiler/lib/src/scanner/listener.dart
index aa5224168ab42ed3ebf0579e1555306dfa4a1dc6..887232e5ae15de41569f8a2f6861b1b74349f1cd 100644
--- a/dart/pkg/compiler/lib/src/scanner/listener.dart
+++ b/dart/pkg/compiler/lib/src/scanner/listener.dart
@@ -2359,6 +2359,12 @@ class PartialFunctionElement extends FunctionElementX
super.reuseElement();
reusePartialFunctionMixin();
}
+
+ PartialFunctionElement copyWithEnclosing(Element enclosing) {
+ return new PartialFunctionElement(
+ name, beginToken, getOrSet, endToken, kind, modifiers, enclosing,
+ hasNoBody);
+ }
}
class PartialConstructorElement extends ConstructorElementX
« no previous file with comments | « dart/pkg/compiler/lib/src/elements/modelx.dart ('k') | dart/pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698