DbgValue CreateResult(DbgEngineValue engineValue) { var value = new DbgValueImpl(Runtime, engineValue); Runtime.CloseOnContinue(value); return(value); }
public override void FormatType(DbgEvaluationInfo evalInfo, IDbgTextWriter output, DbgEngineValue value, DbgValueFormatterTypeOptions options, CultureInfo?cultureInfo) { }
public override bool Equals(DbgEngineObjectId objectId, DbgEngineValue value) => false;
public override int GetHashCode(DbgEngineValue value) => 0;
public override bool CanCreateObjectId(DbgEngineValue value) => false;
public override DbgEngineObjectId?CreateObjectId(DbgEngineValue value, uint id) => null;
/// <summary> /// Checks if an object id and a value refer to the same data /// </summary> /// <param name="objectId">Object id created by this class</param> /// <param name="value">Value created by this runtime</param> /// <returns></returns> public sealed override bool Equals(DbgEngineObjectId objectId, DbgEngineValue value) => dbgEngineObjectIdFactory.Equals(objectId, value);
/// <summary> /// Gets the hash code of a value created by this runtime /// </summary> /// <param name="value">Value created by this runtime</param> /// <returns></returns> public sealed override int GetHashCode(DbgEngineValue value) => dbgEngineObjectIdFactory.GetHashCode(value);
/// <summary> /// Returns true if it's possible to create an object id /// </summary> /// <param name="value">Value created by this runtime</param> /// <returns></returns> public sealed override bool CanCreateObjectId(DbgEngineValue value) => dbgEngineObjectIdFactory.CanCreateObjectId(value);
/// <summary> /// Creates an object id or returns null /// </summary> /// <param name="value">Value created by this runtime</param> /// <param name="id">Unique id</param> /// <returns></returns> public sealed override DbgEngineObjectId CreateObjectId(DbgEngineValue value, uint id) => dbgEngineObjectIdFactory.CreateObjectId(value, id);
public override void FormatType(DbgEvaluationContext context, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterTypeOptions options, CultureInfo cultureInfo, CancellationToken cancellationToken) { }
public override void FormatType(DbgEvaluationContext context, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterTypeOptions options, CancellationToken cancellationToken) { //TODO: output.Write(BoxedTextColor.Error, "TODO:"); }
public override void FormatValue(DbgEvaluationInfo evalInfo, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterOptions options, CultureInfo cultureInfo) { }
public DbgValueImpl(DbgRuntime runtime, DbgEngineValue engineValue) { Runtime = runtime ?? throw new ArgumentNullException(nameof(runtime)); EngineValue = engineValue ?? throw new ArgumentNullException(nameof(engineValue)); }
public override void Format(DbgEvaluationContext context, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterOptions options, CancellationToken cancellationToken) { }