You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5776 Reporter:@bobzhang Status: closed (set by @mshinwell on 2016-12-12T15:29:34Z) Resolution: not a bug Priority: normal Severity: feature Category: ~DO NOT USE (was: OCaml general) Monitored by:@hcarty
Bug description
for example, when I have a nested Ast as follows,
most information was hidden by the qualified module paths
MetaAst.Expr.meta_patt _loc v |> anti_obj#expr; ;
Original bug ID: 5776
Reporter: @bobzhang
Status: closed (set by @mshinwell on 2016-12-12T15:29:34Z)
Resolution: not a bug
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @hcarty
Bug description
for example, when I have a nested Ast as follows,
most information was hidden by the qualified module paths
MetaAst.Expr.meta_patt _loc v |> anti_obj#expr; ;
Lib.Expr.Ast.ExApp (,
Lib.Expr.Ast.ExApp (,
Lib.Expr.Ast.ExApp (,
Lib.Expr.Ast.ExId (,
Lib.Expr.Ast.IdAcc (, Lib.Expr.Ast.IdUid (, "Ast"),
Lib.Expr.Ast.IdUid (, "PaApp"))),
Lib.Expr.Ast.ExId (, Lib.Expr.Ast.IdLid (, "_loc"))),
Lib.Expr.Ast.ExApp (,
Lib.Expr.Ast.ExApp (,
Lib.Expr.Ast.ExId (,
Lib.Expr.Ast.IdAcc (, Lib.Expr.Ast.IdUid (, "Ast"),
Lib.Expr.Ast.IdUid (, "PaId"))),
Lib.Expr.Ast.ExId (, Lib.Expr.Ast.IdLid (, "_loc"))),
Lib.Expr.Ast.ExApp (,
Lib.Expr.Ast.ExApp (,
Lib.Expr.Ast.ExId (,
Lib.Expr.Ast.IdAcc (, Lib.Expr.Ast.IdUid (, "Ast"),
Lib.Expr.Ast.IdUid (, "IdUid"))),
Lib.Expr.Ast.ExId (, Lib.Expr.Ast.IdLid (, "_loc"))),
Lib.Expr.Ast.ExStr (, "A")))),
Lib.Expr.Ast.ExId (, Lib.Expr.Ast.IdLid (, "x")))
It would be great for the toplevel to have an option to get output as follows:
ExApp (,
ExApp (,
ExApp (, ExId (, IdAcc (, IdUid (, "Ast"), IdUid (, "PaApp"))),
ExId (, IdLid (, "_loc"))),
ExApp (,
ExApp (, ExId (, IdAcc (, IdUid (, "Ast"), IdUid (, "PaId"))),
ExId (, IdLid (, "_loc"))),
ExApp (,
ExApp (, ExId (, IdAcc (, IdUid (, "Ast"), IdUid (, "IdUid"))),
ExId (, IdLid (, "_loc"))),
ExStr (, "A")))),
ExId (, IdLid (, "x")))
suppose we have two directives like this
#print_qualified;;
#unprint_qualified;;
The text was updated successfully, but these errors were encountered: