File tree 3 files changed +14
-5
lines changed
src/FSharp.Psi.Services/src/Generate
test/data/features/generate/signatureFiles
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ type FSharpGenerateSignatureBuilder() =
177
177
if isNotNull symbolUse then
178
178
let mfv = symbolUse.Symbol :?> FSharpMemberOrFunctionOrValue
179
179
180
- mfv .Attributes
181
- |> Seq.iter ( fun a -> sb.Append( $" {a.Format(symbolUse.DisplayContext)} {lineEnding}" ) |> ignore)
180
+ binding .Attributes
181
+ |> Seq.iter ( fun a -> sb.Append( $" [< {a.GetText()}>] {lineEnding}" ) |> ignore)
182
182
183
183
sb.Append( " val " ) |> ignore
184
184
sb.Append( binding.HeadPattern.GetText()) |> ignore
Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ let c = Math.PI
7
7
let d = 23
8
8
let e = " bar"
9
9
let f x y = x * y
10
+ [<BAttribute( MyEnum.A) >]
10
11
[<System.Obsolete " foo" >]
11
12
[<System.NonSerialized>]
12
13
let g x = x
14
+ let [<Literal>] Hello = " Hello"
15
+ [<CompiledName( Hello) >]
16
+ let hello = 1
13
17
{ caret}
Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ val c: float
8
8
val d: int
9
9
val e: string
10
10
val f: int -> int -> int
11
- [<Obsolete ("foo")>]
12
- [<NonSerialized>]
13
- val g: 'a -> 'a
11
+ [<BAttribute(MyEnum.A)>]
12
+ [<System.Obsolete "foo">]
13
+ [<System.NonSerialized>]
14
+ val g: 'a -> 'a
15
+ [<Literal>]
16
+ val Hello: string
17
+ [<CompiledName(Hello)>]
18
+ val hello: int
You can’t perform that action at this time.
0 commit comments