RFR: 8224228: No way to locally suppress lint warnings in parser/tokenizer or preview features [v13]
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Feb 26 12:59:56 UTC 2025
On Tue, 25 Feb 2025 20:02:56 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:
> We still have two ways of doing things but at least this way they'll be a little more compartmentalized... :)
Well yes, but from the perspective of user model (and deferred lint handler) -- a lint warning would be _always_ be associated with some declaration. So it's up to the clients that have special requirements (such as parser and tokenizer) to make up for the difference -- rather than coming up with a more general way to map positions back to tree (which, if done, well at that point you could well be using positions everywhere).
Thanks for taking a look.
P.S.
I see a lot of changes related to positions -- @lahodaj @archiecobbs do you thing that https://github.com/openjdk/jdk/pull/23669 would still be nice to have even if we don't need to map positions back to trees?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23237#issuecomment-2684884768
More information about the compiler-dev
mailing list