@@ -46,10 +46,11 @@ public EnumTree withName(String newName) { return name().equals(newName)? this : new EnumTree(cursor(), definition, constants, newName); } + // definition of this struct if available anywhere in the compilation unit public Optional<Tree> definition() { return definition; } public List<FieldTree> constants() {