Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ArrayInitializerExpression.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using System.Reflection;
6 
7 namespace SiliconStudio.Shaders.Ast
8 {
9  /// <summary>
10  /// Expression used to initliaze an array {...expressions,}
11  /// </summary>
13  {
14  /// <summary>
15  /// Initializes a new instance of the <see cref="ArrayInitializerExpression"/> class.
16  /// </summary>
18  {
19  Items = new List<Expression>();
20  }
21 
22  /// <summary>
23  /// Gets or sets the items.
24  /// </summary>
25  /// <value>
26  /// The items.
27  /// </value>
28  public List<Expression> Items { get; set; }
29 
30  /// <inheritdoc/>
31  public override IEnumerable<Node> Childrens()
32  {
33  return Items;
34  }
35 
36  /// <inheritdoc/>
37  public override string ToString()
38  {
39  return string.Format("{{{0}}}", string.Join(",", Items));
40  }
41  }
42 }
ArrayInitializerExpression()
Initializes a new instance of the ArrayInitializerExpression class.
Expression used to initliaze an array {...expressions,}
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes