-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unconvert: don't panic on source that uses cgo
Package loader parses the cgo-processed source, so offsets and column numbers don't match the original source. This commit changes the internal code to track the exploded token.Position values instead of raw integer offsets, so that unconvert can at least report line numbers of unnecessary conversions in cgo-using source files. Updates #3.
- Loading branch information
Showing
1 changed file
with
32 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters