Repository navigation
Introduce distinction between modules and assemblies - #1286
Conversation
| attributeNamespace, attributeName).IsNil; | ||
| } | ||
|
|
||
| public override string ToString() |
There was a problem hiding this comment.
I think there needs to be an implementation of ToString for EcmaModule. Especially as the ToString on EcmaType will use it
There was a problem hiding this comment.
Added a ToString override that simply uses the module name.
|
Mmm, as you note, there is little interest in bringing multimodule assemblies back completely, but this seems like a sufficiently small impact, and in case we ever do want them back, having the basic infrastructure in place(like this) would be very helpful. I think this is a reasonable thing to merge, if we can give plain EcmaModule's a good name. |
|
Note that in the past I used multimodule assemblies during development, not release. So they are definitely useful but for the typical CoreCLR scenario that might be less true. |
|
Looks good to me |
As I am looking at consolidation of the AOT metadata format, the representation of modules shows up as an interesting difference.
I'm not saying we should merge this pull request - I just wanted to see how this would look like in our type system and what might the problem points be. Doesn't seem too bad except for the part where we need to construct a name for non-assembly modules.
Feel free to say we don't want to merge this. No hard feelings :).