[code-reflection] RFR: OpWriter.ColoringOption proposal [v2]
Adam Sotona
asotona at openjdk.org
Mon Sep 8 17:57:05 UTC 2025
On Thu, 4 Sep 2025 12:54:20 GMT, Adam Sotona <asotona at openjdk.org> wrote:
>> I propose `OpWriter` enables simple ANSI coloring based on `jdk.incubator.code.extern.OpWriter.COLOR` system property.
>>
>> ANSI coloring sample:
>> <img width="989" height="746" alt="ansi-coloring" src="https://github.com/user-attachments/assets/2025bcbe-6c6c-48ab-8ed5-67ff88b47fe6" />
>
> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
>
> Added OpWriter.ColoringOption.ANSI_HI
Based on the offline discussion I would like to split this effort.
This PR should provide just basic ANSI coloring triggered by a System property.
A more advanced tool exporting code model into various colored formats may be a subject of another PR and probably not directly into the code reflection module.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/546#issuecomment-3267317419
More information about the babylon-dev
mailing list