uno icon indicating copy to clipboard operation
uno copied to clipboard

draft

Open Youssef1313 opened this issue 3 years ago • 12 comments

GitHub Issue (If applicable): closes #

PR Type

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior?

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

Youssef1313 avatar Sep 15 '22 19:09 Youssef1313

gitpod-io[bot] avatar Sep 15 '22 19:09 gitpod-io[bot]

/azp run

jeromelaban avatar Sep 15 '22 20:09 jeromelaban

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Sep 15 '22 20:09 azure-pipelines[bot]

@jeromelaban Is it safe to remove the hash part if things paas?

Youssef1313 avatar Sep 16 '22 01:09 Youssef1313

@jeromelaban Can you restart the CI here please?

Youssef1313 avatar Sep 16 '22 16:09 Youssef1313

/azp run

jeromelaban avatar Sep 16 '22 20:09 jeromelaban

Azure Pipelines successfully started running 2 pipeline(s).

azure-pipelines[bot] avatar Sep 16 '22 20:09 azure-pipelines[bot]

The problem here is that if there are two types with the same name in different assemblies, there may be a clash. It's not something we validate inside uno.

jeromelaban avatar Sep 16 '22 20:09 jeromelaban

@jeromelaban If they are in different assemblies, that should be different compilations too? What's the problem if the same name is used across different compilations?

Youssef1313 avatar Sep 16 '22 20:09 Youssef1313

The problem here is disambiguation of the same FullName in different assemblies, but in the same compilation.

jeromelaban avatar Sep 19 '22 12:09 jeromelaban

@jeromelaban I'm not following with that. We generate code for symbols that are declared in source, shouldn't they all have the same assembly, specifically, it's compilation.Assembly. If a symbol doesn't belong to compilation.Assembly, I think we will never generate code for it.

Youssef1313 avatar Sep 19 '22 12:09 Youssef1313

@jeromelaban I'm not following with that. We generate code for symbols that are declared in source, shouldn't they all have the same assembly, specifically, it's compilation.Assembly. If a symbol doesn't belong to compilation.Assembly, I think we will never generate code for it.

That's fair, I had in mind that the original use was for symbols coming from other assemblies, but this is not the case anymore. Maybe it should be renamed to GetGeneratedFileNameHint() or something to make it clear, or removed altogether and used inline.

jeromelaban avatar Sep 19 '22 17:09 jeromelaban

@Youssef1313 still needed?

jeromelaban avatar Apr 26 '23 12:04 jeromelaban