@dxos/echo
    Preparing search index...

    Function getReferenceTarget

    • The URI a reference property points at, or undefined when the node is not a reference.

      A reference declares its target twice: as a typed annotation on the declaration and as the JSON schema keys on the encoded node. Effect 4 dropped the merged jsonSchema annotation this used to read, so both are consulted -- a schema rebuilt from stored JSON only carries the latter.

      Typed as URI rather than DXN: a static schema's target is a typename DXN, but a stored (dynamic) schema is identified by its echo: EID, so callers must narrow before assuming either.

      Parameters

      • ast: AST

      Returns undefined | URI.URI

      O(1) annotation read, falling back to an O(schema size) encoded-side walk.