Ejemplo n.º 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);
 }
Ejemplo n.º 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)
 {
 }