예제 #1
0
 public static PsiElement getNameIdentifier(X816LabelDef element) {
   ASTNode keyNode = element.getNode().findChildByType(X816Types.LABEL);
   if (keyNode != null) {
     return keyNode.getPsi();
   } else {
     return null;
   }
 }
예제 #2
0
 public static String getLabelName(X816LabelDef element) {
   String symbolName = element.getText();
   return symbolName.substring(0, symbolName.length() - 1);
 }