Index: src/Boo.Lang.Compiler/AssemblyInfo.cs =================================================================== --- src/Boo.Lang.Compiler/AssemblyInfo.cs (revision 3320) +++ src/Boo.Lang.Compiler/AssemblyInfo.cs (working copy) @@ -29,8 +29,6 @@ using System.Reflection; using System.Security.Permissions; -[assembly: ReflectionPermission(SecurityAction.RequestMinimum, - ReflectionEmit=true)] [assembly: AssemblyTitle("boo - an extensible programming language for the CLI")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] Index: src/Boo.Lang.Compiler/Steps/EmitAssembly.cs =================================================================== --- src/Boo.Lang.Compiler/Steps/EmitAssembly.cs (revision 3320) +++ src/Boo.Lang.Compiler/Steps/EmitAssembly.cs (working copy) @@ -48,7 +48,8 @@ using Boo.Lang.Runtime; using Attribute = Boo.Lang.Compiler.Ast.Attribute; using Module = Boo.Lang.Compiler.Ast.Module; -using System.Collections.Generic; +using System.Collections.Generic; +using System.Security.Permissions; namespace Boo.Lang.Compiler.Steps { @@ -3444,18 +3445,17 @@ } bool EmitDebugInfo(Node node) - { + { + if (!Parameters.Debug) return false; return EmitDebugInfo(node, node); } private const int _DBG_SYMBOLS_QUEUE_CAPACITY = 5; private System.Collections.Generic.Queue _dbgSymbols = new System.Collections.Generic.Queue(_DBG_SYMBOLS_QUEUE_CAPACITY); - + [ReflectionPermission(SecurityAction.Demand, ReflectionEmit=true)] bool EmitDebugInfo(Node startNode, Node endNode) { - if (!Parameters.Debug) return false; - LexicalInfo start = startNode.LexicalInfo; if (!start.IsValid) return false;