Class FunctionPrototype


public final class FunctionPrototype extends TopLevelElement
A function prototype (a function declaration as a top-level element)
  • Constructor Details

    • FunctionPrototype

      public FunctionPrototype(int position, FunctionDecl functionDecl, boolean builtin)
  • Method Details

    • getFunctionDecl

      public FunctionDecl getFunctionDecl()
    • isBuiltin

      public boolean isBuiltin()
    • getKind

      public Node.ElementKind getKind()
      Specified by:
      getKind in class TopLevelElement
      See Also:
    • accept

      public boolean accept(@Nonnull TreeVisitor visitor)
      Description copied from class: Node
      Visit this AST with a given visitor.
      Specified by:
      accept in class Node
      Returns:
      true to stop recursion and propagate true up the stack, false to continue
    • toString

      @Nonnull public String toString()
      Specified by:
      toString in class Node
      Returns:
      a string representation of this AST node