mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
implementing_parser_and_psi.md: note "Non-platform TokenSet declared in ParserDefinition" inspection
This commit is contained in:
parent
f4504bda66
commit
c1977dc2c3
@ -22,7 +22,10 @@ The top-level node of the PSI tree for a file needs to implement the [`PsiFile`]
|
||||
**Example**:
|
||||
[`ParserDefinition`](%gh-ic%/plugins/properties/properties-psi-impl/src/com/intellij/lang/properties/parsing/PropertiesParserDefinition.java) for [Properties language plugin](%gh-ic%/plugins/properties)
|
||||
|
||||
> To avoid unnecessary classloading when initializing the `ParserDefinition` extension point implementation, all `TokenSet` return values should use constants from dedicated `$Language$TokenSets` class.
|
||||
> To avoid unnecessary classloading when initializing the `ParserDefinition` extension point implementation, all `TokenSet` return values should use constants from a dedicated `$Language$TokenSets` class.
|
||||
>
|
||||
> See also inspection <control>Plugin DevKit | Code | Non-platform TokenSet declared in ParserDefinition</control> (2023.3).
|
||||
>
|
||||
{style="note"}
|
||||
|
||||
The PSI's lifecycle is described in more detail in [Fundamentals](fundamentals.md).
|
||||
|
Loading…
x
Reference in New Issue
Block a user