1 /*******************************************************************************
2 * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v0.5
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.html
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.codeassist.select;
13 import net.sourceforge.phpdt.internal.compiler.ast.Expression;
14 import net.sourceforge.phpdt.internal.compiler.ast.LocalDeclaration;
15 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
17 public class SelectionOnLocalName extends LocalDeclaration{
18 public SelectionOnLocalName(Expression expr, char[] name, int sourceStart, int sourceEnd) {
19 super(expr, name, sourceStart, sourceEnd);
22 public void resolve(BlockScope scope) {
24 throw new SelectionNodeFound(binding);
27 public String toString(int tab) {
28 String s = tabString(tab);
29 s += "<SelectionOnLocalName:"; //$NON-NLS-1$
30 if (modifiers != AccDefault) {
31 s += modifiersString(modifiers);
33 s += type.toString(0) + " " + new String(name()); //$NON-NLS-1$
34 if (initialization != null) s += " = " + initialization.toStringExpression(); //$NON-NLS-1$