Skip to main content

LSP.pmod/Analysis.pmod/Analysis.pike

Overview

Analysis.pike - Delegating analysis class for Pike LSP

This class forwards requests to specialized handlers in the Analysis module:

  • Diagnostics.pike: Uninitialized variable analysis

  • Completions.pike: Completion context analysis

  • Variables.pike: Find identifier occurrences

It also handles request consolidation (analyze with include=["..."])

Private handler instances (created on first use)

Static environment info (computed once)

Create a new Analysis instance

Get or create the diagnostics handler

Get or create the completions handler

Get or create the variables handler

Get static environment info

Analyze code for potentially uninitialized variable usage

Delegates to Diagnostics class in Analysis.pmod/

Get completion context at a specific position

Delegates to Completions class in Analysis.pmod/

PERF-003: Get completion context using pre-tokenized input

Delegates to Completions class in Analysis.pmod/

Find all identifier occurrences

Delegates to Variables class in Analysis.pmod/

Get CompilationCache from module-level singleton

Unified analyze handler

Symbols

SymbolTypeLine
Analysisclass10
createfunction19
get_diagnostics_handlerfunction25
get_completions_handlerfunction36
get_variables_handlerfunction47
get_static_env_infofunction58
handle_analyze_uninitializedfunction69
handle_get_completion_contextfunction79
handle_get_completion_context_cachedfunction89
handle_find_occurrencesfunction103
get_compilation_cachefunction113
handle_analyzefunction121
capture_compile_errorfunction243