public Identifier CreateTemporary(string name, DataType dt) { var tmp = new TemporaryStorage(name, ids.Count, dt); var id = new Identifier(name, dt, tmp); ids.Add(id); return(id); }
public Identifier CreateTemporary(DataType dt) { var name = "v" + ids.Count; var tmp = new TemporaryStorage(name, ids.Count, dt); var id = Identifier.Create(tmp); ids.Add(id); return(id); }
private static Identifier CreateIdentifier(Address addr) { string name; if (addr.Selector.HasValue) { name = string.Format("seg{0:X4}", addr.Selector.Value); } else { name = $"seg{addr}"; } var dt = PrimitiveType.SegmentSelector; var stg = new TemporaryStorage(name, 0, dt); return(Identifier.Create(stg)); }
public Expression VisitTemporaryStorage(TemporaryStorage temp) { throw new NotSupportedException(string.Format("A {0} can't be used as a formal parameter.", temp.GetType().FullName)); }
Identifier StorageVisitor <Identifier> .VisitTemporaryStorage(TemporaryStorage temp) { throw new NotImplementedException(); }