31 lines
709 B
C#
31 lines
709 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace CPF.ReoGrid.Formula
|
|
{
|
|
internal class STFunctionNode : STNode
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public STFunctionNode(string name, int start, int len, List<STNode> children) : base(STNodeType.FUNCTION_CALL, start, len, children)
|
|
{
|
|
this.Name = name;
|
|
}
|
|
|
|
public override object Clone()
|
|
{
|
|
List<STNode> list = null;
|
|
bool flag = base.Children != null && base.Children.Count > 0;
|
|
if (flag)
|
|
{
|
|
list = new List<STNode>(base.Children.Count);
|
|
foreach (STNode stnode in base.Children)
|
|
{
|
|
list.Add((STNode)stnode.Clone());
|
|
}
|
|
}
|
|
return new STFunctionNode(this.Name, base.Start, base.Length, list);
|
|
}
|
|
}
|
|
}
|