Attribute properties are missing
CoffeeParser opened this issue · comments
JSIL does not include attribute properties in the output... example:
C#
[ProtoMember(3, AsReference = true)]
JSIL
.Attribute($asm10.TypeRef("ProtoBuf.ProtoMemberAttribute"), function () { return [3]; });
- Is there a possibility to include the
AsReference=true
into the JSIL generated output? - Where do I have to look?
I don't think I ever built any infrastructure for this feature of
attributes, and I don't know how it works. You'd want to update
EmitCustomAttributes (
https://github.com/sq/JSIL/blob/master/JSIL/JavascriptAssemblyEmitter.cs#L297)
and then change the .Attribute function in the JSIL runtime (if necessary,
which it probably is? I don't remember whether these named args are
properties or just named arguments to the ctor.)
…On Tue, 11 Dec 2018 at 08:34, Denis Dik ***@***.***> wrote:
JSIL does not include attribute properties in the output... example:
*C#*
[ProtoMember(3, AsReference = true)]
*JSIL*
.Attribute($asm10.TypeRef("ProtoBuf.ProtoMemberAttribute"), function () {
return [3]; });
1. Is there a possibility to include the AsReference=true into the
JSIL generated output?
2. Where do I have to look?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1056>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMF8ntcSYmBsyi9X_t2h40zGJDECw0yks5u396igaJpZM4ZNyCw>
.