Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
UsingStatement.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.Collections.Generic;
4 
5 using SiliconStudio.Shaders.Ast;
6 
7 namespace SiliconStudio.Paradox.Shaders.Parser.Ast
8 {
9  /// <summary>
10  /// A using statement.
11  /// </summary>
12  public class UsingStatement : Statement
13  {
14  #region Constructors and Destructors
15 
16  /// <summary>
17  /// Initializes a new instance of the <see cref = "UsingStatement" /> class.
18  /// </summary>
19  public UsingStatement()
20  {
21  }
22 
23  public Identifier Name;
24 
25  #endregion
26 
27  #region Public Methods
28 
29  /// <inheritdoc />
30  public override IEnumerable<Node> Childrens()
31  {
32  ChildrenList.Clear();
33  ChildrenList.Add(Name);
34  return ChildrenList;
35  }
36 
37  /// <inheritdoc />
38  public override string ToString()
39  {
40  return string.Format("using {0}", Name);
41  }
42 
43  #endregion
44  }
45 }
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes
UsingStatement()
Initializes a new instance of the UsingStatement class.
Base root class for all statements.
Definition: Statement.cs:11