We're updating the issue view to help you get more done. 

Make ASTPrinter threadsafe and have code reuse their instances

Description

Currently ASTPrinter is not thredsafe and takes a construction parameter which would affect its output, making it hard to reuse. Turns out this parameter is never used across the whole code base, so cleaning this up opens opportunity to avoid some more allocations I spotted profiling the testsuite.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor