Skip to content

Construct EagerMacroFunction when aliasing macro function from {% from %} tag - #1208

Merged
jasmith-hs merged 4 commits into
masterfrom
construct-eager-macro-functions
Dec 13, 2024
Merged

Construct EagerMacroFunction when aliasing macro function from {% from %} tag#1208
jasmith-hs merged 4 commits into
masterfrom
construct-eager-macro-functions

Conversation

@jasmith-hs

Copy link
Copy Markdown
Contributor

MacroFunctions made in tags used in eager execution should be EagerMacroFunctions. This was done for those created from the {% macro %} (EagerMacroTag) tag, but not from EagerCallTag or EagerFromTag.

Specifically, there's a ClassCastException that can happen due to the assumption that in eager execution all MacroFunction objects are EagerMacroFunction instances. This could happen when successfully importing a macro function using a FromTag with an alias, a bug I introduced with #1117

@jasmith-hsjasmith-hs changed the title Construct EagerMacroFunction from EagerCallTag and EagerFromTagConstruct EagerMacroFunction when aliasing macro function from {% from %} tagSep 17, 2024
@jasmith-hs
jasmith-hs merged commit e94fa9a into masterDec 13, 2024
@jasmith-hs
jasmith-hs deleted the construct-eager-macro-functions branch December 13, 2024 16:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jasmith-hs