-
Notifications
You must be signed in to change notification settings - Fork 268
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
Fix: Support for user-defined module fmt for all compilers #5441
Merged
MikaelMayer
merged 17 commits into
master
from
fix-5283-reserved-keywords-go-need-of-escape
May 17, 2024
+151
−8
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d0a6249
Add test for issue #5283
MikaelMayer 19328d1
Fix: Support for user-defined module fmt for all compilers
MikaelMayer 75e3ffb
More supported cases
MikaelMayer 4483593
Fixing python's needs
MikaelMayer f9f6a3a
Merge branch 'master' into fix-5283-reserved-keywords-go-need-of-escape
MikaelMayer d7dc876
Fixed a missing IdProtect
MikaelMayer 1016f39
Formatting
MikaelMayer f55655e
Merge branch 'master' into fix-5283-reserved-keywords-go-need-of-escape
MikaelMayer cee3352
Merge branch 'master' into fix-5283-reserved-keywords-go-need-of-escape
MikaelMayer 37aec41
refine python
fabiomadge 6343291
format
fabiomadge 1191b14
Apply suggestions from code review
MikaelMayer 36cffc7
Update docs/dev/news/5283.fix
MikaelMayer 9a32b36
Update Source/DafnyCore/Backends/GoLang/GoCodeGenerator.cs
MikaelMayer 29e5b71
Merge branch 'master' into fix-5283-reserved-keywords-go-need-of-escape
MikaelMayer 94401b2
Update 5283.fix
fabiomadge f3c76ed
Merge branch 'master' into fix-5283-reserved-keywords-go-need-of-escape
fabiomadge 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 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
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
60 changes: 60 additions & 0 deletions
60
Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/git-issue-5283.dfy
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,60 @@ | ||
// RUN: %testDafnyForEachCompiler "%s" | ||
|
||
/* Obtained from | ||
https://pkg.go.dev/std | ||
by running on the console | ||
copy([...document.querySelectorAll( | ||
"td > div.UnitDirectories-pathCell > div > span, "+ | ||
"td > div.UnitDirectories-pathCell > div > a")] | ||
.map(e => "module " + e.textContent + " {}").join("\n")) | ||
*/ | ||
module archive {} | ||
module bufio {} | ||
module builtin {} | ||
module bytes {} | ||
module cmp {} | ||
module compress {} | ||
module container {} | ||
module context {} | ||
module crypto {} | ||
module database {} | ||
module debug {} | ||
module embed {} | ||
module encoding {} | ||
module errors {} | ||
module expvar {} | ||
module flag {} | ||
module fmt {} | ||
module go {} | ||
module hash {} | ||
module html {} | ||
module image {} | ||
module index {} | ||
module internal {} | ||
module io {} | ||
module log {} | ||
module maps {} | ||
module math {} | ||
module mime {} | ||
module net {} | ||
module os {} | ||
module path {} | ||
module plugin {} | ||
module reflect {} | ||
module regexp {} | ||
module runtime {} | ||
module slices {} | ||
module sort {} | ||
module strconv {} | ||
module strings {} | ||
module sync {} | ||
module syscall {} | ||
module testing {} | ||
module text {} | ||
module time {} | ||
module unicode {} | ||
module unsafe {} | ||
|
||
method Main(){ | ||
print "done\n"; | ||
} |
1 change: 1 addition & 0 deletions
1
Source/IntegrationTests/TestFiles/LitTests/LitTest/git-issues/git-issue-5283.dfy.expect
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 @@ | ||
done |
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 @@ | ||
Support for user-defined module with the same name as Go built-in modules, checked for all compilers |
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.
I messed with this a little. Maybe you can have double check it.
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.
I don't know how to evaluate if this is good or not. I'll let the CI test this new behavior.