Class FunctionEntry
This is a foreign class that wraps over a toplevel function of a package.
0 define doc: String
Return the docblock of this function, or an empty string. Docblocks are only saved when a function is parsed in manifest mode.
0 define generics: List[TypeEntry]
Return the generic types available to this function. Functions defined outside of manifest mode will always return [].
0 define is_varargs: Boolean
Returns true if the function takes varargs, false otherwise.
0 define line_number: Integer
Return the line number that this function was declared on.
0 define name: String
Return the name of the definition provided.
0 define parameters: List[ParameterEntry]
Return the parameters of this function. Functions processed outside of manifest mode will have empty names.
0 define result_type: TypeEntry
Return the type that this function returns when called.
0 define type: TypeEntry
Return the type of the definition provided.