From 7472cb882c0b2d13d7d8304b805e0a19c7cc38e4 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 12 Jul 2017 14:23:26 -0400 Subject: [PATCH] Return map symbol support This is a backwards-incompatible change that, like the input map, requires the use of symbols in the return map. This will allow us to forego the use of @keep and will have the return map be the authority of what gets linked (all of its dependencies). * src/current/compiler/map.xsl: Add symbol support to return-map. --- src/current/compiler/map.xsl | 183 +++++++++++++++++++++++------------ 1 file changed, 122 insertions(+), 61 deletions(-) diff --git a/src/current/compiler/map.xsl b/src/current/compiler/map.xsl index 039400dd..b4ec5749 100644 --- a/src/current/compiler/map.xsl +++ b/src/current/compiler/map.xsl @@ -27,6 +27,9 @@ When linking, the special head and tail fragments of the topmost map should be used (that is, if A includes B and C, use A). + TODO: Just generate a normal package and use the package system; + this duplicates a lot of logic, and does so piecemeal and poorly. + XXX: This is tightly coupled with the Program UI; refactor to support any type of source. --> @@ -91,10 +94,15 @@ consistently with the rest of the system --> + + + + + - - - + + + @@ -145,6 +153,8 @@ @@ -210,6 +234,7 @@ same (future bug pending!) --> + + + + + + + + + + + + + + + + + + + +