use of org.eclipse.lsp4j.SelectionRange in project eclipse.jdt.ls by eclipse.
the class SelectionRangeHandlerTest method testJavadoc.
@Test
public void testJavadoc() throws CoreException {
SelectionRange range = getSelectionRange("org.sample.Foo4", new Position(9, 31));
assertTrue(validateSelectionRange(// text element
range, // text element
new Range(new Position(9, 4), new Position(9, 40)), // tag element
new Range(new Position(9, 4), new Position(9, 40)), // javadoc
new Range(new Position(8, 1), new Position(10, 4)), // method declaration
new Range(new Position(8, 1), new Position(16, 2)), TYPE_DECL_RANGE, COMP_UNIT_RAGE));
}
Aggregations