File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/org/tabooproject/development/inspection Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ class DatabaseWorkspaceInspection: AbstractKotlinInspection() {
14
14
override fun buildVisitor (holder : ProblemsHolder , isOnTheFly : Boolean ): KtVisitorVoid {
15
15
return object : KtVisitorVoid () {
16
16
override fun visitCallExpression (expression : KtCallExpression ) {
17
- super .visitCallExpression(expression)
18
17
val calleeExpression = expression.calleeExpression?.text
19
18
if (calleeExpression == " workspace" ) {
19
+
20
20
val qualifiedExpression = expression.parent as ? KtDotQualifiedExpression
21
21
val receiverExpression = qualifiedExpression?.receiverExpression
22
22
val context = receiverExpression?.analyze(BodyResolveMode .PARTIAL )
@@ -37,7 +37,7 @@ class DatabaseWorkspaceInspection: AbstractKotlinInspection() {
37
37
if (! hasRunCall) {
38
38
holder.registerProblem(
39
39
expression,
40
- " Calling 'workspace' without any method " ,
40
+ " Not use any functions after 'workspace' " ,
41
41
ProblemHighlightType .WARNING ,
42
42
AddRunQuickFix ()
43
43
)
You can’t perform that action at this time.
0 commit comments