Commit 8b37db6
committed
analyzer: Do not report parameter as unused if used via super-parameter
Fixes #55720
The fix is simple; the existing tests are a little untidy so I tried
to make them minimal tests, and added a few test cases. In a follow up,
I'd like to clean up the test case names because some have '_parameter'
and some have '_optionalParameter', and then the named vs positional
thing, all coupled with alphabetical test cases, makes them hard to
grok.
Change-Id: I2fff336563ac6078597d6435392ceef708e8ad03
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/465240
Reviewed-by: Paul Berry <[email protected]>1 parent 49429c0 commit 8b37db6
File tree
2 files changed
+53
-21
lines changed- pkg/analyzer
- lib/src/error
- test/src/diagnostics
2 files changed
+53
-21
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| |||
Lines changed: 45 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1919 | 1919 | | |
1920 | 1920 | | |
1921 | 1921 | | |
1922 | | - | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
| 1922 | + | |
1926 | 1923 | | |
1927 | 1924 | | |
1928 | 1925 | | |
1929 | 1926 | | |
1930 | 1927 | | |
1931 | | - | |
1932 | | - | |
1933 | | - | |
1934 | | - | |
| 1928 | + | |
1935 | 1929 | | |
1936 | 1930 | | |
1937 | | - | |
1938 | | - | |
1939 | | - | |
| 1931 | + | |
1940 | 1932 | | |
1941 | 1933 | | |
1942 | 1934 | | |
| |||
2058 | 2050 | | |
2059 | 2051 | | |
2060 | 2052 | | |
2061 | | - | |
2062 | | - | |
2063 | | - | |
| 2053 | + | |
| 2054 | + | |
2064 | 2055 | | |
2065 | 2056 | | |
2066 | | - | |
2067 | | - | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2068 | 2074 | | |
| 2075 | + | |
| 2076 | + | |
2069 | 2077 | | |
2070 | 2078 | | |
2071 | 2079 | | |
| |||
2132 | 2140 | | |
2133 | 2141 | | |
2134 | 2142 | | |
2135 | | - | |
2136 | | - | |
2137 | | - | |
| 2143 | + | |
| 2144 | + | |
2138 | 2145 | | |
2139 | 2146 | | |
2140 | | - | |
2141 | | - | |
| 2147 | + | |
| 2148 | + | |
2142 | 2149 | | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
2143 | 2167 | | |
2144 | 2168 | | |
2145 | 2169 | | |
| |||
0 commit comments