AtomicValue::Ptr ValueFactory::fromLexical(const QString &lexicalValue, const SchemaType::Ptr &type, const ReportContext::Ptr &context, const SourceLocationReflection *const sourceLocationReflection) { Q_ASSERT(context); Q_ASSERT(type); Q_ASSERT_X(type->category() == SchemaType::SimpleTypeAtomic, Q_FUNC_INFO, "We can only construct for atomic values."); return PerformValueConstruction(sourceLocationReflection, type)(AtomicString::fromValue(lexicalValue), type, context); }