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

MaybSetLocalName() public method

public MaybSetLocalName ( LocalBuilder lb, string name ) : void
lb System.Reflection.Emit.LocalBuilder
name string
return void
        public void MaybSetLocalName(LocalBuilder lb, string name)
        {
            if (_isDebuggable)
                lb.SetLocalSymInfo(name);
        }

Usage Example

Ejemplo n.º 1
0
        public static void SetLocalName(LocalBuilder lb, string name)
        {
            GenContext context = Compiler.CompilerContextVar.deref() as GenContext;

            if (context == null)
            {
                return;
            }

            context.MaybSetLocalName(lb, name);
        }