--- old/src/jdk.jextract/share/classes/com/sun/tools/jextract/tree/StructTree.java 2018-09-19 19:35:36.000000000 +0530 +++ new/src/jdk.jextract/share/classes/com/sun/tools/jextract/tree/StructTree.java 2018-09-19 19:35:36.000000000 +0530 @@ -56,6 +56,7 @@ return new StructTree(cursor(), definition, newDecls, newName); } + // definition of this struct if available anywhere in the compilation unit public Optional definition() { return definition; }