Internally, in compile builtin, IronPython creates a CompilerContext like:
new CompilerContext(sourceUnit, opts, ThrowingErrorSink.Default)
But ThrowingErrorSink is internal, what can I do to get a equivalent
CompilerContext?
This is blocking the _ast module from running on unpatched
You should be able to just copy and paste throwing error sink into your own
version, it's pretty simple:
internal class ThrowingErrorSink : ErrorSink {
public static new readonly ThrowingErrorSink/*!*/ Default = new
ThrowingErrorSink();
private ThrowingErrorSink() {
}
Thanks, I'll do that.
On Wed, Jan 7, 2009 at 3:59 PM, Dino Viehland di...@microsoft.com wrote:
You should be able to just copy and paste throwing error sink into your own
version, it's pretty simple:
internal class ThrowingErrorSink : ErrorSink {
public static new readonly