Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Parameter.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 
5 namespace SiliconStudio.Shaders.Ast
6 {
7  /// <summary>
8  /// A single parameter declaration.
9  /// </summary>
10  public class Parameter : Variable
11  {
12  [VisitorIgnore]
13  private MethodDeclaration declaringMethod;
14 
15  /// <summary>
16  /// Initializes a new instance of the <see cref="Parameter"/> class.
17  /// </summary>
18  public Parameter()
19  {
20  }
21 
22  /// <summary>
23  /// Initializes a new instance of the <see cref="Parameter"/> class.
24  /// </summary>
25  /// <param name="type">The type.</param>
26  /// <param name="name">The name.</param>
27  /// <param name="initialValue">The initial value.</param>
28  public Parameter(TypeBase type, string name = null, Expression initialValue = null)
29  : base(type, name, initialValue)
30  {
31  }
32 
33  #region Public Properties
34 
35  /// <summary>
36  /// Gets or sets the declaring method.
37  /// </summary>
38  /// <value>
39  /// The declaring method.
40  /// </value>
41  public MethodDeclaration DeclaringMethod
42  {
43  get
44  {
45  return declaringMethod;
46  }
47  set
48  {
49  declaringMethod = value;
50  }
51  }
52 
53  #endregion
54  }
55 }
Parameter(TypeBase type, string name=null, Expression initialValue=null)
Initializes a new instance of the Parameter class.
Definition: Parameter.cs:28
A variable declaration.
Definition: Variable.cs:11
A single parameter declaration.
Definition: Parameter.cs:10
Base type for all types.
Definition: TypeBase.cs:11
Parameter()
Initializes a new instance of the Parameter class.
Definition: Parameter.cs:18