Get the current nit_version or "DUMMY_VERSION" if --set-dummy-tool is set.

Property definitions

nitc $ ToolContext :: version
	# Get the current `nit_version` or "DUMMY_VERSION" if `--set-dummy-tool` is set.
	fun version: String do
		if opt_set_dummy_tool.value then
			return "DUMMY_VERSION"
		end
		return nit_version
	end
src/toolcontext.nit:536,2--542,4