Uh oh!
There was an error while loading. Please reload this page.
Reuse more Microsoft.Interop.SourceGeneration code in JS generators - #74949
Conversation
jkoritzinsky
commented
Sep 1, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
lewing
commented
Sep 2, 2022
the wasm built test failures are likely from #74897 @ericstj@danmoseley can you verify? |
ericstj
commented
Sep 2, 2022
Yes: That's been fixed now, we can retrigger the pipeline. |
ericstj
commented
Sep 2, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
…SourceGeneration.GeneratedStatements and ContainingSyntaxContext types.
99a95ea to
5c8eaa3CompareUh oh!
There was an error while loading. Please reload this page.
| AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(GeneratorVersion))) | ||
| })))))); | ||
| } | ||
| string stubTypeFullName = method.ContainingType.ToDisplayString(new SymbolDisplayFormat(typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces)); |
There was a problem hiding this comment.
NameAndContainingTypesAndNamespaces is better than what we have in the GetFullyQualifiedMethodName and s_typeNameFormat, please unify it.
There was a problem hiding this comment.
If we use NameAndContainingTypesAndNamespaces in GetFullyQualifiedMethodName, how do we determine which "." separate class names and which namespace names?
Context: mono special naming convention requires to separate class names with / and namespaces with '.'.
There was a problem hiding this comment.
I think to meet the Mono naming requirements with NameAndContainingTypesAndNamespaces would require us to go back to using ToDisplayParts(). I'll leave that for now since we just moved away from that.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jkoritzinsky
commented
Sep 8, 2022
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Reuse more of the code in Microsoft.Interop.SourceGeneration in the JavaScript source generators instead of duplicating the logic.
Refactor the JavaScript generators to use the GeneratedStatements type instead of providing its own JSGeneratedStatements type.
Refactor the JSSignatureContext type to wrap a SignatureContext instead of providing a very similar surface area with a lot of duplicated code.
This PR also enhances the API surface of types in Microsoft.Interop.SourceGeneration to enable these sorts of scenarios.