private static void visitDeclaration(
      @NotNull ProblemsHolder holder, @Nullable GoSignature signature, @NotNull String ownerType) {
    if (signature == null) return;
    GoParameters parameters = signature.getParameters();
    visitParameterList(holder, parameters, ownerType, "parameters");

    GoResult result = signature.getResult();
    parameters = result != null ? result.getParameters() : null;
    visitParameterList(holder, parameters, ownerType, "return parameters");
  }
Пример #2
0
 @Override
 public String getText() {
   GoSignature signature = myElement.getSignature();
   return "func " + (signature != null ? signature.getText() : "<null>");
 }