Package icyllis.arc3d.compiler.tree
Class FunctionDecl
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Symbol
icyllis.arc3d.compiler.tree.FunctionDecl
Represents a function declaration (function symbol). If the function is overloaded,
it will serve as a singly linked list.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionDecl
convert
(Context context, int pos, Modifiers modifiers, String name, List<Variable> parameters, Type returnType) int
getKind()
getType()
boolean
boolean
boolean
resolveParameterTypes
(List<Expression> arguments, List<Type> outParameterTypes) void
setDefinition
(FunctionDefinition definition) void
setNextOverload
(FunctionDecl overload) Sets the previously defined function symbol with the same function name.toString()
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
FunctionDecl
-
-
Method Details
-
convert
-
getKind
-
getType
-
getReturnType
-
getIntrinsicKind
public int getIntrinsicKind() -
isIntrinsic
public boolean isIntrinsic() -
getDefinition
-
setDefinition
-
getParameters
-
getMangledName
-
getNextOverload
-
setNextOverload
Sets the previously defined function symbol with the same function name. -
getModifiers
-
isBuiltin
public boolean isBuiltin() -
isEntryPoint
public boolean isEntryPoint() -
resolveParameterTypes
@Nullable public Type resolveParameterTypes(@Nonnull List<Expression> arguments, List<Type> outParameterTypes) -
toString
-