Commit bebe707
Don't consider class name for similarity in naming errors
Summary:
When we require a fully qualified label name `FooClass#bar_label`, we should only consider the `#bar_label` text in the similarity calculation.
Previously, we'd suggest `FooClass#unrelated` as a match for `foo`, rather than `FooClass#foo`.
Reviewed By: vsiles
Differential Revision: D39329902
fbshipit-source-id: 15faf0d4f9c928e2b6fa7db40ab87f41847ecb8e1 parent 3a3a5a5 commit bebe707
File tree
3 files changed
+27
-7
lines changed- hphp/hack
- src/typing
- test/typecheck/enum_class_label
3 files changed
+27
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2065 | 2065 | | |
2066 | 2066 | | |
2067 | 2067 | | |
2068 | | - | |
2069 | | - | |
2070 | | - | |
2071 | | - | |
2072 | | - | |
2073 | | - | |
2074 | 2068 | | |
2075 | | - | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
2076 | 2080 | | |
2077 | 2081 | | |
2078 | 2082 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments