*** 54,63 **** --- 54,64 ---- public StructTree withNameAndDecls(String newName, List<Tree> newDecls) { return new StructTree(cursor(), definition, newDecls, newName); } + // definition of this struct if available anywhere in the compilation unit public Optional<Tree> definition() { return definition; } public List<Tree> declarations() {