예제 #1
0
 /// <summary>
 /// Create a local variable declaration with the explicit typification.
 /// </summary>
 public VarDeclaration(TypeNode type, string varName, Expression initializer, VarScope scope)
 {
     Type        = type;
     VarName     = varName;
     Initializer = initializer;
     Scope       = scope;
     Scope.Register(varName, this);
 }
예제 #2
0
 /// <summary>
 /// Create a local variable declaration with the implicit typification.
 /// </summary>
 public VarDeclaration(string varName, Expression initializer, VarScope scope)
     : this(null, varName, initializer, scope)
 {
 }