Пример #1
0
        /// <summary>
        /// Visits the information value location.
        /// </summary>
        /// <param name="location">The location.</param>
        public void VisitInfoValueLocation(InfoValueLocation location)
        {
            MemoryEntry oldEntry = SnapshotDataUtils.GetMemoryEntry(snapshot, snapshot.CurrentData.Readonly, location.ContainingIndex);

            HashSet <Value> newValues = new HashSet <Value>();

            CollectionMemoryUtils.AddAll(newValues, oldEntry.PossibleValues);

            IEnumerable <Value> values = location.WriteValues(snapshot.MemoryAssistant, entry);

            newValues.Add(location.Value);

            snapshot.CurrentData.Writeable.SetMemoryEntry(location.ContainingIndex, snapshot.CreateMemoryEntry(newValues));
        }
Пример #2
0
 /// <summary>
 /// Visits the information value location.
 /// </summary>
 /// <param name="location">The location.</param>
 public void VisitInfoValueLocation(InfoValueLocation location)
 {
 }
Пример #3
0
 /// <summary>
 /// Visits the information value location.
 /// </summary>
 /// <param name="location">The location.</param>
 public void VisitInfoValueLocation(InfoValueLocation location)
 {
     read(location.ContainingIndex);
 }