@@ -2545,7 +2545,10 @@ type ValOptionalData =
25452545
25462546 /// XML documentation attached to a value.
25472547 /// MUTABILITY: for unpickle linkage
2548- mutable val_xmldoc: XmlDoc
2548+ mutable val_xmldoc: XmlDoc
2549+
2550+ /// the signature xml doc for an item in an implementation file.
2551+ mutable val_other_xmldoc : XmlDoc option
25492552
25502553 /// Is the value actually an instance method/property/event that augments
25512554 /// a type, and if so what name does it take in the IL?
@@ -2601,6 +2604,7 @@ type Val =
26012604 val_ repr_ info_ for_ display = None
26022605 val_ access = TAccess []
26032606 val_ xmldoc = XmlDoc.Empty
2607+ val_ other_ xmldoc = None
26042608 val_ member_ info = None
26052609 val_ declaring_ entity = ParentNone
26062610 val_ xmldocsig = String.Empty
@@ -2835,7 +2839,13 @@ type Val =
28352839 /// Get the declared documentation for the value
28362840 member x.XmlDoc =
28372841 match x.val_ opt_ data with
2838- | Some optData -> optData.val_ xmldoc
2842+ | Some optData ->
2843+ if not optData.val_ xmldoc.IsEmpty then
2844+ optData.val_ xmldoc
2845+ else
2846+ match optData.val_ other_ xmldoc with
2847+ | Some xmlDoc -> xmlDoc
2848+ | None -> XmlDoc.Empty
28392849 | _ -> XmlDoc.Empty
28402850
28412851 ///Get the signature for the value's XML documentation
@@ -3065,6 +3075,11 @@ type Val =
30653075 | Some optData -> optData.val_ other_ range <- Some m
30663076 | _ -> x.val_ opt_ data <- Some { Val.NewEmptyValOptData() with val_ other_ range = Some m }
30673077
3078+ member x.SetOtherXmlDoc xmlDoc =
3079+ match x.val_ opt_ data with
3080+ | Some optData -> optData.val_ other_ xmldoc <- Some xmlDoc
3081+ | _ -> x.val_ opt_ data <- Some { Val.NewEmptyValOptData() with val_ other_ xmldoc = Some xmlDoc }
3082+
30683083 member x.SetDeclaringEntity parent =
30693084 match x.val_ opt_ data with
30703085 | Some optData -> optData.val_ declaring_ entity <- parent
@@ -3119,6 +3134,7 @@ type Val =
31193134 val_ repr_ info = tg.val_ repr_ info
31203135 val_ access = tg.val_ access
31213136 val_ xmldoc = tg.val_ xmldoc
3137+ val_ other_ xmldoc = tg.val_ other_ xmldoc
31223138 val_ member_ info = tg.val_ member_ info
31233139 val_ declaring_ entity = tg.val_ declaring_ entity
31243140 val_ xmldocsig = tg.val_ xmldocsig
0 commit comments