Open sandboxFocus

Method ToRef

ToRef()

Gets a reference to the compilation, which can be used to identify the current declaration in a different revision of the compilation. The reference object is compile-time serializable. It is guaranteed to be deserializable in a different process, even with a different version of Metalama.

Declaration
IRef<IDeclaration> ToRef()
Returns
Type Description
IRef<IDeclaration>