Skip to main content

Module method_call

Module method_call 

Source
Expand description

Method call representation and resolution

This module provides:

  • MethodCall - Structured representation of method calls with receiver information
  • MethodCallResolver - Per-file storage for method calls and variable types

§Architecture

Parser
  ├─ find_variable_types() ──┐
  └─ find_method_calls() ────┼─→ MethodCallResolver (per file)
                             │      - variable_types: HashMap<String, String>
                             │      - method_calls: Vec<MethodCall>
                             │
                             ↓
                      LanguageBehavior::resolve_method_call()

§Separation of Concerns

  • MethodCallResolver - owns DATA (variable types, method calls)
  • LanguageBehavior - owns LOGIC (language-specific resolution)
  • Indexer - orchestrates WHEN to call what

Structs§

MethodCall
Represents a method call with rich receiver information
MethodCallResolver
Owns method call resolution data for a single file