Comparing v0.27.3...v0.27.4 · dave/dst (original) (raw)

Commits on Apr 14, 2026

  1. fix: prevent panic when parsing severely malformed Go source
    decorator.Parse panics with a nil pointer dereference when the input
    is so malformed that parser.ParseFile returns an AST file with no
    valid position information (Pos() == token.NoPos). This happens with
    inputs like "pkg main" or empty strings.
    Add a check for token.NoPos before attempting to decorate the file.
    Fixes #83
    @Yanhu007
    Configuration menu
    Browse the repository at this point in the history
  2. Configuration menu
    Browse the repository at this point in the history