4f655be31e
Note; borrowed code from http://codereview.chromium.org/8914015/ as the editor had the same issue. Added support for the AST writer to handle Function Expressions and updated the parser to give the AST writer a chance to dump the unit (if requested via the current command line parameters) before bailing on the whole program. BUG= TEST= Review URL: http://codereview.chromium.org//8913016 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2515 260f80e4-7a28-3924-810f-c04153c831b5