Skip to content
Snippets Groups Projects
Commit da20fa6e authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[BUGFIX] Do not set original token value stream in TS AstBuilder

The 'original value token stream' is a helper used in
BE TypoScript modules to render a possible constant
substitution.
It is enough if the CommentAwareAstBuilder handles this,
which is used in those cases: getOriginalValueTokenStream()
is only called by fluid as 'child.originalValueTokenStream'
when rendering TS trees in the backend. Those use
CommentAwareAstBuilder and not "production" AstBuilder.
The patch avoids calling setOriginalValueTokenStream() as
a minor micro optimization which may also help the garbage
collection to clean up some objects more early in FE.

Resolves: #103975
Related: #97816
Releases: main, 12.4
Change-Id: Ifa54b36877d5eb1c1d712433efa2d07fd1ad8bd8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84491


Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 1c69f3db
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment