Improved calculation of function/methods sourceEnd for code folding
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / internal / compiler / ast / FieldReference.java
index 5011646..e0b1c96 100644 (file)
@@ -38,8 +38,10 @@ public class FieldReference extends Reference implements InvocationSite {
                token = source;
                nameSourcePosition = pos;
                //by default the position are the one of the field (not true for super access)
-               sourceStart = (int) (pos >>> 32);
-               sourceEnd = (int) (pos & 0x00000000FFFFFFFFL);
+//             sourceStart = (int) (pos >>> 32);
+//             sourceEnd = (int) (pos & 0x00000000FFFFFFFFL);
+               sourceStart = (int) pos;
+               sourceEnd = sourceStart + source.length;
                bits |= BindingIds.FIELD;
 
        }