/// <summary> /// Initializes a new instance of the <see cref="VariableNode"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="name">The name.</param> /// <param name="value">The value.</param> public VariableNode(VariableNode parent, string name, object value) { this.Parent = parent; this.Name = name; this.Value = value; }
/// <summary> /// Adds a variable to the environment. /// </summary> /// <param name="name">The name.</param> /// <param name="value">The value.</param> /// <returns></returns> public object AddVariable(string name, dynamic value) { this.environment = environment.AddVariable(name, value); return(value); }
/// <summary> /// Initializes a new instance of the <see cref="VariableNode"/> class. /// </summary> /// <param name="parent">The parent.</param> /// <param name="name">The name.</param> /// <param name="value">The value.</param> public VariableNode(VariableNode parent, string name, object value) { this.Parent = parent; this.Name = name; this.Value = value; }