-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Allow user-specified underlying type for enums #8329
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
Merged
TravisEz13
merged 36 commits into
PowerShell:master
from
IISResetMe:feature/enum-with-underlying-type
Jan 17, 2019
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
88ce274
Add basic enum basetype tests
IISResetMe 06ff8a3
Add optional base type to enum parsing rule
IISResetMe e120158
WIP: Variable underlying types for enum definitions
IISResetMe f58eba8
Add support for Flags() and fix implied member literal values
IISResetMe c1bc80d
Fix CodeFactor issue (SA1116)
IISResetMe f417453
Add type-aware range check for enum member values
IISResetMe 5d1ff8a
Reset tokenizer mode in EnumDefinitionRule
IISResetMe fc5a608
Update error strings, add null check for Enum member values
IISResetMe 48ac5b3
Fix CodeFactor issue (SA1000, SA1019)
IISResetMe 55ee223
Fix valueTooBig test (off-by-one) in DefineEnum()
IISResetMe 661e7c7
Fix type names in enum test
IISResetMe 84edbf9
Add more enum tests
IISResetMe d4486d8
Better error handling + parser errors for invalid enum underlying type
IISResetMe b0371ba
Optimize counter branch when defining enum member values
iSazonov dd6eee9
Add enum type constraint check to parser
IISResetMe 548b6cd
Merge branch 'feature/enum-with-underlying-type' of https://github.co…
IISResetMe 1c767a9
Update enum type constraint test
IISResetMe c43da74
Remove redundant enum type check from PSType
IISResetMe 19b2770
Clean up DefineEnum()
IISResetMe d7a90a2
Fix CodeFactor issues (SA1116, SA1001)
IISResetMe ba4ccac
Add enum negative value tests
IISResetMe 46c654a
Refactor enum underlying type check
IISResetMe c6b2951
Change enum type parser check to TypeCode
IISResetMe 434bbab
Fix ReportError()/ReportIncompleteInput() argument alignment in Parser
IISResetMe 61234b9
Revert "Fix ReportError()/ReportIncompleteInput() argument alignment …
IISResetMe dbb4d18
Simplify type names
IISResetMe 23f2622
Update EnumDefinitionRule syntax description
IISResetMe b18213e
Fix argument indentation
IISResetMe 052c093
Expand test for enum with negative initial value
IISResetMe 1c8c5ad
Remove binary enum value incrementations when Flags() is present
IISResetMe 4c882f4
Remove test for binary enum value incrementations when Flags() is pre…
IISResetMe 6d283d3
Rename ParserStrings.EnumeratorValueTooLarge
IISResetMe 80e119c
Add test for enum literal value too small
IISResetMe 065e151
Fix comment + variable casing
IISResetMe 456d30b
Merge branch 'master' into feature/enum-with-underlying-type
IISResetMe 85c36a8
Fix variable casing for ValidUnderlyingTypeCodes
IISResetMe 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
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.
Uh oh!
There was an error while loading. Please reload this page.