Skip to content

Commit

Permalink
Updated EzrObject constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uralstech committed Aug 11, 2024
1 parent acea738 commit 044e3e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Runtime/Types/BaseTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ public EzrObject(Context parentContext, Position startPosition, Position endPosi
/// Creates a new object with the specified internal context, parent context and position.
/// </summary>
/// <param name="context">The internal context, if <see langword="null"/>, creates a new one.</param>
/// <param name="creationContext">The context in which this object was created in.</param>
/// <param name="parentContext">The context in which this object was created.</param>
/// <param name="startPosition">The starting position of the object.</param>
/// <param name="endPosition">The ending position of the object.</param>
public EzrObject(Context? context, Context creationContext, Position startPosition, Position endPosition)
public EzrObject(Context? context, Context parentContext, Position startPosition, Position endPosition)
{
StartPosition = startPosition;
EndPosition = endPosition;

_executionContext = CreationContext = creationContext;
_executionContext = CreationContext = parentContext;
Context = context ?? new Context(TypeName, false, startPosition, CreationContext, CreationContext.StaticContext);
}

Expand Down

0 comments on commit 044e3e9

Please sign in to comment.