Skip to content

Nullable annotate the lexer and a few related files#61688

Merged
RikkiGibson merged 5 commits intodotnet:mainfrom
Neme12:nullableLexer
Jun 3, 2022
Merged

Nullable annotate the lexer and a few related files#61688
RikkiGibson merged 5 commits intodotnet:mainfrom
Neme12:nullableLexer

Conversation

@Neme12
Copy link
Copy Markdown
Contributor

@Neme12 Neme12 commented Jun 3, 2022

I originally did this when working on #61662 (going by the rule for incremental adoption of nullable to annotate the files that you touch), but was told to put it in a separate PR.

@Neme12 Neme12 requested a review from a team as a code owner June 3, 2022 17:25
@ghost ghost added Community The pull request was submitted by a contributor who is not a Microsoft employee. Area-Compilers labels Jun 3, 2022
Copy link
Copy Markdown
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 2)

@jcouv jcouv self-assigned this Jun 3, 2022
@Neme12 Neme12 requested review from RikkiGibson and jcouv June 3, 2022 19:17
Copy link
Copy Markdown
Member

@jcouv jcouv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks (iteration 5)

Copy link
Copy Markdown
Contributor

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks! :)

@RikkiGibson RikkiGibson self-assigned this Jun 3, 2022
TextWindow.Reset(beforeConsumed);

if (this.ScanIdentifier(ref info) && info.Text.Length > 0)
if (this.ScanIdentifier(ref info) && info.Text!.Length > 0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like there are several situations in this file where dotnet/csharplang#4563 would be useful.

@RikkiGibson RikkiGibson merged commit d79fe4e into dotnet:main Jun 3, 2022
@RikkiGibson
Copy link
Copy Markdown
Member

Thanks for the contribution @Neme12!

@ghost ghost added this to the Next milestone Jun 3, 2022
@Neme12
Copy link
Copy Markdown
Contributor Author

Neme12 commented Jun 3, 2022

Thanks 🎉

@Neme12 Neme12 deleted the nullableLexer branch June 3, 2022 23:51
@RikkiGibson RikkiGibson modified the milestones: Next, 17.3 P3 Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants