2003-09-22 <cesar@ciencias.unam.mx>
[mono.git] / mcs / class / Microsoft.JScript / Microsoft.JScript / VariableDeclaration.cs
1 //
2 // VariableDeclaration.cs: The AST representation of a VariableDeclaration.
3 //
4 // Author:
5 //      Cesar Octavio Lopez Nataren
6 //
7 // (C) 2003, Cesar Octavio Lopez Nataren, <cesar@ciencias.unam.mx>
8 //
9
10 using System.Text;
11
12 namespace Microsoft.JScript {
13
14         public class VariableDeclaration : Statement {
15
16                 private string id;
17                 private string type;
18                 private AST assignExp;
19
20                 internal VariableDeclaration ()
21                 {}
22
23
24                 public string Id {
25                         get { return id; }
26                         set { id = value; }
27                 }
28
29                 
30                 public string Type {
31                         get { return type; }
32                         set { type = value; }
33                 }
34
35
36                 public override string ToString ()
37                 {
38                         StringBuilder sb = new StringBuilder ();
39
40                         // FIXME: we must add the string 
41                         // representation of assignExp, too.
42                         sb.Append (Id);
43                         
44                         return sb.ToString ();
45                 }
46         }
47 }