struct

Heucristic::Index::Def

Inherits Struct < Value < Object

Constructors

forwarder(name : String, owner : Owner, path : String, name_span : Document::Span, target : Crystal::ASTNode) : Def
Source
new(name : String, owner : Owner, receiver : Receiver, path : String, name_span : Document::Span, arity : Arity, parameters : Array(Parameter), return_type : Restriction, free_vars : Array(String), yields : Bool, forwards_to : Crystal::ASTNode | Nil = nil, node : Crystal::Def | Nil = nil, with_yield : Bool = false, macro_body : Bool = false, abstract_def : Bool = false, visibility : Visibility = Visibility::Public, private_path : String | Nil = nil, exit_call : String | Nil = nil, reads : InstanceVarRead | Nil = nil)
Source
synthetic(name : String, owner : Owner, path : String, name_span : Document::Span, receiver : Receiver = Receiver::Instance, parameters : Array(Parameter) = Array(Parameter).new, return_type : Restriction = Unrestricted.new, arity : Arity = Arity.new(parameters.size, 0, false), visibility : Visibility = Visibility::Public, reads : InstanceVarRead | Nil = nil) : Def
Source

Instance methods

abstract_def
arity
clone
Source
copy_with(name _name = @name, owner _owner = @owner, receiver _receiver = @receiver, path _path = @path, name_span _name_span = @name_span, arity _arity = @arity, parameters _parameters = @parameters, return_type _return_type = @return_type, free_vars _free_vars = @free_vars, yields _yields = @yields, forwards_to _forwards_to = @forwards_to, node _node = @node, with_yield _with_yield = @with_yield, macro_body _macro_body = @macro_body, abstract_def _abstract_def = @abstract_def, visibility _visibility = @visibility, private_path _private_path = @private_path, exit_call _exit_call = @exit_call, reads _reads = @reads)
Source
exit_call
forwards_to
free_vars
identity
Source
macro_body
name
name_span
node
owner
parameters
path
private_path
qualified
Source
reads
receiver
return_type
signature
Source
unrestricted_identity
Source
visibility
visible_from?(path : String | Nil) : Bool
Source
with_yield
yields