Skip to content

Instantly share code, notes, and snippets.

@forki
Created November 15, 2014 11:29
Show Gist options
  • Save forki/da4d259d7cf72ac3bec7 to your computer and use it in GitHub Desktop.
Save forki/da4d259d7cf72ac3bec7 to your computer and use it in GitHub Desktop.
// Analyze the name
| Expr.Val(vref,_,_),_,_ when valRefEq cenv.g vref cenv.g.nameof_vref ->
let name =
match args.Head with
| Expr.Val(r,_,_) -> r.CompiledName
| x -> "I have no idea what I'm doing:" + (x.ToString())
Some( Expr.Const(Const.String name,m,cenv.g.string_ty),
{ TotalSize=1;
FunctionSize=1
HasEffect=false;
MightMakeCriticalTailcall = false;
Info=UnknownValue})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment