mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 12:50:55 +00:00
idea: fix pork symbol declaration
This commit is contained in:
parent
f64a54fa06
commit
4053c5825a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user