Add more helpers to Fantomas library (#7)

This commit is contained in:
Patrick Stevens
2024-10-06 19:45:13 +01:00
committed by GitHub
parent 8834d885de
commit f4da4cd2a1
9 changed files with 762 additions and 3 deletions

View File

@@ -17,3 +17,7 @@ module SynAttributes =
Range = range0
}
)
/// Get all the attributes out of this SynAttributes, as a list of individual attributes.
let toAttrs (attrs : SynAttributes) : SynAttribute list =
attrs |> List.collect (fun attr -> attr.Attributes)