chapel-lang/chapel — pull request #435 by vasslitvinov (2014-09-16 13:59:59+00:00)
Title: Fix list_view() and aid() debugging tools.

* In list_ast() - a helper to list_view():
- eliminated extraneous indentation+ID printouts
when the viewed nodes are not in AST;
- elimnated an extraneous newline at the end of a C for loop
- when printing ArgSymbol's blocks, annotate which ones they are

* In aid(), safeguard against accidental invocation on 1
and other small numbers, while at it.
Motivation: if I invoke nprint_view et al. on aid(1) by accident,
the debugger prints the entire program, which is too much.

I added aid09(), which is aid() without this safeguard.

* Remove #include "view.h" in a couple of .cpp files
where it is used unnecessarily.

I spot-checked each of these files to ensure that "view" and "aid"
are not used even under some #ifdefs.