Skip to content

IDE code generator service refactoring#58244

Merged
tmat merged 19 commits intodotnet:mainfrom
tmat:CodeGenWorkspace
Jan 11, 2022
Merged

IDE code generator service refactoring#58244
tmat merged 19 commits intodotnet:mainfrom
tmat:CodeGenWorkspace

Conversation

@tmat
Copy link
Copy Markdown
Member

@tmat tmat commented Dec 10, 2021

Adds nullable annotations to code generation sources.
Adds missing cancellation tokens to call sites.
Separates options passed thru code gen code into document/language-specific (CodeGenerationPreferences) and operation specific (CodeGenerationContext).

Flow document-specific options thru from the document that code generator generates into. Previously, in some cases we passed no options to the code gen apis and the implementation read them from Workspace.Options. The workspace options do not have editorconfig options applied to specific documents.

Review strategy: commits can be reviewed individually.

@ghost ghost added the Area-IDE label Dec 10, 2021
@tmat tmat changed the title Code gen workspace IDE code generator service refactoring Dec 10, 2021
@tmat tmat force-pushed the CodeGenWorkspace branch 4 times, most recently from 73e0c5a to a54548f Compare December 13, 2021 04:50
@tmat tmat force-pushed the CodeGenWorkspace branch 4 times, most recently from bda74ee to a839e7e Compare December 14, 2021 01:27
@tmat tmat marked this pull request as ready for review December 14, 2021 17:45
@tmat tmat requested review from a team as code owners December 14, 2021 17:45
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Dec 14, 2021

@jasonmalinowski @CyrusNajmabadi PTAL

Copy link
Copy Markdown
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Done review pass of the compiler layer (commit 9)

Copy link
Copy Markdown
Member

@333fred 333fred left a comment

Choose a reason for hiding this comment

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

Compiler changes LGTM (commit 9)

@tmat tmat force-pushed the CodeGenWorkspace branch from 435ed77 to 362a41a Compare January 8, 2022 01:23
@tmat
Copy link
Copy Markdown
Member Author

tmat commented Jan 10, 2022

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 4 pipeline(s).

@RikkiGibson RikkiGibson self-assigned this Jan 11, 2022
SyntaxToken identifier,
ParameterListSyntax parameterList,
ConstructorInitializerSyntax initializer,
ConstructorInitializerSyntax? initializer,
Copy link
Copy Markdown
Member

@RikkiGibson RikkiGibson Jan 11, 2022

Choose a reason for hiding this comment

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

part of me wonders if we can run some check to ensure that nullability of these kinds of factory methods remains synchronized with the nullability in Syntax.xml. #Closed

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.

Compiler changes LGTM Thanks (iteration 19)

@tmat tmat merged commit 59c9b29 into dotnet:main Jan 11, 2022
@ghost ghost added this to the Next milestone Jan 11, 2022
@tmat tmat deleted the CodeGenWorkspace branch January 11, 2022 20:40
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P1 Feb 4, 2022
@ryzngard ryzngard added UX Review Not Required UX Review Not Required and removed Needs UX Triage labels Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants