Bug 13916 - api: IScanner - Scanner.linePtr
Summary: api: IScanner - Scanner.linePtr
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-16 13:02 EDT by Adam Kiezun CLA
Modified: 2002-04-25 04:51 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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