Skip to content
Merged
Prev Previous commit
Include fields in global fullname cache for custom options
  • Loading branch information
mkruskal-google committed May 13, 2025
commit 54fedf0457616689c5b9dd80c957976f0951dbdb
2 changes: 1 addition & 1 deletion src/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Root.prototype._handleAdd = function _handleAdd(object) {
object.parent[object.name] = object; // expose namespace as property of its parent
}

if (object instanceof Type || object instanceof Enum) {
if (object instanceof Type || object instanceof Enum || object instanceof Field) {
// Only store types and enums for quick lookup during resolve.
this._fullyQualifiedObjects[object.fullName] = object;
}
Expand Down