Skip to content

Commit 69d4601

Browse files
authored
Merge pull request swiftlang#28387 from xedin/todo-for-new-diags
[Docs] Update TypeChecker.rst with a list of not-yet-ported diagnostics
2 parents a0e7edd + 88e38d1 commit 69d4601

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/TypeChecker.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,3 +971,34 @@ well-typed suggestions.
971971
meets and joins, so the solver continues until it runs out of
972972
supertypes to enumerate.
973973
974+
New Diagnostic Architecture
975+
---------------------------
976+
977+
We are currently working on porting type-check based diagnostics over
978+
to the new diagnostic framework, which is described in detail in this
979+
`blog post
980+
<https://swift.org/blog/new-diagnostic-arch-overview/>`_.
981+
982+
The things in the queue yet to be ported are:
983+
984+
- ``visitTupleExpr``: Diagnostics related to label/type mismatches
985+
associated with tuple conversions.
986+
987+
- Diagnostics related to member references: ``diagnoseMemberFailures``.
988+
Most of the associated diagnostics have been ported and fixes are
989+
located in ``ConstraintSystem::simplifyMemberConstraint``.
990+
991+
- Closure expression diagnostics: ``diagnoseClosureExpr``.
992+
993+
- Diagnostics related to ``if`` statement - "conditional" type mismatch
994+
and, in case of ternary operator, type mismatches between branches.
995+
996+
- Problems related to calls and operator applications e.g.
997+
998+
- ``@dynamicCallable`` related diagnostics
999+
- Missing explicit ``Self.`` and ``self.``
1000+
- Logic related to overload candidate ranking (``CalleeCandidateInfo``)
1001+
- ``diagnoseParameterErrors``
1002+
- ``diagnoseSimpleErrors``
1003+
1004+
- Diagnostics related to array/dictionary literals: ``visit{Array, Dictionary}Expr``.

0 commit comments

Comments
 (0)