Replace ScopeObject.scopes
with ScopeObject.references
#27403
Merged
ScopeObject.scopes
with ScopeObject.references
#27403