-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement skipping for any field with known size.
This patch adds `skip` support for fields with `&size` attribute or of builtin type with known size. If a unit has a known size and it is specified in a `&size` attribute this also allows to skip over unit fields. Closes #1640.
- Loading branch information
Showing
6 changed files
with
109 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/Baseline/spicy.types.unit.skip-field/all-types-skips.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
# Begin parsing production: Skip: _anon -> skip: _anon | ||
# Begin parsing production: Skip: _anon_2 -> skip: _anon_2 | ||
# Begin parsing production: Skip: _anon_3 -> skip: _anon_3 | ||
# Begin parsing production: Skip: _anon_4 -> skip: _anon_4 | ||
# Begin parsing production: Skip: _anon_5 -> skip: _anon_5 | ||
# Begin parsing production: Skip: _anon_6 -> skip: _anon_6 | ||
# Begin parsing production: Skip: _anon_7 -> skip: _anon_7 | ||
# Begin parsing production: Skip: _anon_8 -> skip: _anon_8 | ||
# Begin parsing production: Skip: _anon_9 -> skip: _anon_9 | ||
# Begin parsing production: Skip: _anon_10 -> skip: _anon_10 | ||
# Begin parsing production: Skip: _anon_11 -> skip: _anon_11 | ||
# Begin parsing production: Skip: _anon_12 -> skip: _anon_12 | ||
# Begin parsing production: Skip: _anon_13 -> skip: _anon_13 | ||
# Begin parsing production: Skip: anon -> skip: anon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
skip b | ||
skip eos | ||
[$foo=[$a=1, $c=4, $f=7], $x=10] | ||
[$foo=[$f=7], $x=10] | ||
skip b | ||
skip eos | ||
[$foo=[$a=1, $c=4, $f=7], $x=10] | ||
[$foo=[$f=7], $x=10] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters