Called by the underling implementation of [] to provide a default value when a key has no value

By default the behavior is to abort.

Note: the value is returned as is, implementations may want to store the value in the map before returning it @toimplement

Property definitions

core $ MapRead :: provide_default_value
	# Called by the underling implementation of `[]` to provide a default value when a `key` has no value
	# By default the behavior is to abort.
	#
	# Note: the value is returned *as is*, implementations may want to store the value in the map before returning it
	# @toimplement
	protected fun provide_default_value(key: nullable Object): V do abort
lib/core/collection/abstract_collection.nit:633,2--638,70

more_collections $ MultiHashMap :: provide_default_value
	redef fun provide_default_value(key) do
		var res = new Array[V]
		self[key] = res
		return res
	end
lib/more_collections/more_collections.nit:63,2--67,4

more_collections $ DefaultMap :: provide_default_value
	redef fun provide_default_value(key) do return default
lib/more_collections/more_collections.nit:348,2--55

performance_analysis $ PerfMap :: provide_default_value
	redef fun provide_default_value(key)
	do
		if not key isa String then return super

		var ts = new PerfEntry(key)
		self[key] = ts
		return ts
	end
lib/performance_analysis/performance_analysis.nit:54,2--61,4

gamnit $ AttributeMap :: provide_default_value
	redef fun provide_default_value(key) do
		return new InactiveAttribute(program.gl_program.as(not null), "", -1, 0)
	end
lib/gamnit/programs.nit:530,2--532,4

gamnit $ UniformMap :: provide_default_value
	redef fun provide_default_value(key) do
		return new InactiveUniform(program.gl_program.as(not null), "", -1, 0)
	end
lib/gamnit/programs.nit:549,2--551,4