Skip to content

Commit

Permalink
Add references (#3529)
Browse files Browse the repository at this point in the history
Co-authored-by: Jimmy <[email protected]>
  • Loading branch information
shargon and Jim8y authored Oct 14, 2024
1 parent b752efe commit 3f2f78c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions benchmarks/Neo.VM.Benchmarks/TestArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public TestArray(IEnumerable<StackItem>? items = null)
}

/// <summary>
/// Create an array containing the specified items. And make the array use the specified <see cref="ReferenceCounter"/>.
/// Create an array containing the specified items. And make the array use the specified <see cref="IReferenceCounter"/>.
/// </summary>
/// <param name="referenceCounter">The <see cref="ReferenceCounter"/> to be used by this array.</param>
/// <param name="referenceCounter">The <see cref="IReferenceCounter"/> to be used by this array.</param>
/// <param name="items">The items to be included in the array.</param>
public TestArray(IReferenceCounter? referenceCounter, IEnumerable<StackItem>? items = null)
: base(referenceCounter)
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/Neo.VM.Benchmarks/TestStruct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public TestStruct(IEnumerable<StackItem>? fields = null)
}

/// <summary>
/// Create a structure with the specified fields. And make the structure use the specified <see cref="ReferenceCounter"/>.
/// Create a structure with the specified fields. And make the structure use the specified <see cref="IReferenceCounter"/>.
/// </summary>
/// <param name="referenceCounter">The <see cref="ReferenceCounter"/> to be used by this structure.</param>
/// <param name="referenceCounter">The <see cref="IReferenceCounter"/> to be used by this structure.</param>
/// <param name="fields">The fields to be included in the structure.</param>
public TestStruct(IReferenceCounter? referenceCounter, IEnumerable<StackItem>? fields = null)
: base(referenceCounter, fields)
Expand Down
5 changes: 3 additions & 2 deletions src/Neo.VM/ExecutionEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,18 @@ protected internal set
/// <summary>
/// Initializes a new instance of the <see cref="ExecutionEngine"/> class.
/// </summary>
/// <param name="jumpTable">The jump table to be used.</param>
public ExecutionEngine(JumpTable? jumpTable = null) : this(jumpTable, new ReferenceCounter(), ExecutionEngineLimits.Default)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="ExecutionEngine"/> class with the specified <see cref="VM.ReferenceCounter"/> and <see cref="ExecutionEngineLimits"/>.
/// Initializes a new instance of the <see cref="ExecutionEngine"/> class with the specified <see cref="VM.IReferenceCounter"/> and <see cref="ExecutionEngineLimits"/>.
/// </summary>
/// <param name="jumpTable">The jump table to be used.</param>
/// <param name="referenceCounter">The reference counter to be used.</param>
/// <param name="limits">Restrictions on the VM.</param>
protected ExecutionEngine(JumpTable? jumpTable, ReferenceCounter referenceCounter, ExecutionEngineLimits limits)
protected ExecutionEngine(JumpTable? jumpTable, IReferenceCounter referenceCounter, ExecutionEngineLimits limits)
{
JumpTable = jumpTable ?? JumpTable.Default;
Limits = limits;
Expand Down
4 changes: 2 additions & 2 deletions src/Neo.VM/Types/Array.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public Array(IEnumerable<StackItem>? items = null)
}

/// <summary>
/// Create an array containing the specified items. And make the array use the specified <see cref="ReferenceCounter"/>.
/// Create an array containing the specified items. And make the array use the specified <see cref="IReferenceCounter"/>.
/// </summary>
/// <param name="referenceCounter">The <see cref="ReferenceCounter"/> to be used by this array.</param>
/// <param name="referenceCounter">The <see cref="IReferenceCounter"/> to be used by this array.</param>
/// <param name="items">The items to be included in the array.</param>
public Array(IReferenceCounter? referenceCounter, IEnumerable<StackItem>? items = null)
: base(referenceCounter)
Expand Down
4 changes: 2 additions & 2 deletions src/Neo.VM/Types/Struct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public Struct(IEnumerable<StackItem>? fields = null)
}

/// <summary>
/// Create a structure with the specified fields. And make the structure use the specified <see cref="ReferenceCounter"/>.
/// Create a structure with the specified fields. And make the structure use the specified <see cref="IReferenceCounter"/>.
/// </summary>
/// <param name="referenceCounter">The <see cref="ReferenceCounter"/> to be used by this structure.</param>
/// <param name="referenceCounter">The <see cref="IReferenceCounter"/> to be used by this structure.</param>
/// <param name="fields">The fields to be included in the structure.</param>
public Struct(IReferenceCounter? referenceCounter, IEnumerable<StackItem>? fields = null)
: base(referenceCounter, fields)
Expand Down

0 comments on commit 3f2f78c

Please sign in to comment.