Example #1
0
        /// <summary>
        /// Restores scope tracking information from the given JSON representation.
        /// </summary>
        /// <param name="json">JSON representation of scope tracking information.</param>
        /// <param name="types">Type space used to lookup referenced types.</param>
        /// <returns>Scope tracking instance used during deserialization.</returns>
        public static Scope FromJson(Json.Expression json, TypeSpace types)
        {
            var state = new DeserializationState(json, types);

            return(new Scope(state));
        }
Example #2
0
 /// <summary>
 /// Creates a new scope tracking object for use during deserialization.
 /// </summary>
 /// <param name="state">Deserialization state.</param>
 private Scope(DeserializationState state)
 {
     Deserialization = state;
 }