Skip to content

Commit

Permalink
Fixed macroExpand so that the source (file/module) is set on the macr…
Browse files Browse the repository at this point in the history
…o-expansion in addition to the lineNumber.
  • Loading branch information
briantrice committed Dec 11, 2011
1 parent 1a8fdde commit c3c2b73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/syntax/macro.slate
Expand Up @@ -36,8 +36,11 @@ inherit the macro node's debugging information."
macroExpand &environment: env.
macro lineNumber ifNotNilDo:
[| :lineNumber |
source ::= macro source.
expansion walk:
[| :child | child lineNumber `defaultsTo: lineNumber]].
[| :child |
child lineNumber `defaultsTo: lineNumber.
child source `defaultsTo: source]].
expansion
].

Expand Down

0 comments on commit c3c2b73

Please sign in to comment.