File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
src/main/kotlin/platform/mixin/expression Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ import com.intellij.openapi.command.CommandProcessor
89
89
import com.intellij.openapi.command.WriteCommandAction
90
90
import com.intellij.openapi.editor.Editor
91
91
import com.intellij.openapi.editor.FoldRegion
92
- import com.intellij.openapi.project.DumbService
93
92
import com.intellij.openapi.project.Project
94
93
import com.intellij.patterns.PlatformPatterns
95
94
import com.intellij.patterns.StandardPatterns
@@ -1209,7 +1208,7 @@ object MEExpressionCompletionUtil {
1209
1208
id : String ,
1210
1209
definitionValue : String
1211
1210
): PsiAnnotation ? {
1212
- if (debugCompletionUnitTest) System .err.println (" Here 9, $id , ${ DumbService .getInstance(project).isDumb} " )
1211
+ if (debugCompletionUnitTest) System .err.println (" Here 9, $id " )
1213
1212
val injectionHost = contextElement.findMultiInjectionHost() ? : return null
1214
1213
if (debugCompletionUnitTest) System .err.println (" Here 10" )
1215
1214
val expressionAnnotation = injectionHost.parentOfType<PsiAnnotation >() ? : return null
Original file line number Diff line number Diff line change @@ -80,28 +80,21 @@ class MEExpressionInjector : MultiHostInjector {
80
80
}
81
81
82
82
override fun getLanguagesToInject (registrar : MultiHostRegistrar , context : PsiElement ) {
83
- if (MEExpressionCompletionUtil .debugCompletionUnitTest) System .err.println (" Injector 1" )
84
83
val project = context.project
85
84
val (anchor, _) = JavaConcatenationToInjectorAdapter (project).computeAnchorAndOperands(context)
86
85
87
- if (MEExpressionCompletionUtil .debugCompletionUnitTest) System .err.println (" Injector 2 ${anchor.text} " )
88
86
if (! shouldInjectIn(anchor)) {
89
87
return
90
88
}
91
- if (MEExpressionCompletionUtil .debugCompletionUnitTest) System .err.println (" Injector 3" )
92
- if (MEExpressionCompletionUtil .debugCompletionUnitTest) Thread .dumpStack()
93
89
94
90
val modifierList = anchor.findContainingModifierList() ? : return
95
- if (MEExpressionCompletionUtil .debugCompletionUnitTest) System .err.println (" Injector 4" )
96
91
97
92
val modCount = PsiModificationTracker .getInstance(project).modificationCount
98
93
val primaryElement = modifierList.getUserData(ME_EXPRESSION_INJECTION )
99
- if (MEExpressionCompletionUtil .debugCompletionUnitTest) System .err.println (" Injector 5, $modCount " )
100
94
if (primaryElement != null && primaryElement.modCount == modCount) {
101
95
METHOD_ADD_TO_RESULTS .invoke(registrar, primaryElement.injectionResult)
102
96
return
103
97
}
104
- if (MEExpressionCompletionUtil .debugCompletionUnitTest) System .err.println (" Injector 6" )
105
98
106
99
// A Frankenstein injection is an injection where we don't know the entire contents, and therefore errors should
107
100
// not be reported.
You can’t perform that action at this time.
0 commit comments