Commit 7185e85
analyzer: mock SDK: correct declarations in html library
* A few included signatures need ClipboardEvent and KeyboardEvent, so
we add those.
* The Element class is not abstract.
* All of the parameters of the `Element.html` constructor, and the
`Element.createFragment` and `Element.setInnerHtml` functions are
nullable.
* `Element.onCut` is a stream of ClipboardEvents.
* Many of the fields that were declared on HtmlElement are actually
declared on Element; moving them to Element makes the mock SDK more
consistent and simpler.
* Setters do not have a specified return type.
* `onKeyUp` and `onKeyDown` return streams of KeyboardEvents.
* Simplify `AnchorElement.new`; we generally don't keep function
bodies in the mock SDK.
* `AnchorElement.href` is a getter/setter pair.
* There is no `AnchorElement._privateField`.
* `ButtonElement.autofocus` is a getter/setter pair.
* `EmbedElement.src` is a getter/setter pair.
* Neither EmbedElement nor ImageElement extend HtmlEment. They extend
HtmlElement.
* ImageElement.src is a getter/setter pair.
* InputElement.value is a getter/setter pair, and is nullable.
* InputElement.validationMessage is a getter.
* IFrameElement.src is a getter/setter pair.
* OptionElement constructors use `=` for parameter default values.
* ScriptElement src and type properties are getter/setter pairs.
* `TableSectionElement.addRow` needs a return value.
* TableSectionElement does not have `instanceRuntimeType` or
`internal_`.
* `AudioElement._`'s optional parameter has a nullable type.
* WindowBase is abstract.
* Window does not extend WindowBase, it implements it.
* NodeValidator and NodeTreeSanitizer are abstract.
* All of the parameters of the `DocumentFragment.html` constructor
are nullable.
Change-Id: I026db9b34a28c7a43bc4275838cc6c5e180f8bce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/451660
Reviewed-by: Paul Berry <[email protected]>
Commit-Queue: Samuel Rawlins <[email protected]>1 parent d4f0b33 commit 7185e85
1 file changed
+82
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
| 1100 | + | |
| 1101 | + | |
1100 | 1102 | | |
1101 | 1103 | | |
1102 | 1104 | | |
1103 | 1105 | | |
1104 | 1106 | | |
1105 | 1107 | | |
1106 | | - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1107 | 1111 | | |
1108 | 1112 | | |
1109 | 1113 | | |
1110 | | - | |
1111 | | - | |
1112 | | - | |
1113 | | - | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
1114 | 1120 | | |
1115 | 1121 | | |
1116 | | - | |
| 1122 | + | |
1117 | 1123 | | |
1118 | 1124 | | |
1119 | 1125 | | |
1120 | 1126 | | |
1121 | 1127 | | |
1122 | | - | |
1123 | | - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1124 | 1133 | | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1128 | 1139 | | |
1129 | | - | |
1130 | | - | |
| 1140 | + | |
1131 | 1141 | | |
1132 | 1142 | | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
| 1143 | + | |
| 1144 | + | |
1136 | 1145 | | |
1137 | 1146 | | |
| 1147 | + | |
| 1148 | + | |
1138 | 1149 | | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1150 | + | |
| 1151 | + | |
1142 | 1152 | | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
| 1153 | + | |
1151 | 1154 | | |
1152 | 1155 | | |
| 1156 | + | |
| 1157 | + | |
1153 | 1158 | | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
| 1159 | + | |
1160 | 1160 | | |
1161 | | - | |
1162 | | - | |
| 1161 | + | |
| 1162 | + | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
| 1177 | + | |
| 1178 | + | |
1178 | 1179 | | |
1179 | 1180 | | |
1180 | | - | |
1181 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
1182 | 1184 | | |
1183 | 1185 | | |
1184 | 1186 | | |
| |||
1190 | 1192 | | |
1191 | 1193 | | |
1192 | 1194 | | |
1193 | | - | |
1194 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
1195 | 1198 | | |
1196 | 1199 | | |
1197 | 1200 | | |
1198 | 1201 | | |
1199 | 1202 | | |
1200 | 1203 | | |
1201 | 1204 | | |
1202 | | - | |
1203 | | - | |
1204 | | - | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
1205 | 1208 | | |
1206 | 1209 | | |
1207 | 1210 | | |
1208 | 1211 | | |
1209 | 1212 | | |
1210 | 1213 | | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
1219 | 1218 | | |
1220 | 1219 | | |
1221 | 1220 | | |
1222 | | - | |
1223 | | - | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1224 | 1226 | | |
1225 | | - | |
1226 | | - | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
1227 | 1233 | | |
1228 | 1234 | | |
1229 | 1235 | | |
1230 | | - | |
1231 | | - | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1232 | 1241 | | |
1233 | 1242 | | |
1234 | 1243 | | |
1235 | 1244 | | |
1236 | 1245 | | |
1237 | | - | |
| 1246 | + | |
1238 | 1247 | | |
1239 | 1248 | | |
1240 | 1249 | | |
1241 | 1250 | | |
1242 | 1251 | | |
1243 | 1252 | | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | 1253 | | |
1251 | 1254 | | |
1252 | 1255 | | |
| |||
1257 | 1260 | | |
1258 | 1261 | | |
1259 | 1262 | | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
| 1263 | + | |
1266 | 1264 | | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
| 1265 | + | |
| 1266 | + | |
1270 | 1267 | | |
1271 | | - | |
| 1268 | + | |
1272 | 1269 | | |
1273 | 1270 | | |
1274 | | - | |
| 1271 | + | |
1275 | 1272 | | |
1276 | | - | |
| 1273 | + | |
1277 | 1274 | | |
1278 | | - | |
1279 | | - | |
| 1275 | + | |
| 1276 | + | |
1280 | 1277 | | |
1281 | 1278 | | |
1282 | | - | |
| 1279 | + | |
1283 | 1280 | | |
1284 | | - | |
| 1281 | + | |
1285 | 1282 | | |
1286 | 1283 | | |
1287 | | - | |
1288 | | - | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| |||
0 commit comments