~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationCtxFile.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
        }
105
105
 
106
106
        public boolean isThisFile(int sequenceNumber) {
 
107
                if (sequenceNumber < 0)
 
108
                        return false;
107
109
                LocationCtx child= findChildLessOrEqualThan(sequenceNumber, false);
108
 
                if (!(child instanceof LocationCtxFile)) {
 
110
                if (!(child instanceof LocationCtxFile))
109
111
                        return true;
110
 
                }
111
112
                return sequenceNumber >= child.fSequenceNumber + child.getSequenceLength();
112
113
        }
113
114