Beispiel #1
0
 @Override
 public PsiElement setName(@NotNull String name) throws IncorrectOperationException {
   GLSLIdentifier identifier = getNameIdentifier();
   if (identifier != null) {
     return identifier.setName(name);
   } else {
     throw new IncorrectOperationException("Declarator with no name!");
   }
 }
Beispiel #2
0
 @NotNull
 public String getName() {
   GLSLIdentifier identifier = getNameIdentifier();
   if (identifier != null) {
     return identifier.getName();
   } else {
     return "(anonymous)";
   }
 }