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);
            }
Exemple #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);
     }
 }
Exemple #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);
     }
 }
Exemple #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);
     }
 }