SDA SE WikiSoftware Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Represents the content of a comment. The creation of these facts has to be enabled in the JTransformer Preferences.
#id: id
ID of the commentT where this comment belongs to.
comment: atom
the text of the comment.
...
// line comment for method m
public void m() {
...
}
...
methodT(#methodId, #classId, m,[], #typeRef, [], #block). commentT(#commentId, #methodId, lineComment). sourceT(#commentId, '// line comment for method m').
ast_relation_type_spec(sourceT,[
ast_arg(id, mult(1,1,no ), id, [commentT]),
ast_arg(comment, mult(1,1,no ), attr, [atomic])
]).