comparison src/mono_opt.sml @ 578:1e589a60b86f

Harmonized source-setting between server and client
author Adam Chlipala <adamc@hcoop.net>
date Tue, 30 Dec 2008 11:33:31 -0500
parents 57018f21cd5c
children 96ebc6bdb5a0
comparison
equal deleted inserted replaced
577:3d56940120b1 578:1e589a60b86f
361 ERecord [] 361 ERecord []
362 362
363 | ESignalBind ((ESignalReturn e1, loc), e2) => 363 | ESignalBind ((ESignalReturn e1, loc), e2) =>
364 optExp (EApp (e2, e1), loc) 364 optExp (EApp (e2, e1), loc)
365 365
366 | EJavaScript (_, _, SOME (e, _)) => e
367
366 | _ => e 368 | _ => e
367 369
368 and optExp e = #1 (U.Exp.map {typ = typ, exp = exp} e) 370 and optExp e = #1 (U.Exp.map {typ = typ, exp = exp} e)
369 371
370 val optimize = U.File.map {typ = typ, exp = exp, decl = decl} 372 val optimize = U.File.map {typ = typ, exp = exp, decl = decl}