13 auto insertName = [
this, &name, &type]() {
14 if (!name.startsWith(u'$')) {
15 if (!m_names.contains(type.scope, name))
16 m_names.insert(type.scope, name);
20 const auto it = m_types.find(name);
21 if (it == m_types.end()) {
22 m_types.insert(name, type);
27 if (it->m_precedence < type.m_precedence)
30 m_names.remove(it->scope, name);
void setType(const QString &name, const ContextualType &type)