Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 440828

Summary: Finder incorrectly finds comment nodes
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2014-07-31 00:21:30 EDT
Consider the following snippets:

/**<caret here>

<caret_here>/**/

/**/<caret here>

in the first case we do not find a comment node, since the node range == the offset == the AST end.

In the next two cases we considered the doc node found, which is wrong, unless the offset is within the node it should not be found.