Commit 7a0c5e1
feat: changed CompareStrategy to return CompareResult
* Ensure that the correct diff is returned.
* Use records.
* Move kind to beginning of text.
* Fix compilation error and test for custom diff.
* Update src/AngleSharp.Diffing/Core/CompareResult.cs
Co-authored-by: Egil Hansen <egil@assimilated.dk>
* Update src/AngleSharp.Diffing/Core/Comparison.cs
Co-authored-by: Egil Hansen <egil@assimilated.dk>
* Update src/AngleSharp.Diffing/Core/AttributeComparison.cs
Co-authored-by: Egil Hansen <egil@assimilated.dk>
* 1. Rename CompareResultDecision
2. Move method inside type.
* Rename method.
* Get rid of StylesOrder
* More records.
* refactor: move IsExternalInit to folder matching namespace
* add comment to explain use of ReferenceEquals
* Move types into two files
* simplify attrdiff object hierarchi
* remove diff type check
* clean up using statements
* refactor: IsSameOrSkip as property
* refactor: normalize tests
* feat: add CommentComparer tests
* nodes do not have different closing tags, elements do, so switch to using ElementDiff when comparing elements
* fix: override ComparisonSource.ToString for better output
* fix: use unspecified when no diff is returned
* override ToString in AttributeComparisonSource
* bump version number
---------
Co-authored-by: Egil Hansen <egil@assimilated.dk>1 parent e514267 commit 7a0c5e1
File tree
49 files changed
+688
-345
lines changed- src
- AngleSharp.Diffing.Tests
- Core
- Strategies
- AttributeStrategies
- CommentStrategies
- ElementStrategies
- TextNodeStrategies
- AngleSharp.Diffing
- Core
- Diffs
- Extensions
- Strategies
- AttributeStrategies
- CommentStrategies
- ElementStrategies
- TextNodeStrategies
- System.Runtime.CompilerServices
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+688
-345
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
Lines changed: 90 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
117 | 146 | | |
118 | 147 | | |
119 | 148 | | |
| |||
237 | 266 | | |
238 | 267 | | |
239 | 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 | + | |
240 | 293 | | |
241 | 294 | | |
242 | 295 | | |
| |||
268 | 321 | | |
269 | 322 | | |
270 | 323 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
276 | 329 | | |
277 | 330 | | |
278 | 331 | | |
| |||
288 | 341 | | |
289 | 342 | | |
290 | 343 | | |
291 | | - | |
| 344 | + | |
292 | 345 | | |
293 | 346 | | |
294 | 347 | | |
| |||
309 | 362 | | |
310 | 363 | | |
311 | 364 | | |
312 | | - | |
313 | | - | |
| 365 | + | |
| 366 | + | |
314 | 367 | | |
315 | 368 | | |
316 | 369 | | |
| |||
349 | 402 | | |
350 | 403 | | |
351 | 404 | | |
352 | | - | |
353 | | - | |
354 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
355 | 408 | | |
356 | 409 | | |
357 | 410 | | |
358 | 411 | | |
359 | | - | |
| 412 | + | |
360 | 413 | | |
361 | 414 | | |
362 | 415 | | |
| |||
368 | 421 | | |
369 | 422 | | |
370 | 423 | | |
371 | | - | |
372 | | - | |
373 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
374 | 427 | | |
375 | 428 | | |
376 | 429 | | |
377 | 430 | | |
378 | | - | |
| 431 | + | |
379 | 432 | | |
380 | 433 | | |
381 | 434 | | |
| |||
411 | 464 | | |
412 | 465 | | |
413 | 466 | | |
| 467 | + | |
414 | 468 | | |
415 | 469 | | |
416 | 470 | | |
| |||
452 | 506 | | |
453 | 507 | | |
454 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
455 | 526 | | |
456 | 527 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
35 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
53 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
11 | 22 | | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
15 | 26 | | |
16 | 27 | | |
17 | | - | |
| 28 | + | |
| 29 | + | |
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
| |||
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
| |||
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
21 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
22 | 36 | | |
23 | 37 | | |
24 | 38 | | |
| |||
27 | 41 | | |
28 | 42 | | |
29 | 43 | | |
30 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
31 | 47 | | |
32 | 48 | | |
33 | 49 | | |
| |||
38 | 54 | | |
39 | 55 | | |
40 | 56 | | |
41 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
42 | 60 | | |
43 | 61 | | |
44 | 62 | | |
| |||
51 | 69 | | |
52 | 70 | | |
53 | 71 | | |
54 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
55 | 75 | | |
56 | 76 | | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
11 | 25 | | |
12 | 26 | | |
13 | 27 | | |
| |||
0 commit comments