]> source.dussan.org Git - aspectj.git/commitdiff
198196: extra ctor
authoraclement <aclement>
Tue, 17 Jun 2008 02:26:06 +0000 (02:26 +0000)
committeraclement <aclement>
Tue, 17 Jun 2008 02:26:06 +0000 (02:26 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/KnownFieldReference.java

index 2d95b4eedd74055db2bbf76e618c6ff06396d77a..1fc25ef7584f459719ba6c30968ce697df3e699f 100644 (file)
@@ -23,6 +23,16 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
 
 public class KnownFieldReference extends QualifiedNameReference {
 
+       public KnownFieldReference(FieldBinding binding, int startPos,int endPos) {
+               super(new char[][] {binding.name},new long[1], startPos, endPos);
+               this.binding = this.codegenBinding = binding;
+               this.constant = Constant.NotAConstant;
+               this.actualReceiverType = binding.declaringClass;
+               
+               this.bits = Binding.FIELD;
+               //this.receiver = AstUtil.makeTypeReference(binding.declaringClass);
+       }
+       
        //XXX handle source locations
        public KnownFieldReference(FieldBinding binding, long pos) {
                super(new char[][] {binding.name},new long[1],  0, 0);