示例#1
0
        DbgValue CreateResult(DbgEngineValue engineValue)
        {
            var value = new DbgValueImpl(Runtime, engineValue);

            Runtime.CloseOnContinue(value);
            return(value);
        }
示例#2
0
 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;
示例#7
0
 /// <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);
示例#8
0
 /// <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);
示例#9
0
 /// <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);
示例#10
0
 /// <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);
示例#11
0
 public override void FormatType(DbgEvaluationContext context, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterTypeOptions options, CultureInfo cultureInfo, CancellationToken cancellationToken)
 {
 }
示例#12
0
 public override void FormatType(DbgEvaluationContext context, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterTypeOptions options, CancellationToken cancellationToken)
 {
     //TODO:
     output.Write(BoxedTextColor.Error, "TODO:");
 }
示例#13
0
 public override void FormatValue(DbgEvaluationInfo evalInfo, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterOptions options, CultureInfo cultureInfo)
 {
 }
示例#14
0
 public DbgValueImpl(DbgRuntime runtime, DbgEngineValue engineValue)
 {
     Runtime     = runtime ?? throw new ArgumentNullException(nameof(runtime));
     EngineValue = engineValue ?? throw new ArgumentNullException(nameof(engineValue));
 }
示例#15
0
 public override void Format(DbgEvaluationContext context, ITextColorWriter output, DbgEngineValue value, DbgValueFormatterOptions options, CancellationToken cancellationToken)
 {
 }