Skip to content

Commit

Permalink
Fix some nullability warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutch committed Jul 8, 2023
1 parent d3e08b6 commit e6cacde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Editor/Parsing/BackgroundParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Operation CreateOperation (TInput input)

//capture successful parses
task.ContinueWith ((t, state) => {
Operation op = (Operation)state;
Operation op = (Operation)state!;
if (t.IsCompleted) {
op.Processor.lastSuccessfulOperation = op;
try {
Expand Down
2 changes: 1 addition & 1 deletion Editor/TextStructure/XmlTextStructureNavigator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ SnapshotSpan GetSpanOfEnclosingInternal (SnapshotSpan activeSpan)
// use last parse if it's up to date, which is most likely will be
// else use a spine from the end of the selection and update as needed
var lastParse = parser.LastOutput;
List<XObject> nodePath;
List<XObject>? nodePath = null;
XmlSpineParser? spine = null;
if (lastParse != null && lastParse.TextSnapshot.Version.VersionNumber == activeSpan.Snapshot.Version.VersionNumber) {
var n = lastParse.XDocument.FindAtOrBeforeOffset (activeSpan.Start.Position);
Expand Down

0 comments on commit e6cacde

Please sign in to comment.