-
-
Notifications
You must be signed in to change notification settings - Fork 15
NRT Migration Phase 1 #317
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
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
846046a
begin fixing nrt warnings
hahn-kev 85285b7
Fixed compiler warnings for the "mainline" projects
josephmyers 6674a89
Merge remote-tracking branch 'origin/master' into nrt-migration
josephmyers 62ac272
Fix merge
josephmyers 87369e5
Fixed remaining null references
josephmyers e0cf7eb
First round of PR comments
josephmyers d120d7b
Next wave of PR comments (not through everything yet)
josephmyers 0b75e71
More comments
josephmyers 2465363
Merge remote-tracking branch 'origin/master' into nrt-migration
josephmyers a4843e7
Added checks for a few places I had modified yesterday.
josephmyers 3997753
Disabled NRT for test projects
josephmyers 501ca44
remove section variable with confusing nullability
hahn-kev 482bc56
simplify a condition to remove `!` when we know it's not null
hahn-kev b3df864
Followup PR comments
josephmyers 18459e4
Merge remote-tracking branch 'origin/nrt-migration' into nrt-migration
josephmyers 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1504,7 +1504,7 @@ protected bool Error(ref ParseStackEntry top, string str) | |
| newtop = pe.m_action.Action(this); // before we change the stack | ||
| m_ungot = top.m_value; | ||
| Pop(ref top,((ParserReduce)pe).m_depth,er); | ||
| newtop.pos = top.m_value.pos; | ||
| newtop!.pos = top.m_value.pos; | ||
|
Contributor
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. wont this throw if
Collaborator
Author
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. Yes, it will. The way I interpret this section is, "if pe is non-null, so is pe.m_action" |
||
| top.m_value = newtop; | ||
| } | ||
| else | ||
|
|
@@ -1554,6 +1554,8 @@ SYMBOL Parse() | |
| ParseStackEntry top = new ParseStackEntry(this,0,NextSym()); | ||
| for (;;) | ||
| { | ||
| if (top.m_value == null) | ||
| throw new NullReferenceException("Stack entry m_value cannot be null"); | ||
| string cnm = top.m_value.yyname(); | ||
| if (m_debug) | ||
| { | ||
|
|
@@ -1693,7 +1695,8 @@ public static object create(string cls_name,Parser yyp) | |
| yyp.m_symbols.erh.Error(new CSToolsException(16,yyp.m_lexer,"no factory for {"+cls_name+")")); | ||
| try | ||
| { | ||
| return cr(yyp); | ||
| if (cr != null) | ||
| return cr(yyp); | ||
| } | ||
| catch (CSToolsException e) | ||
| { | ||
|
|
||
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
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
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.
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.