ns.process_name
, but with error handling.
# Like `ns.process_name`, but with error handling.
private fun process_name(qname: String, parts: Array[String],
is_attribute: Bool) do
if qname.has(qname_re) then
if ns.process_name(qname, parts, is_attribute) == null then
fire_error("The namespace IRI of `{qname}` was not found in " +
"this scope. Passing the original name as the local " +
"name.", null)
parts = ["", qname, qname]
end
else
fire_error("The name `{qname}` contains more than one colon. " +
"Passing the original name as the local name.", null)
parts = ["", qname, qname]
end
end
lib/saxophonit/reader_model.nit:216,2--231,4