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 TypeMethodDescriptionbooleanaccept(TreeVisitor visitor) Visit this AST with a given visitor.static FunctionDefinitionconvert(Context context, int pos, FunctionDecl functionDecl, boolean builtin, Statement body) getBody()getKind()booleanstatic FunctionDefinitionmake(int pos, FunctionDecl functionDecl, boolean builtin, BlockStatement body) voidsetBody(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:
getKindin classTopLevelElement- See Also:
-
accept
Description copied from class:NodeVisit this AST with a given visitor. -
toString
-