package com.reason.lang.core.psi.impl;

import com.intellij.lang.ASTNode;
import com.reason.lang.core.ORUtil;
import com.reason.lang.core.psi.PsiSignatureItem;
import com.reason.lang.core.type.ORTypes;
import org.jetbrains.annotations.NotNull;

public class PsiSignatureItemImpl extends PsiToken<ORTypes> implements PsiSignatureItem {
    public PsiSignatureItemImpl(@NotNull ORTypes types, @NotNull ASTNode node) {
        super(types, node);
    }

    @Override
    public boolean isNamedItem() {
        return ORUtil.nextSiblingWithTokenType(getFirstChild(), m_types.COLON) != null;
    }

    @Override
    public String toString() {
        return "Signature item";
    }
}

@@ -67,16 +67,52 @@
 STNode;%0A
+import com.intellij.psi.PsiElement;%0A
 import c
@@ -537,22 +537,93 @@
         
-return
+PsiElement firstChild = getFirstChild();%0A        return firstChild != null &&
  ORUtil.
@@ -647,20 +647,17 @@
 kenType(
-getF
+f
 irstChil
@@ -657,18 +657,16 @@
 rstChild
-()
 , m_type

fix #114