DelphiAST
DelphiAST copied to clipboard
Get the end_line and end_col of a multi-line comment?
While the uses node:
<USES begin_line="7" begin_col="1" end_line="14" end_col="1">
... as a multiline element has the attributes begin_line, begin_col, end_line, end_col,
the Comments-node object has only the members line and col. Although a comment can be multiple lines.
So how can I determine the end_line and end_col of a multi-line comment?
But can't you calculate this from comment text?
Yes, but this would be a kind of guessing. Having an EXPLICIT syntax tree information about the end_line and end_col of a multi-line comment would be better.
@RomanYankovsky I think that this yet another to decide which way to go: close (out of scope) or triage it as a new feature: great idea is to assign labels: enhancement
and help wanted
to highlight your decision