mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[wechat] provide local view symbol
GitOrigin-RevId: b83c8912a4c601eb1be2194c4772a55f804343e8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
07c3562835
commit
529446366b
@@ -19,6 +19,7 @@ class ReferencingWebSymbol private constructor(
|
||||
override val origin: WebSymbolOrigin,
|
||||
vararg references: WebSymbolQualifiedKind,
|
||||
override val priority: WebSymbol.Priority?,
|
||||
location: List<WebSymbolQualifiedName> = emptyList(),
|
||||
) : WebSymbol {
|
||||
|
||||
companion object {
|
||||
@@ -29,9 +30,13 @@ class ReferencingWebSymbol private constructor(
|
||||
name: String,
|
||||
origin: WebSymbolOrigin,
|
||||
vararg qualifiedKinds: WebSymbolQualifiedKind,
|
||||
priority: WebSymbol.Priority? = null
|
||||
priority: WebSymbol.Priority? = null,
|
||||
location: List<WebSymbolQualifiedName> = emptyList(),
|
||||
): ReferencingWebSymbol =
|
||||
ReferencingWebSymbol(qualifiedKind.namespace, qualifiedKind.kind, name, origin, *qualifiedKinds, priority = priority)
|
||||
ReferencingWebSymbol(
|
||||
qualifiedKind.namespace, qualifiedKind.kind, name,
|
||||
origin, *qualifiedKinds, priority = priority, location = location
|
||||
)
|
||||
}
|
||||
|
||||
override val pattern: WebSymbolsPattern =
|
||||
@@ -40,7 +45,7 @@ class ReferencingWebSymbol private constructor(
|
||||
priority = priority,
|
||||
symbolsResolver = WebSymbolsPatternReferenceResolver(
|
||||
*references.map {
|
||||
WebSymbolsPatternReferenceResolver.Reference(qualifiedKind = it)
|
||||
WebSymbolsPatternReferenceResolver.Reference(qualifiedKind = it, location = location)
|
||||
}.toTypedArray()
|
||||
)), false,
|
||||
WebSymbolsPatternFactory.createPatternSequence(
|
||||
|
||||
Reference in New Issue
Block a user