Esempio n. 1
0
 /// <summary>Determines whether this ReturnException came from
 /// a given scope</summary>
 /// <param name="s">Scope to compare against</param>
 /// <returns>True if this ReturnException came from the scope
 /// given in <paramref name="s"/>; false otherwise.</returns>
 public bool IsFromScope(MethodScope s)
 {
     return(s == scope);
 }
Esempio n. 2
0
 /// <param name="scope">The method body scope from which this
 /// return originated</param>
 /// <param name="val">The return value</param>
 public ReturnException(MethodScope scope, GraceObject val)
 {
     this.scope = scope;
     Value      = val;
 }