public UnifiedElement VisitLockStatement( LockStatement lockStatement, object data) { return(UnifiedSynchronized.Create( lockStatement.Expression.TryAcceptForExpression(this), lockStatement.EmbeddedStatement.TryAcceptForExpression(this).ToBlock())); }
public override bool Visit( UnifiedSynchronized element, VisitorArgument arg) { WriteIndent(arg); Writer.Write("synchronized ("); element.Value.TryAccept(this, arg); Writer.Write(")"); element.Body.TryAccept(this, arg.Set(ForBlock)); return(false); }
public override bool Visit( UnifiedSynchronized element, VisitorArgument arg) { WriteIndent(arg); Writer.Write("synchronized ("); element.Value.TryAccept(this, arg); Writer.Write(")"); element.Body.TryAccept(this, arg.Set(ForBlock)); return false; }