未验证 提交 aa1550d9 编写于 作者: S Steffen Forkmann 提交者: GitHub

Small cleanup in ServiceAssemblyContent (#9112)

上级 40f64847
......@@ -752,8 +752,7 @@ module ParsedInput =
List.iter walkAttribute attrs
walkType t
argInfo :: (argInfos |> List.concat)
|> List.map (fun (SynArgInfo(Attributes attrs, _, _)) -> attrs)
|> List.concat
|> List.collect (fun (SynArgInfo(Attributes attrs, _, _)) -> attrs)
|> List.iter walkAttribute
and walkMemberSig = function
......@@ -876,11 +875,11 @@ module ParsedInput =
let mutable ns = None
let modules = ResizeArray<Module>()
let inline longIdentToIdents ident = ident |> Seq.map (fun x -> string x) |> Seq.toArray
let inline longIdentToIdents ident = ident |> Seq.map string |> Seq.toArray
let addModule (longIdent: LongIdent, range: range) =
modules.Add
{ Idents = longIdent |> List.map string |> List.toArray
{ Idents = longIdentToIdents longIdent
Range = range }
let doRange kind (scope: LongIdent) line col =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册