Repository navigation
Commit 0a4e8e1
Fix three defects found reviewing the sample index exporter
Resolve option bindings whose path carries a cast. x:Bind spells a cast as a
parenthesised type ahead of the path, as in (x:Int32)Columns. Reading the cast as
part of the path made the option lookup miss while the whole-word scan still
matched, so a binding with a perfectly readable default was treated as having
none and its attribute was removed. UniformGrid lost its spans and first column,
which is what that sample exists to demonstrate. An attached property path such
as (Grid.Row) is a path rather than a cast and is left alone.
Stop reading commented-out markup as live. A comment ends at --> and a CDATA
section at ]]>, not at the first >. Three scans stopped at the first one and
resumed inside the comment, so an x:Name in a comment counted as a declared
element, an option binding in a comment was rewritten in the published text, and
a prefix used only in a comment was published as a required import. An
apostrophe in comment prose also opened a quote that never closed, abandoning
prefix stripping for the rest of the fragment. Three samples carry comments of
the shape that triggers this today, and are unaffected only because none of them
happens to contain a name or a binding.
Report a duplicate entry id instead of renaming one. The bare slug went to
whichever document was read first and the loser was qualified with its component
name, so adding a component that sorted earlier would silently change the id of
an entry that had already shipped. An id is published as stable, so a collision
is now an error a contributor settles by renaming, and every existing id stays
where it is.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3de2a03 commit 0a4e8e1
5 files changed
Lines changed: 277 additions & 33 deletions
File tree
- catalog
- tools
- SampleIndexExporter.Tests
- SampleIndexExporter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3096 | 3096 | | |
3097 | 3097 | | |
3098 | 3098 | | |
3099 | | - | |
| 3099 | + | |
3100 | 3100 | | |
3101 | 3101 | | |
3102 | 3102 | | |
3103 | 3103 | | |
3104 | 3104 | | |
3105 | 3105 | | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
3106 | 3113 | | |
3107 | | - | |
3108 | | - | |
3109 | | - | |
3110 | | - | |
3111 | | - | |
3112 | | - | |
| 3114 | + | |
3113 | 3115 | | |
3114 | 3116 | | |
3115 | 3117 | | |
| |||
3239 | 3241 | | |
3240 | 3242 | | |
3241 | 3243 | | |
3242 | | - | |
| 3244 | + | |
3243 | 3245 | | |
3244 | 3246 | | |
3245 | 3247 | | |
| |||
3249 | 3251 | | |
3250 | 3252 | | |
3251 | 3253 | | |
| 3254 | + | |
| 3255 | + | |
3252 | 3256 | | |
3253 | 3257 | | |
3254 | 3258 | | |
| |||
3257 | 3261 | | |
3258 | 3262 | | |
3259 | 3263 | | |
| 3264 | + | |
3260 | 3265 | | |
3261 | 3266 | | |
3262 | | - | |
3263 | | - | |
3264 | | - | |
3265 | | - | |
3266 | | - | |
3267 | 3267 | | |
3268 | 3268 | | |
3269 | 3269 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
44 | 68 | | |
45 | 69 | | |
46 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
236 | 339 | | |
237 | 340 | | |
238 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
370 | 376 | | |
371 | 377 | | |
372 | 378 | | |
373 | | - | |
374 | 379 | | |
375 | 380 | | |
376 | 381 | | |
| |||
382 | 387 | | |
383 | 388 | | |
384 | 389 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 390 | | |
393 | 391 | | |
394 | 392 | | |
395 | | - | |
| 393 | + | |
396 | 394 | | |
397 | 395 | | |
398 | 396 | | |
| |||
0 commit comments