public EmitContext (IMemberContext rc, ILGenerator ig, TypeSpec return_type, SourceMethodBuilder methodSymbols) { this.member_context = rc; this.ig = ig; this.return_type = return_type; if (rc.Module.Compiler.Settings.Checked) flags |= Options.CheckedScope; if (methodSymbols != null) { this.methodSymbols = methodSymbols; if (!rc.Module.Compiler.Settings.Optimize) flags |= Options.AccurateDebugInfo; } else { flags |= Options.OmitDebugInfo; } #if STATIC ig.__CleverExceptionBlockAssistance (); #endif }
public EmitContext (IMemberContext rc, ILGenerator ig, TypeSpec return_type) { this.member_context = rc; this.ig = ig; this.return_type = return_type; if (rc.Module.Compiler.Settings.Checked) flags |= Options.CheckedScope; if (SymbolWriter.HasSymbolWriter) { if (!rc.Module.Compiler.Settings.Optimize) flags |= Options.AccurateDebugInfo; } else { flags |= Options.OmitDebugInfo; } #if STATIC ig.__CleverExceptionBlockAssistance (); #endif }
// TODO: Replace IMemberContext with MemberCore public EmitContext (IMemberContext rc, ILGenerator ig, TypeSpec return_type) { this.MemberContext = rc; this.ig = ig; this.return_type = return_type; #if STATIC ig.__CleverExceptionBlockAssistance (); #endif }
public EmitContext (IMemberContext rc, ILGenerator ig, TypeSpec return_type) { this.member_context = rc; this.ig = ig; this.return_type = return_type; if (rc.Module.Compiler.Settings.Checked) flags |= Options.CheckedScope; #if STATIC ig.__CleverExceptionBlockAssistance (); #endif }