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 FunctionDeclarationconvert(@NonNull Context context, int pos, @NonNull Modifiers modifiers, @NonNull String name, @NonNull List<Variable> parameters, @NonNull Type returnType) int@NonNull Node.SymbolKindgetKind()@NonNull String@Nullable FunctionDeclaration@NonNull Type@NonNull TypegetType()booleanbooleanboolean@Nullable TyperesolveParameterTypes(@NonNull List<Expression> arguments, @NonNull List<Type> outParameterTypes) voidsetDefinition(FunctionDefinition definition) voidsetNextOverload(FunctionDeclaration overload) Sets the previously defined function symbol with the same function name.@NonNull StringtoString()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
-