The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
Parameter.cs
Go to the documentation of this file.
1 // -------------------------------------------------------------------------- //
3 // Project rROTOR //
4 // -------------------------------------------------------------------------- //
5 // File: Parameter.cs //
6 // Author: Cristina Gonzalez Muņoz - cristi.gm@gmail.com //
7 // Description: //
8 // Encapsulates a parameter declaration. //
9 // -------------------------------------------------------------------------- //
10 // Create date: 01-02-2007 //
11 // Modification date: 01-02-2007 //
13 
14 using System;
15 using System.Collections.Generic;
16 using System.Text;
17 
18 using Tools;
19 using TypeSystem;
20 
21 namespace AST
22 {
26  public struct Parameter
27  {
28  #region Fields
29 
33  private string paramType;
34 
38  private string identifier;
39 
43  private int line;
44 
48  private int column;
49 
50  #endregion
51 
52  #region Properties
53 
57  public string ParamType
58  {
59  get { return this.paramType; }
60  set { this.paramType = value; }
61  }
62 
66  public string Identifier
67  {
68  get { return this.identifier; }
69  set { this.identifier = value; }
70  }
71 
75  public string ILName
76  {
77  get
78  {
79  if (!this.paramType.EndsWith("[]"))
80  return this.identifier + "__0";
81  else
82  return this.identifier;
83  }
84  }
85 
89  public int Line
90  {
91  get { return line; }
92  set { line = value; }
93  }
94 
98  public int Column
99  {
100  get { return column; }
101  set { column = value; }
102  }
103 
104  #endregion
105  }
106 }
int Line
Gets or sets the line number
Definition: Parameter.cs:90
Encapsulates a parameter declaration.
Definition: Parameter.cs:26
int Column
Gets or sets the column number
Definition: Parameter.cs:99
string Identifier
Gets or sets parameter name
Definition: Parameter.cs:67
string ParamType
Gets or sets the name of the parameter type
Definition: Parameter.cs:58
string ILName
Gets the il parameter name.
Definition: Parameter.cs:76