-
Notifications
You must be signed in to change notification settings - Fork 636
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-7112: Fix DS parser to error early on finding import statements in code block nodes #15288
Conversation
any way to unit test this so no one breaks it later? |
Sure, will add one. I also need to fix failing tests as they run under the assumption that |
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.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-7112
UI Smoke TestsTest: success. 11 passed, 0 failed. |
IsParsingCodeBlockNode = true, | ||
IsParsingPreloadedAssembly = false | ||
IsParsingPreloadedAssembly = false, | ||
IsParsingInTestMode = true, |
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.
why should this be true here? Isn't this a general utility function not a test helper?
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.
It's actually a test helper. I'll see if I can refactor it or rename it so that's clear.
var cbn = ProtoCore.Utils.ParserUtils.Parse(code); | ||
var subtree = null == cbn ? new Subtree(null, guid) : new Subtree(cbn.Body, guid); | ||
return subtree; | ||
} |
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.
Unused
var cbn = ProtoCore.Utils.ParserUtils.Parse(code); | ||
var subtree = null == cbn ? new Subtree(null, guid) : new Subtree(cbn.Body, guid); | ||
return subtree; | ||
} |
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.
Unused
Purpose
Fix DS parser to error early on finding import statements in code block nodes
Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Fix parser to error early on finding import statements in code block nodes