class Crytic::Mutation::RequireResolver

Defined in:

crytic/mutation/require_resolver.cr

Instance Method Summary

Instance Method Detail

def find_in_path_relative_to_dir(filename, relative_to) : Array(String) | Nil #

All of the below code is stolen from crystal itself https://github.com/crystal-lang/crystal/blob/master/src/compiler/crystal/crystal_path.cr Because we are caring about relative requires "./foo/bar" exclusively, a lot of code was removed from this method.


[View source]