Package icyllis.arc3d.compiler.tree
Class FunctionDeclaration
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Symbol
icyllis.arc3d.compiler.tree.FunctionDeclaration
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable FunctionDeclaration
convert
(@NonNull Context context, int pos, @NonNull Modifiers modifiers, @NonNull String name, @NonNull List<Variable> parameters, @NonNull Type returnType) int
@NonNull Node.SymbolKind
getKind()
@NonNull String
@Nullable FunctionDeclaration
@NonNull Type
@NonNull Type
getType()
boolean
boolean
boolean
@Nullable Type
resolveParameterTypes
(@NonNull List<Expression> arguments, @NonNull List<Type> outParameterTypes) void
setDefinition
(FunctionDefinition definition) void
setNextOverload
(FunctionDeclaration overload) Sets the previously defined function symbol with the same function name.@NonNull String
toString()
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Constructor Details
-
FunctionDeclaration
-
-
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
public @Nullable Type resolveParameterTypes(@NonNull List<Expression> arguments, @NonNull List<Type> outParameterTypes) -
toString
-