Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the AstFunctionNode class given the function name and the math command.
        /// </summary>
        /// <param name="function">The PostFixMathCommand object used to process this
        /// function's parameters and supply the result.</param>
        /// <param name="children">The children.</param>
        internal AstFunctionNode( PostfixMathCommand function, IEnumerable< AstNode > children )
        {
            _pfmc = function;
            _name = function.Symbol;

            foreach ( AstNode child in children )
                AddChild( child );
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the AstFunctionNode class given the function name and the math command.
 /// </summary>
 /// <param name="function">The PostFixMathCommand object used to process this
 /// function's parameters and supply the result.</param>
 /// <param name="functionName">The name of the function, or operator symbol.</param>
 internal AstFunctionNode( PostfixMathCommand function, string functionName )
 {
     _pfmc = function;
     _name = functionName;
 }