Class FunctionEntry
This is a foreign class that wraps over a toplevel function of a package.
public 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.
public define generics: List[TypeEntry]
Return the generic types available to this function. Functions defined
outside of manifest mode will always return []
.
public define line_number: Integer
Return the line number that this function was declared on.
public define name: String
Return the name of the definition provided.
public define parameters: List[ParameterEntry]
Return the parameters of this function. Functions processed outside of manifest mode will have empty names.
public define result_type: TypeEntry
Return the type that this function returns when called.
public define type: TypeEntry
Return the type of the definition provided.