Bug 13916

Summary: api: IScanner - Scanner.linePtr
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-04-16 13:02:38 EDT
20020412
i can't find a good way to get the old Scanner.linePtr  funtionality 
in the api scanner (i need read access to that field)
Comment 1 Philipe Mulet CLA 2002-04-16 16:52:21 EDT
What behavior do you need exactly ?
Comment 2 Adam Kiezun CLA 2002-04-24 09:46:57 EDT
(sorry it took so long to answer)

there's no token for EOL, so it's not easy to figure out which line i'm in 
without access to that field

Comment 3 Adam Kiezun CLA 2002-04-24 09:49:21 EDT
i mean, i could do it with getLineEnds and getCurrentTokenStartPosition 
but it would be suboptimal i think
Comment 4 Philipe Mulet CLA 2002-04-24 10:08:01 EDT
What if instead you had: IScanner.getLineNumber(int charPosition) ?
Comment 5 Adam Kiezun CLA 2002-04-24 10:26:23 EDT
would do, i think
Comment 6 Philipe Mulet CLA 2002-04-25 04:51:22 EDT
Fixed