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 Configuration menu Browse the repository at this point in the history
Configuration menu Browse the repository at this point in the history