- Notifications
You must be signed in to change notification settings - Fork 10.6k
[Diagnostics] Display correct debug note for compound references typo suggestions #6715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
52847c9 3342575 967381c f7a2578 91bfa0b File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -2083,7 +2083,8 @@ class TypeChecker final : public LazyResolver { | |
| unsigned maxResults = 4); | ||
| | ||
| void noteTypoCorrection(DeclName name, DeclNameLoc nameLoc, | ||
| const LookupResult::Result &suggestion); | ||
| const LookupResult::Result &suggestion, | ||
| FunctionRefKind refKind = FunctionRefKind::Unapplied); | ||
| Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm still not 100% sure this is the right type for this. For names that aren't function references that go through typo correction this is kind of nonsensical. Contributor Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any other type that would work in this case? | ||
| | ||
| /// Check if the given decl has a @_semantics attribute that gives it | ||
| /// special case type-checking behavior. | ||
| | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you must add the quotes back or it'll fall any existing typo correction tests that rely on it.