Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/ast/nodes/Program.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/ast/nodes/Program.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/ast/nodes/Program.java
index 27872b71a..4d80c75f8 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/ast/nodes/Program.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/ast/nodes/Program.java
@@ -46,7 +46,7 @@ public class Program extends ASTNode {
public static final ChildListPropertyDescriptor STATEMENTS_PROPERTY =
new ChildListPropertyDescriptor(Program.class, "statements", Statement.class, NO_CYCLE_RISK); //$NON-NLS-1$
public static final ChildListPropertyDescriptor COMMENTS_PROPERTY =
- new ChildListPropertyDescriptor(Program.class, "statements", Comment.class, NO_CYCLE_RISK); //$NON-NLS-1$
+ new ChildListPropertyDescriptor(Program.class, "comments", Comment.class, NO_CYCLE_RISK); //$NON-NLS-1$
/**
* A list of property descriptors (element type:
@@ -57,6 +57,7 @@ public class Program extends ASTNode {
static {
List<StructuralPropertyDescriptor> properyList = new ArrayList<StructuralPropertyDescriptor>(1);
properyList.add(STATEMENTS_PROPERTY);
+ properyList.add(COMMENTS_PROPERTY);
PROPERTY_DESCRIPTORS = Collections.unmodifiableList(properyList);
}

Back to the top