/*******************************************************************************
* Copyright (c) 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Dawid PakuĊa - initial API and implementation
*******************************************************************************/
package org.eclipse.php.core.compiler.ast.nodes;
import java.util.LinkedList;
import org.eclipse.dltk.ast.expressions.Expression;
/**
* Helper class to collect dim list [2][3]{4} for php < 7
*
* @author zulus
*/
public class DimList extends LinkedList<DimList.Element> {
/**
*
*/
private static final long serialVersionUID = -972228490084692206L;
public class Element {
public Element(Expression index, int type, int right) {
this.index = index;
this.type = type;
this.right = right;
}
public Expression index;
public int type;
public int right;
}
public void add(Expression index, int type, int right) {
this.add(new Element(index, type, right));
}
}