[IronPython] ThrowingErrorSink and CompilerContext

2009-01-07 Thread Dan Eloff
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

Re: [IronPython] ThrowingErrorSink and CompilerContext

2009-01-07 Thread Dino Viehland
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() { }

Re: [IronPython] ThrowingErrorSink and CompilerContext

2009-01-07 Thread Dan Eloff
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