public VisitThrow ( System.Compiler.Throw Throw ) : System.Compiler.Statement | ||
Throw | System.Compiler.Throw | |
Résultat | System.Compiler.Statement |
public override Statement VisitThrow(Throw Throw)
{
if (Throw == null) return null;
if (!(Throw.Expression is Identifier))
{
this.HandleError(Throw.Expression, Error.InvalidExceptionExpression);
return null;
}
AddExceptionName(((Identifier)Throw.Expression).Name);
return Throw;
}