Commit 9bd6a64 1 parent 98aff7e commit 9bd6a64 Copy full SHA for 9bd6a64
File tree 5 files changed +38
-1
lines changed
src/Glutinum.Converter/Utils
tests/specs/references/naming
5 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,10 @@ let startWithDigit (name: string) : bool =
25
25
let escapeName ( name : string ) : string =
26
26
if
27
27
name.Contains( " -" )
28
+ || name.Contains( " $" )
29
+ || name.Contains( " #" )
28
30
|| startWithDigit name
29
31
|| Keywords.fsharp.Contains name
30
- || name.StartsWith( " #" )
31
32
then
32
33
$" ``%s {name}``"
33
34
else
Original file line number Diff line number Diff line change
1
+ export type FuseSortFunctionItem = {
2
+ $ : string ,
3
+ a$ : string ,
4
+ a$b : string
5
+ }
Original file line number Diff line number Diff line change
1
+ module rec Glutinum
2
+
3
+ open Fable.Core
4
+ open Fable.Core .JsInterop
5
+ open System
6
+
7
+ [<AllowNullLiteral>]
8
+ [<Interface>]
9
+ type FuseSortFunctionItem =
10
+ abstract member `` $`` : string with get, set
11
+ abstract member ``a $`` : string with get, set
12
+ abstract member ``a $b`` : string with get, set
13
+
14
+ (***)
15
+ #r " nuget: Fable.Core"
16
+ (***)
Original file line number Diff line number Diff line change
1
+ export type FuseSortFunctionItem = { #dd: string }
Original file line number Diff line number Diff line change
1
+ module rec Glutinum
2
+
3
+ open Fable.Core
4
+ open Fable.Core .JsInterop
5
+ open System
6
+
7
+ [<AllowNullLiteral>]
8
+ [<Interface>]
9
+ type FuseSortFunctionItem =
10
+ abstract member `` #dd`` : string with get, set
11
+
12
+ (***)
13
+ #r " nuget: Fable.Core"
14
+ (***)
You can’t perform that action at this time.
0 commit comments