Skip to content

AST builder: improve diagnostics and logging for silent parse fallbacks #4

Description

@YasiruRF

Problem

Several visitor methods return None or fallback values silently, making parser/debugging issues hard to trace.

Proposed change

  • Add structured debug/warn logging for fallback paths in AST builder.
  • Include source location in diagnostics.
  • Keep normal successful path noise-free unless verbose/debug enabled.

Acceptance criteria

  • Fallback conditions produce actionable logs in verbose mode.
  • Logs include file/line/column where available.
  • Existing behavior remains backward-compatible when logging is disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions