Bug 194721 - Open declaration should check correct offsets for search
Summary: Open declaration should check correct offsets for search
Status: RESOLVED FIXED
Alias: None
Product: DLTK
Classification: Technology
Component: Ruby (show other bugs)
Version: 0.95   Edit
Hardware: PC Windows NT
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Mikhail Kalugin CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-06-28 04:55 EDT by Dmitriy Kovalev CLA
Modified: 2010-06-11 06:16 EDT (History)
1 user (show)

See Also:


Attachments
patch (3.62 KB, patch)
2008-05-19 05:21 EDT, Alex Panchenko CLA
alex.panchenko: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Kovalev CLA 2007-06-28 04:55:16 EDT
1. Consider the following code:

boolean = 5 > 23

<CURSOR_1>boolean<CURSOR_2>

2. We have two possible positions of cursor - CURSOR_1, CURSOR_2. Pressing of F3 key at these positions should  select declaration of 'boolean' variable but it doesn't happen. See JDT logic for more details.
Comment 1 Alex Panchenko CLA 2008-05-19 05:21:49 EDT
Created attachment 100871 [details]
patch

The patch contains the fix and the test.

Legal Message: I, Alex Panchenko, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer (xored software, Inc.) to make this contribution under the EPL.
Comment 2 Andrei Sobolev CLA 2008-05-19 05:24:33 EDT
Applied.
Comment 3 Andrey Platov CLA 2008-05-26 02:49:44 EDT
bulk change: fixed in 0.95