All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.forthecrown.grenadier.annotations.tree.SuggestsTree Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package net.forthecrown.grenadier.annotations.tree;

import org.jetbrains.annotations.ApiStatus.Internal;

@Internal
public interface SuggestsTree extends Tree {

  record StringListSuggestions(int tokenStart, String[] suggestions)
      implements SuggestsTree
  {

    @Override
    public  R accept(TreeVisitor visitor, C context) {
      return visitor.visitStringSuggestions(this, context);
    }
  }

  record MemberSuggestions(int tokenStart, MemberChainTree ref)
      implements SuggestsTree
  {

    @Override
    public  R accept(TreeVisitor visitor, C context) {
      return visitor.visitMemberSuggestions(this, context);
    }
  }

  record VariableSuggestions(int tokenStart, String variable)
      implements SuggestsTree, VariableHolder
  {

    @Override
    public  R accept(TreeVisitor visitor, C context) {
      return visitor.visitVariableSuggests(this, context);
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy