<< Back to previous view

[CLJS-408] Include :form on fn :methods in AST Created: 24/Oct/12  Updated: 27/Jul/13  Resolved: 27/Oct/12

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: Brandon Bloom Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: patch, patch,

Attachments: Text File CLJS-408-v1.patch    
Patch: Code

 Description   

All core CLJS AST nodes include a :form key. Several quasi-nodes similarly include their originating code forms. Although :fn nodes include their :form, it varies between single and multiple arity functions. I've found it easier to assume multiple arities and always analyze :methods directly. Unfortunately, the methods lack :form keys. This simple patch exposes the form of each method, simplifying function transformations.



 Comments   
Comment by David Nolen [ 27/Oct/12 4:52 PM ]

fixed, http://github.com/clojure/clojurescript/commit/3ea4a9309346a2a2d0983dc535b9b00531bfc90f

Generated at Wed Apr 23 08:55:32 CDT 2014 using JIRA 4.4#649-r158309.