struct Callee
- Callee
- Struct
- Value
- Object
Overview
A function/method invoked directly from an endpoint's handler body
(1-hop only). #name is the textual callee as it appears in source
(e.g. User.create, raw_sql_query). #path and #line are
best-effort location metadata: analyzers with definition resolution use
the callee's definition when reachable; the rest keep the call site.
The list is intentionally incomplete: dynamic dispatch (Rails
before_action, JS middleware, Python decorators) bypasses the body
walk by design. AI consumers should treat callees as a useful prior,
not a complete dependency graph.
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
models/endpoint.crConstant Summary
-
MAX_PER_ENDPOINT =
10
Constructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(name : String, path : String | Nil = nil, line : Int32 | Nil = nil)
Instance Method Summary
- #==(other : Callee) : Bool
- #line : Int32?
- #line=(line : Int32 | Nil)
- #name : String
- #name=(name : String)
- #path : String?
- #path=(path : Nil | String)