Package icyllis.arc3d.compiler.tree
Class FunctionDefinition
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.TopLevelElement
icyllis.arc3d.compiler.tree.FunctionDefinition
A function definition (a function declaration plus an associated block of code).
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.static FunctionDefinition
convert
(Context context, int pos, FunctionDecl functionDecl, boolean builtin, Statement body) getBody()
getKind()
boolean
static FunctionDefinition
make
(int pos, FunctionDecl functionDecl, boolean builtin, BlockStatement body) void
setBody
(BlockStatement body) toString()
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Method Details
-
convert
public static FunctionDefinition convert(@Nonnull Context context, int pos, FunctionDecl functionDecl, boolean builtin, Statement body) -
make
public static FunctionDefinition make(int pos, FunctionDecl functionDecl, boolean builtin, BlockStatement body) -
getFunctionDecl
-
isBuiltin
public boolean isBuiltin() -
getBody
-
setBody
-
getKind
- Specified by:
getKind
in classTopLevelElement
- See Also:
-
accept
Description copied from class:Node
Visit this AST with a given visitor. -
toString
-