diff --git a/src/Runtime/Types/BaseTypes.cs b/src/Runtime/Types/BaseTypes.cs index 42f8dff..1a012c1 100644 --- a/src/Runtime/Types/BaseTypes.cs +++ b/src/Runtime/Types/BaseTypes.cs @@ -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. /// /// The internal context, if , creates a new one. - /// The context in which this object was created in. + /// The context in which this object was created. /// The starting position of the object. /// The ending position of the object. - 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); }