Commit 09b78d2
[analyzer] Fix documentation for GeneralizingElementVisitor2.
The tree describing the type structure assumed by the visitor was out
of date:
- It included a reference to `PromotableElement`, which no longer
exists.
- It was missing references to `EnumElement`, `ExtensionElement`,
`ExtensionTypeElement`, `GenericFunctionTypeElement`,
`LocalVariableElement`, `MixinElement`, `PropertyAccessorElement`,
and `TopLevelFunctionElement`.
- It incorrectly listed `FormalParameterElement` under
`VariableElement`. In fact, `visitFormalParameterElement` redirects
to `visitElement`.
This is a step towards enabling the `comment_references` lint in the
analyzer codebase.
Change-Id: I6a6a69646cefded105739f207df1554d4beb717d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/450741
Auto-Submit: Paul Berry <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent 026362d commit 09b78d2
1 file changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | | - | |
54 | | - | |
55 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
57 | 66 | | |
| 67 | + | |
58 | 68 | | |
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
0 commit comments