Search documentation of Metastatic

# mix metastatic.inspect (Metastatic v0.13.2)

View Source

Inspect the MetaAST structure of source code files.

## Usage

    mix metastatic.inspect FILE [OPTIONS]

## Arguments

- `FILE` - Source file to inspect

## Options

- `--format FORMAT` - Output format (tree, json, plain) [default: tree]
- `--layer LAYER` - Filter by layer (core, extended, native, all) [default: all]
- `--variables` - Show only variables
- `--language LANG` - Source language (optional, auto-detected from extension)

## Examples

Inspect a Python file (tree format):

    mix metastatic.inspect hello.py

Show MetaAST in JSON format:

    mix metastatic.inspect hello.py --format json

Filter to show only core layer nodes:

    mix metastatic.inspect hello.py --layer core

Extract only variables:

    mix metastatic.inspect hello.py --variables

## Output Formats

- tree (default) - Human-readable tree structure with indentation
- json - Machine-readable JSON for programmatic processing
- plain - Simple text representation

## Layer Filtering

- core - Universal constructs (literals, variables, operators, etc.)
- extended - Common patterns (loops, lambdas, collections)
- native - Language-specific constructs
- all - Show everything (default)