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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertyGetter.java

Issue 10824045: Fix for issue 3915 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertyGetter.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertyGetter.java (revision 9937)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertyGetter.java (working copy)
@@ -92,8 +92,8 @@
import com.google.dart.compiler.ast.DartWhileStatement;
/**
- * Instances of the class <code>PropertyGetter</code> implement a visitor that captures the value of
- * the specified property for the node being visited.
+ * Instances of the class <code>PropertyGetter</code> implement a visitor that captures the value of the specified
+ * property for the node being visited.
*/
public class PropertyGetter extends PropertyVisitor {
/**
@@ -165,8 +165,8 @@
public Object visitCase(DartCase node) {
if (property == PropertyDescriptorHelper.DART_CASE_EXPRESSION) {
return node.getExpr();
- } else if (property == PropertyDescriptorHelper.DART_CASE_LABEL) {
- return node.getLabel();
+ } else if (property == PropertyDescriptorHelper.DART_CASE_LABELS) {
+ return node.getLabels();
} else if (property == PropertyDescriptorHelper.DART_CASE_STATEMENTS) {
return node.getStatements();
} else {
@@ -697,8 +697,8 @@
@Override
public Object visitSwitchMember(DartSwitchMember node) {
- if (property == PropertyDescriptorHelper.DART_SWITCH_MEMBER_LABEL) {
- return node.getLabel();
+ if (property == PropertyDescriptorHelper.DART_SWITCH_MEMBER_LABELS) {
+ return node.getLabels();
} else if (property == PropertyDescriptorHelper.DART_SWITCH_MEMBER_STATEMENTS) {
return node.getStatements();
} else {

Powered by Google App Engine
This is Rietveld 408576698