struct Callee

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

Defined in:

models/endpoint.cr

Constant Summary

MAX_PER_ENDPOINT = 10

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : String, path : String | Nil = nil, line : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : Callee) : Bool #

[View source]
def line : Int32? #

[View source]
def line=(line : Int32 | Nil) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def path : String? #

[View source]
def path=(path : Nil | String) #

[View source]