public override ImperativeNode ToFunctionCall()
            {
                var keys = new ExprListNode
                {
                    Exprs = this.keys
                };

                var values = new ExprListNode
                {
                    Exprs = this.values
                };

                var f = new IdentifierListNode
                {
                    LeftNode  = new IdentifierNode(DictionaryTypeName),
                    Optr      = Operator.dot,
                    RightNode = new FunctionCallNode
                    {
                        Function        = new IdentifierNode(DictionaryByKeysValuesName),
                        FormalArguments = new List <ImperativeNode> {
                            keys, values
                        }
                    }
                };

                f.col     = this.col;
                f.line    = this.line;
                f.endCol  = this.endCol;
                f.endLine = this.endLine;

                return(f);
            }
Example #2
0
 public ExprListNode(ExprListNode rhs)
     : base(rhs)
 {
     list = new List <ImperativeNode>();
     foreach (ImperativeNode argNode in rhs.list)
     {
         ImperativeNode tempNode = ProtoCore.Utils.NodeUtils.Clone(argNode);
         list.Add(tempNode);
     }
 }
Example #3
0
 public ExprListNode(ExprListNode rhs)
     : base(rhs)
 {
     Exprs = new List <ImperativeNode>();
     foreach (ImperativeNode argNode in rhs.Exprs)
     {
         ImperativeNode tempNode = NodeUtils.Clone(argNode);
         Exprs.Add(tempNode);
     }
 }
Example #4
0
 public ExprListNode(ExprListNode rhs)
     : base(rhs)
 {
     list = new List<ImperativeNode>();
     foreach (ImperativeNode argNode in rhs.list)
     {
         ImperativeNode tempNode = ProtoCore.Utils.NodeUtils.Clone(argNode);
         list.Add(tempNode);
     }
 }