Inspectopedia
 
2024.3

Non-platform TokenSet declared in ParserDefinition

Warning
Performance
New
Last modified: 03 December 2024

Reports TokenSet field declarations referencing non-platform element types in ParserDefinition classes.

All languages ParserDefinition are created on the application startup. Declaring a TokenSet referencing non-platform language element types may cause creating and registering all the language element types in the holder class of the referenced type, even if a project doesn't contain any files in this language.

Example:

New in 2023.2