Skip to main content

Crate mir_analyzer

Crate mir_analyzer 

Source

Re-exports§

pub use file_analyzer::FileAnalysis;
pub use file_analyzer::FileAnalyzer;
pub use parser::type_from_hint::type_from_hint;
pub use parser::DocblockParser;
pub use parser::ParsedDocblock;
pub use php_version::ParsePhpVersionError;
pub use php_version::PhpVersion;
pub use project::AnalysisResult;
pub use project::ProjectAnalyzer;
pub use session::AnalysisSession;
pub use stubs::is_builtin_function;
pub use stubs::stub_files;
pub use stubs::StubVfs;
pub use symbol::DocumentSymbol;
pub use symbol::DocumentSymbolKind;
pub use symbol::ResolvedSymbol;
pub use symbol::SymbolKind;
pub use type_env::ScopeId;
pub use type_env::TypeEnv;
pub use composer::Psr4Map;

Modules§

cache
call
class
collector
composer
context
db
dead_code
diagnostics
expr
file_analyzer
Per-file analysis entry point for incremental analysis.
generic
narrowing
parser
pass2
php_version
Target PHP language version.
project
session
Session-based analysis API for incremental, per-file analysis.
stmt
stubs
symbol
Per-expression resolved symbol data, retained from Pass 2.
taint
test_utils
Test utilities for fixture-based testing.
type_env

Structs§

Issue
Location
Source location: file path and a Unicode code-point span.

Enums§

IssueKind
Severity

Functions§

location_from_span
Convert a parser php_ast::Span (byte-offset range) into a mir_codebase::storage::Location (file path + 1-based line range + 0-based codepoint columns) using source and the parser’s source_map.