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.complete;
14 * Completion node build by the parser in any case it was intending to
15 * reduce a single name reference containing the completion identifier.
30 * The source range of the completion node denotes the source range
31 * which should be replaced by the completion.
34 import net.sourceforge.phpdt.internal.compiler.ast.SingleNameReference;
35 import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
36 import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
38 public class CompletionOnSingleNameReference extends SingleNameReference {
39 public CompletionOnSingleNameReference(char[] source, long pos) {
42 public TypeBinding resolveType(BlockScope scope) {
43 throw new CompletionNodeFound(this, scope);
45 public String toStringExpression() {
46 return "<CompleteOnName:" + super.toStringExpression() + ">"; //$NON-NLS-2$ //$NON-NLS-1$