Skip to content

Comments **must** be linked to something #245

@badetitou

Description

@badetitou

IMHO, every nodes must be linked to the others. Or the model is very hard to manipulate and understand.
Even if it can seem buggy.

In test JavaSmaCCBlockCommentTest>>#testCommentIsAttached we say that the last comment of

void blah() {
  /* the following is a declaration */
  String someVar;
  /* block comment at the end */
}

is contained by no-one. So how can we retrieve it.... That's very strange to me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions