clojure.lang.CljCompiler.Ast.GenContext.EmitDebugInfo C# (CSharp) Method

EmitDebugInfo() public static method

public static EmitDebugInfo ( ILGen ilg, IPersistentMap spanMap ) : void
ilg ILGen
spanMap IPersistentMap
return void
        public static void EmitDebugInfo(ILGen ilg, IPersistentMap spanMap)
        {
            GenContext context = Compiler.CompilerContextVar.deref() as GenContext;
            if (context == null)
                return;

            context.MaybeEmitDebugInfo(ilg, spanMap);
        }

Usage Example

Ejemplo n.º 1
0
        public override void EmitUnboxed(RHC rhc, ObjExpr objx, CljILGen ilg)
        {
            GenContext.EmitDebugInfo(ilg, _spanMap);

            if (_method != null)
            {
                EmitForMethod(objx, ilg);
            }
            else
            {
                throw new InvalidOperationException("Unboxed emit of unknown member.");
            }

            if (rhc == RHC.Statement)
            {
                ilg.Emit(OpCodes.Pop);
            }
        }
All Usage Examples Of clojure.lang.CljCompiler.Ast.GenContext::EmitDebugInfo