-
Notifications
You must be signed in to change notification settings - Fork 635
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
DYN-1541: Issues with code block function default arguments #9528
Changes from 33 commits
56dbd73
eec64b9
4362151
75643c7
6a07e6c
38b8461
44a00a8
5c04a06
a21fd6a
4235133
302b9dd
6bf5548
8d4511b
8f9df0f
e91ef30
82373cc
1434ba0
706974c
760ae95
6ffd883
5b1c073
30f81af
ccc23ef
bab2f92
75e430a
0bf25b4
4e7ed90
e64b640
072af66
e4ae2c6
c06d338
396e51d
1e81689
6ad7073
3dfe388
fb22dd2
042ec65
57f2193
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,7 +141,7 @@ public class CodeBlock | |
/// <param name="procTable"></param> | ||
/// <param name="isBreakableBlock"></param> | ||
/// <param name="core"></param> | ||
public CodeBlock(Guid guid, CodeBlockType type, ProtoCore.Language langId, int cbID, SymbolTable symbols, ProcedureTable procTable, bool isBreakableBlock = false, ProtoCore.Core core = null) | ||
public CodeBlock(Guid guid, CodeBlockType type, ProtoCore.Language langId, int cbID, SymbolTable symbols, ProcedureTable procTable, bool isBreakableBlock, ProtoCore.Core core) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a breaking change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, you are correct, I will revert it. However, these default arguments are used in the code without being checked for being null. It looks like the code has been this way for a while, not sure what you would like to happen here (other than no changes). |
||
{ | ||
this.guid = guid; | ||
blockType = type; | ||
|
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.
find this style with no braces kind of difficult to read / prone to future errors - what do you think?
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 actually find the requirement to have the extra braces unnecessary and creates code that is more unreadable (mostly due to adding unnecessary code and code lines), but the bracing wars is a long running issue across multiple companies, I really have no dog in this race. That being said, these changes were made by Aparajit, I can change them however you would like.