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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « lib/compiler/implementation/diagnostic_listener.dart ('k') | lib/compiler/implementation/js/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/elements/elements.dart
===================================================================
--- lib/compiler/implementation/elements/elements.dart (revision 13683)
+++ lib/compiler/implementation/elements/elements.dart (working copy)
@@ -821,7 +821,7 @@
VariableListElement this.variables,
ElementKind kind,
Element enclosing,
- [Node node])
+ {Node node})
: super(name, kind, enclosing), cachedNode = node;
Node parseNode(DiagnosticListener listener) {
@@ -867,7 +867,8 @@
VariableListElement variables,
Element enclosing,
Node node)
- : super(name, variables, ElementKind.FIELD_PARAMETER, enclosing, node);
+ : super(name, variables, ElementKind.FIELD_PARAMETER, enclosing,
+ node: node);
}
// This element represents a list of variable or field declaration.
@@ -1551,9 +1552,9 @@
* and patch class are included.
*/
// TODO(johnniwinther): Clean up lookup to get rid of the include predicates.
- void forEachMember([void f(ClassElement enclosingClass, Element member),
- includeBackendMembers = false,
- includeSuperMembers = false]) {
+ void forEachMember(void f(ClassElement enclosingClass, Element member),
+ {includeBackendMembers: false,
+ includeSuperMembers: false}) {
bool includeInjectedMembers = isPatch;
Set<ClassElement> seen = new Set<ClassElement>();
ClassElement classElement = declaration;
@@ -1599,9 +1600,9 @@
* When called on the implementation element both the fields declared in the
* origin and in the patch are included.
*/
- void forEachInstanceField([void f(ClassElement enclosingClass, Element field),
- includeBackendMembers = false,
- includeSuperMembers = false]) {
+ void forEachInstanceField(void f(ClassElement enclosingClass, Element field),
+ {includeBackendMembers: false,
+ includeSuperMembers: false}) {
// Filters so that [f] is only invoked with instance fields.
void fieldFilter(ClassElement enclosingClass, Element member) {
if (member.isInstanceMember() && member.kind == ElementKind.FIELD) {
@@ -1609,7 +1610,9 @@
}
}
- forEachMember(fieldFilter, includeBackendMembers, includeSuperMembers);
+ forEachMember(fieldFilter,
+ includeBackendMembers: includeBackendMembers,
+ includeSuperMembers: includeSuperMembers);
}
bool implementsInterface(ClassElement intrface) {
« no previous file with comments | « lib/compiler/implementation/diagnostic_listener.dart ('k') | lib/compiler/implementation/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698