summaryrefslogtreecommitdiffstats
path: root/stdlib/struct.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-22 18:18:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-22 18:18:43 -0700
commite9fb136ada07cc6bb5b56fa524dd1725e8b0c349 (patch)
tree26340c33aa437ff88084f38ccfa3bca706b084db /stdlib/struct.tl
parent58af09ba4dd459c973e47937d3a68b002d7ac1d4 (diff)
downloadtxr-e9fb136ada07cc6bb5b56fa524dd1725e8b0c349.tar.gz
txr-e9fb136ada07cc6bb5b56fa524dd1725e8b0c349.tar.bz2
txr-e9fb136ada07cc6bb5b56fa524dd1725e8b0c349.zip
compiler: forward source location for defun and defmacro
* stdlib/compiler.tl (expand-defun): Sprinkling of rlcp to pass source location info to the generated lambda, and to the sys:define-method call. (expand-defmacro): bugfix here: in with-gensyms we shadowed the form parameter, and then passed that as both form arguments to expand-bind-mac-params. We rename the gensym to mform, and then for the error-form, we pass the original form, quoted as necessary and with source location info. Thus, now source location info flows from the original defmacro form to the generated let* which binds the destructured parameters.
Diffstat (limited to 'stdlib/struct.tl')
0 files changed, 0 insertions, 0 deletions