idea: fix pork symbol declaration

This commit is contained in:
Alex Zenla 2023-09-12 00:50:06 -04:00
parent f64a54fa06
commit 4053c5825a
Signed by: alex
GPG Key ID: C0780728420EBFE5

View File

@ -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 {