diff options
author | Mike Barnett <mbarnett@microsoft.com> | 2011-11-01 12:45:26 -0700 |
---|---|---|
committer | Mike Barnett <mbarnett@microsoft.com> | 2011-11-01 12:45:26 -0700 |
commit | b648781a1833d076b4516f7b43ae788fbf27151a (patch) | |
tree | fbbb3ed46f39bb2bd50b97da7c7da92090fe2b93 /BCT | |
parent | e6d3a8635d826a11fe8756d86b227e6dad838ef5 (diff) |
Don't wipe out existing attributes when adding {:extern}
Diffstat (limited to 'BCT')
-rw-r--r-- | BCT/BytecodeTranslator/Sink.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/BCT/BytecodeTranslator/Sink.cs b/BCT/BytecodeTranslator/Sink.cs index a550d5cd..d20671b2 100644 --- a/BCT/BytecodeTranslator/Sink.cs +++ b/BCT/BytecodeTranslator/Sink.cs @@ -950,7 +950,10 @@ namespace BytecodeTranslator { !TypeHelper.GetDefiningUnitReference(type).UnitIdentity.Equals(this.assemblyBeingTranslated.UnitIdentity);
if (isExtern) {
var attrib = new Bpl.QKeyValue(Bpl.Token.NoToken, "extern", new List<object>(1), null);
- f.Attributes = attrib;
+ if (f.Attributes == null)
+ f.Attributes = attrib;
+ else
+ f.Attributes.AddLast(attrib);
}
return f;
}
|