Will try to explain with an example --
// expectedComment
type StructNameA struct {
NameA string
AgeA int
}
// some diff comment
type StructNameB struct {
NameB string
AgeB int
}
Now I want the name of StructNameA struct along with its fields because it contains expectedComment at the top.
To check if the comment is expectedComment, I will need that too.
So basically I will need the list of triplet {comment, typeSpec, structType}.