Get the single argument of self as an identifier.

Raise error and return null on any inconsistency.

Property definitions

nitc :: annotation $ AAnnotation :: arg_as_id
	# Get the single argument of `self` as an identifier.
	# Raise error and return null on any inconsistency.
	fun arg_as_id(modelbuilder: ModelBuilder): nullable String
	do
		var args = n_args
		if args.length == 1 then
			var arg = args.first.as_id
			if arg != null then return arg
		end

		modelbuilder.error(self, "Syntax Error: `{name}` expects a single identifier as argument.")
		return null
	end
src/annotation.nit:68,2--80,4