Class TopLevelElement

java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.TopLevelElement
Direct Known Subclasses:
FunctionDefinition, FunctionPrototype, GlobalVariable, InterfaceBlock, StructDefinition

public abstract class TopLevelElement extends Node
Represents a top-level element (e.g. function or global variable) in a program.
  • Constructor Details

    • TopLevelElement

      protected TopLevelElement(int position)
  • Method Details

    • getKind

      public abstract Node.ElementKind getKind()
      See Also:
    • accept

      public final 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