-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
tool implementations
to handle gracefully a def with missing lo…
…cation (#15273) Without this change, `crystal tool implementations` would crash when a target def has no location. The example uses an enum type's `.new` method which is defined by the compiler without a location. This patch fixes the nil error. The result may still not be terribly useful, but it's better than crashing the program.
- Loading branch information
1 parent
9b377c3
commit 9183bb0
Showing
2 changed files
with
18 additions
and
2 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
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