File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/platform/mixin/expression Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -326,9 +326,9 @@ class MEExpressionAnnotator : Annotator {
326
326
}
327
327
328
328
private fun AnnotationBuilder.withDefinitionFix (name : MEName ) =
329
- withFix(AddDefinitionInspection (name))
329
+ withFix(AddDefinitionFix (name))
330
330
331
- private class AddDefinitionInspection (name : MEName ) : LocalQuickFixAndIntentionActionOnPsiElement(name) {
331
+ private class AddDefinitionFix (name : MEName ) : LocalQuickFixAndIntentionActionOnPsiElement(name) {
332
332
private val id = name.text
333
333
334
334
override fun getFamilyName (): String = " Add @Definition"
@@ -355,9 +355,9 @@ class MEExpressionAnnotator : Annotator {
355
355
project,
356
356
startElement,
357
357
id,
358
- " dummy"
358
+ " dummy = \"\" "
359
359
) ? : return
360
- val dummy = annotation.findAttribute( " dummy" ) as ? PsiElement ? : return
360
+ val dummy = annotation.parameterList.attributes.firstOrNull { it.name == " dummy" } ? : return
361
361
val hostEditor = InjectedLanguageEditorUtil .getTopLevelEditor(editor)
362
362
hostEditor.caretModel.moveToOffset(dummy.textOffset)
363
363
PsiDocumentManager .getInstance(project).doPostponedOperationsAndUnblockDocument(hostEditor.document)
You can’t perform that action at this time.
0 commit comments