mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
psi_references.md: expand "Contributed References"
This commit is contained in:
parent
82c6fcb57c
commit
b0eb2ac9f5
@ -57,7 +57,10 @@ References are also often contributed to non-code files, such as XML or JSON.
|
||||
Contributing references is one of the most common ways to extend an existing language.
|
||||
For example, your plugin can contribute references to Java code, even though the Java PSI is part of the platform and not defined in your plugin.
|
||||
|
||||
To contribute references, see the [reference contributor tutorial](reference_contributor.md).
|
||||
Implement [`PsiReferenceContributor`](upsource:///platform/core-api/src/com/intellij/psi/PsiReferenceContributor.java) registered in extension point `com.intellij.psi.referenceContributor`.
|
||||
The places to contribute references to are then specified using [Element Patterns](element_patterns.md) in calls to `PsiReferenceRegistrar.registerReferenceProvider()`.
|
||||
|
||||
See also [Reference Contributor tutorial](reference_contributor.md).
|
||||
|
||||
## References with Optional or Multiple Resolve Results
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user