-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add C#-style type accelerators and suffixes for ushort, uint, ulong, and short literals. #7575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
117 commits
Select commit
Hold shift + click to select a range
f3b0413
Merge pull request #1 from PowerShell/master
vexx32 41e64d2
Merge pull request #2 from PowerShell/master
vexx32 8d4e16c
Merge branch 'master' of git://github.com/PowerShell/PowerShell
vexx32 a636dca
Add typesuffix traits to u and s
vexx32 4330f28
Add type accelerators for uint, ulong, ushort, and short
vexx32 03739e1
Add support for parsing uint, ulong, ushort, and short values
vexx32 377f7b2
Add tests for parsing the new literals
vexx32 6f84b5a
Add tests for new type accelerators
vexx32 1730a45
Overlooked a suffix reference I need to change the type of.
vexx32 74c9c1a
Remove weird copy paste error
vexx32 dd4c6c2
Address review comments
vexx32 6d73617
Add More Tests for new literal types.
vexx32 c37e531
Add comments for decimal weirdness & some tests
vexx32 3b058d7
Add test for `ud` suffix that should fail
vexx32 a347629
Fix short parsing
vexx32 c628341
Forgot the decimal case. Fixed that short parsing.
vexx32 971d488
Add clarifying comment to uint parsing cases
vexx32 e4e10a6
Reorder parsing cases for unsigned ints
vexx32 c09b2f4
Revise parser notation tests
vexx32 2e498df
Fix Hexadecimal tests
vexx32 02a2aac
Fix typo in test
vexx32 40c1751
Pull double conversions into full switch
vexx32 e0eb299
Remove unnecessary parentheses.
vexx32 0c802fb
Expand numeric parsing test cases
vexx32 2626dc0
Add explicit multiplier value tests
vexx32 13e6a60
Fix Tests' expected values.
vexx32 fbff8bc
Cover *all* the test cases!
vexx32 dbfcbac
Fix testcases reference
vexx32 2a2b6d8
Fix typos in tests
vexx32 00f1371
Add test cases for numbers beginning with +
vexx32 9c54f80
Merge branch 'master' of git://github.com/PowerShell/PowerShell
vexx32 804f1dd
Merge branch 'master' of git://github.com/PowerShell/PowerShell
vexx32 dc0a9ba
Duplicate NamedAttributeArgumentAst class
vexx32 e289aad
Build framework for accepting and recognising named arguments for met…
vexx32 8d39603
Merge branch 'master' of git://github.com/PowerShell/PowerShell
vexx32 d30e21c
Merge branch 'master' of git://github.com/PowerShell/PowerShell
vexx32 d0a3b94
Add typesuffix traits to u and s
vexx32 3fa4ebd
Add type accelerators for uint, ulong, ushort, and short
vexx32 c387a44
Add support for parsing uint, ulong, ushort, and short values
vexx32 0c3f2f7
Add tests for parsing the new literals
vexx32 87cdf3d
Add tests for new type accelerators
vexx32 bacd4f3
Overlooked a suffix reference I need to change the type of.
vexx32 f7a730b
Remove weird copy paste error
vexx32 9479691
Address review comments
vexx32 240c9e5
Add More Tests for new literal types.
vexx32 a813e05
Add comments for decimal weirdness & some tests
vexx32 5e390bd
Add test for `ud` suffix that should fail
vexx32 49da113
Fix short parsing
vexx32 d0572e5
Forgot the decimal case. Fixed that short parsing.
vexx32 0e051ce
Add clarifying comment to uint parsing cases
vexx32 cf337ea
Reorder parsing cases for unsigned ints
vexx32 b07ddb9
Revise parser notation tests
vexx32 1d901a7
Fix Hexadecimal tests
vexx32 7c784d3
Fix typo in test
vexx32 19fa1d9
Pull double conversions into full switch
vexx32 2fc6236
Remove unnecessary parentheses.
vexx32 5d58a54
Expand numeric parsing test cases
vexx32 dfc06c0
Add explicit multiplier value tests
vexx32 40fd2f1
Fix Tests' expected values.
vexx32 ffc72f4
Cover *all* the test cases!
vexx32 0aedf7b
Fix testcases reference
vexx32 5e6f926
Fix typos in tests
vexx32 f57ddef
Add test cases for numbers beginning with +
vexx32 9facd21
Merge branch 'Tokenizer/TypeSuffixes' of https://github.com/vexx32/Po…
vexx32 14e1cd0
Revert changes to AST that crept in from another branch
vexx32 6dc00c2
Manual revert ast.cs to original
vexx32 3c470b0
Add typesuffix traits to u and s
vexx32 c6b7489
Add type accelerators for uint, ulong, ushort, and short
vexx32 a353bfc
Add support for parsing uint, ulong, ushort, and short values
vexx32 58f954a
Add tests for parsing the new literals
vexx32 2d054c9
Add tests for new type accelerators
vexx32 23557ff
Overlooked a suffix reference I need to change the type of.
vexx32 5351ec4
Remove weird copy paste error
vexx32 0bc3974
Address review comments
vexx32 8303d19
Add More Tests for new literal types.
vexx32 906df9c
Add comments for decimal weirdness & some tests
vexx32 d04a940
Add test for `ud` suffix that should fail
vexx32 26f3183
Fix short parsing
vexx32 de76b0a
Forgot the decimal case. Fixed that short parsing.
vexx32 2fade37
Add clarifying comment to uint parsing cases
vexx32 af9d1eb
Reorder parsing cases for unsigned ints
vexx32 54946df
Revise parser notation tests
vexx32 b3b5e88
Fix Hexadecimal tests
vexx32 38d3398
Fix typo in test
vexx32 3ea9863
Pull double conversions into full switch
vexx32 3ff066c
Remove unnecessary parentheses.
vexx32 b88b6b8
Expand numeric parsing test cases
vexx32 0852415
Add explicit multiplier value tests
vexx32 2e1a9c2
Fix Tests' expected values.
vexx32 f942104
Cover *all* the test cases!
vexx32 3ac4ae9
Fix testcases reference
vexx32 b87e4b6
Fix typos in tests
vexx32 50e6dce
Add test cases for numbers beginning with +
vexx32 bee225b
Duplicate NamedAttributeArgumentAst class
vexx32 4ffe824
Build framework for accepting and recognising named arguments for met…
vexx32 f59cc1e
Add support for parsing uint, ulong, ushort, and short values
vexx32 cf2e419
Add tests for parsing the new literals
vexx32 01ad913
Remove weird copy paste error
vexx32 8135b27
Address review comments
vexx32 7417725
Add More Tests for new literal types.
vexx32 49212ac
Add comments for decimal weirdness & some tests
vexx32 e677fbb
Add test for `ud` suffix that should fail
vexx32 7c2722c
Fix short parsing
vexx32 583287a
Add clarifying comment to uint parsing cases
vexx32 8acc402
Reorder parsing cases for unsigned ints
vexx32 4736c18
Revise parser notation tests
vexx32 d8cb6be
Fix typo in test
vexx32 920faca
Expand numeric parsing test cases
vexx32 fb1f216
Add explicit multiplier value tests
vexx32 581c0dc
Fix Tests' expected values.
vexx32 b711eb4
Cover *all* the test cases!
vexx32 fec8ef2
Fix testcases reference
vexx32 bffa60d
Fix typos in tests
vexx32 bb818d9
Add test cases for numbers beginning with +
vexx32 5ceba6e
Revert changes to AST that crept in from another branch
vexx32 cd2bc8e
Manual revert ast.cs to original
vexx32 a6eb532
Merge branch 'Tokenizer/TypeSuffixes' of https://github.com/vexx32/Po…
vexx32 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about "ul"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presently, that one lives under the default case, inside the checks for the Unsigned flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry case is not HasFlag. Closed.