From 4053c5825a19ba8c41f80839f16facb2db4a82ff Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Tue, 12 Sep 2023 00:50:06 -0400 Subject: [PATCH] idea: fix pork symbol declaration --- .../main/kotlin/gay/pizza/pork/idea/PorkSymbolDeclaration.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/support/pork-idea/src/main/kotlin/gay/pizza/pork/idea/PorkSymbolDeclaration.kt b/support/pork-idea/src/main/kotlin/gay/pizza/pork/idea/PorkSymbolDeclaration.kt index a5397f9..36205b8 100644 --- a/support/pork-idea/src/main/kotlin/gay/pizza/pork/idea/PorkSymbolDeclaration.kt +++ b/support/pork-idea/src/main/kotlin/gay/pizza/pork/idea/PorkSymbolDeclaration.kt @@ -16,8 +16,7 @@ class PorkSymbolDeclaration(val element: PsiElement) : PsiSymbolDeclaration { override fun getSymbol(): Symbol { val element = getSymbolElement() - val porkNode = element.getUserData(PorkNodeKey)!! - return PorkFunctionSymbol((porkNode as gay.pizza.pork.ast.Symbol).id) + return PorkFunctionSymbol(element.text.trim()) } private fun getSymbolElement(): PsiElement {