eclipse-jdt / eclipse-jdt/eclipse.jdt.core

[Javadoc/Markdown] JavaDocRegion child elements are displayed outside the region

Open
#5,315 0 comments 0 reactions 1 assignee Claimed by @subyssurendran666 View on GitHub
javadoc
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

Based on the comment from https://github.com/eclipse-jdt/eclipse.jdt.core/pull/5313#issuecomment-5409550800

When a JavaDocRegion is present in a Javadoc comment, its child elements are displayed outside the JavaDocRegion in ASTView. This issue occurs with both traditional Javadoc comments and Markdown Javadoc comments.

The JavaDocRegion has the correct source range, and its child elements also have the correct source ranges. However, the child elements are not shown under the corresponding JavaDocRegion in ASTView, which makes the AST structure confusing.

Image

```
/// {@snippet :
/// // @highlight region substring="println"
/// System.out.println("line 1");
/// System.out.println("line 2");
/// // @end
/// }

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.