Rewritten Parser/Scanner to package net.sourceforge.phpdt.internal.compiler.parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / NameReference.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/NameReference.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/NameReference.java
deleted file mode 100644 (file)
index 3b41c81..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v0.5 
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- ******************************************************************************/
-package net.sourceforge.phpdt.internal.compiler.ast;
-
-import net.sourceforge.phpdt.internal.compiler.lookup.Binding;
-import net.sourceforge.phpdt.internal.compiler.lookup.BindingIds;
-import net.sourceforge.phpdt.internal.compiler.lookup.FieldBinding;
-import net.sourceforge.phpdt.internal.compiler.lookup.InvocationSite;
-import net.sourceforge.phpdt.internal.compiler.lookup.ReferenceBinding;
-import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
-
-public abstract class NameReference extends Reference implements InvocationSite, BindingIds {
-
-       public Binding binding, codegenBinding; //may be aTypeBinding-aFieldBinding-aLocalVariableBinding
-       
-       public TypeBinding receiverType, actualReceiverType;
-
-       //the error printing
-       //some name reference are build as name reference but
-       //only used as type reference. When it happens, instead of
-       //creating a new objet (aTypeReference) we just flag a boolean
-       //This concesion is valuable while their are cases when the NameReference
-       //will be a TypeReference (static message sends.....) and there is
-       //no changeClass in java.
-public NameReference() {
-       super();
-       bits |= TYPE | VARIABLE; // restrictiveFlag
-       
-}
-public FieldBinding fieldBinding() {
-       //this method should be sent ONLY after a check against isFieldReference()
-       //check its use doing senders.........
-
-       return (FieldBinding) binding ;
-}
-public boolean isSuperAccess() {
-       return false;
-}
-public boolean isTypeAccess() {
-       // null is acceptable when we are resolving the first part of a reference
-       return binding == null || binding instanceof ReferenceBinding;
-}
-public boolean isTypeReference() {
-       return binding instanceof ReferenceBinding;
-}
-public void setActualReceiverType(ReferenceBinding receiverType) {
-       this.actualReceiverType = receiverType;
-}
-public void setDepth(int depth) {
-       if (depth > 0) {
-               bits &= ~DepthMASK; // flush previous depth if any                      
-               bits |= (depth & 0xFF) << DepthSHIFT; // encoded on 8 bits
-       }
-}
-public void setFieldIndex(int index){
-       // ignored
-}
-
-public abstract String unboundReferenceErrorName();
-}