mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 18:27:49 +08:00
declarations_and_references.md: mention EP name
This commit is contained in:
parent
eb738cddc8
commit
6bf49b947c
@ -21,7 +21,7 @@ Declarations in PSI elements are implementations of
|
||||
To report a declaration in a PSI element, either:
|
||||
|
||||
- implement and register
|
||||
[`PsiSymbolDeclarationProvider`](%gh-ic%/platform/core-api/src/com/intellij/model/psi/PsiSymbolDeclarationProvider.java);
|
||||
[`PsiSymbolDeclarationProvider`](%gh-ic%/platform/core-api/src/com/intellij/model/psi/PsiSymbolDeclarationProvider.java) in `com.intellij.psi.declarationProvider` EP;
|
||||
- or implement `PsiSymbolDeclaration` directly in the `PsiElement`.
|
||||
|
||||
## References
|
||||
@ -49,7 +49,7 @@ because this is a reference from Java language point of view, and Java language
|
||||
|
||||
To provide Own references by the `PsiElement`, implement
|
||||
[`PsiElement.getOwnReferences()`](%gh-ic%/platform/core-api/src/com/intellij/psi/PsiElement.java) in the `PsiElement`.
|
||||
If the element contains a single reference, `Collections.singletonList()` can be used
|
||||
If the element contains a single reference, `Collections.singletonList()` can be used.
|
||||
|
||||
### External References
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user