From 603e9fb342b1b88fbf9fbee1dff00aab2ef169bb Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Tue, 12 Jan 2021 12:44:22 -0500 Subject: [PATCH] Optimize single-true-match classes into aliases Single-predicate classifications matching on TRUE can be optimized into aliases. These sometimes occur in hand-written code, but can also be generated by templates. --- src/current/compiler/js.xsl | 52 ++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl index a0472cc8..17fa1348 100644 --- a/src/current/compiler/js.xsl +++ b/src/current/compiler/js.xsl @@ -533,6 +533,56 @@ + + + + -