/******************************************************************************* * 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.ast.nodes; /** * Helper class to collect VariableName and ArrayAccess for php >=5.4 & < 7 * * @author zulus */ public class ObjectDimList { public final VariableBase variable; public DimList list; public int refCount = 0; public ObjectDimList(VariableBase variable) { this.variable = variable; } public void add(Expression index, int type, int right) { if (list == null) { list = new DimList(); } list.add(index, type, right); } }