Skip to content

Commit

Permalink
idea: fix pork symbol declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
azenla committed Sep 12, 2023
1 parent f64a54f commit 4053c58
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4053c58

Please sign in to comment.