Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
2b15589d
Commit
2b15589d
authored
6 years ago
by
Tagir Valeev
Browse files
Options
Download
Email Patches
Plain Diff
JavaSimplePropertyIndex: checkQulifiers -> checkQualifiers
parent
11d5f86a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/java-indexing-impl/src/com/intellij/psi/impl/JavaSimplePropertyIndex.kt
+3
-4
...impl/src/com/intellij/psi/impl/JavaSimplePropertyIndex.kt
with
3 additions
and
4 deletions
+3
-4
java/java-indexing-impl/src/com/intellij/psi/impl/JavaSimplePropertyIndex.kt
+
3
-
4
View file @
2b15589d
...
...
@@ -10,7 +10,6 @@ import com.intellij.psi.JavaPsiFacade
import
com.intellij.psi.JavaTokenType
import
com.intellij.psi.PsiField
import
com.intellij.psi.impl.cache.RecordUtil
import
com.intellij.psi.impl.java.stubs.JavaStubElementTypes
import
com.intellij.psi.impl.source.JavaLightStubBuilder
import
com.intellij.psi.impl.source.JavaLightTreeUtil
import
com.intellij.psi.impl.source.PsiMethodImpl
...
...
@@ -164,16 +163,16 @@ class JavaSimplePropertyIndex : FileBasedIndexExtension<Int, PropertyIndexValue>
.
singleOrNull
{
ElementType
.
JAVA_STATEMENT_BIT_SET
.
contains
(
it
.
tokenType
)
}
?.
takeIf
{
it
.
tokenType
==
JavaElementType
.
RETURN_STATEMENT
}
?.
let
{
LightTreeUtil
.
firstChildOfType
(
tree
,
it
,
allowedExpressions
)
}
?.
takeIf
(
this
::
checkQulifiers
)
?.
takeIf
(
this
::
checkQu
a
lifiers
)
?.
let
{
LightTreeUtil
.
toFilteredString
(
tree
,
it
,
null
)
}
}
private
fun
checkQulifiers
(
expression
:
LighterASTNode
):
Boolean
{
private
fun
checkQu
a
lifiers
(
expression
:
LighterASTNode
):
Boolean
{
if
(!
allowedExpressions
.
contains
(
expression
.
tokenType
))
{
return
false
}
val
qualifier
=
JavaLightTreeUtil
.
findExpressionChild
(
tree
,
expression
)
return
qualifier
==
null
||
checkQulifiers
(
qualifier
)
return
qualifier
==
null
||
checkQu
a
lifiers
(
qualifier
)
}
}.
visitNode
(
tree
.
root
)
result
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help