Return the sourcefile path

This method exists for the only purpose to be redefined by nitunit tests to avoid path diffs.

Property definitions

nitc $ CmdMainCompile :: test_path
	# Return the sourcefile path
	#
	# This method exists for the only purpose to be redefined by nitunit tests
	# to avoid path diffs.
	private fun test_path(file: nullable SourceFile): nullable String do
		if file == null then return null
		var base_path = mentity.as(MModule).mpackage.as(not null).location.file.as(not null).filename
		return file.filename.replace(base_path, "")
	end
src/doc/commands/commands_main.nit:110,2--118,4