Skip to content

Commit 208345b

Browse files
committed
Comment lines reordered.
1 parent 44a0e2d commit 208345b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/TypeScript/Comment.fs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ type Comment =
1515
let logicalName = defaultArg logicalName ""
1616
let intersectEntities = defaultArg intersectEntities []
1717

18-
[ if not (IsNullOrWhiteSpace displayName) then yield $"**{displayName.Trim()}**"
19-
if not (IsNullOrWhiteSpace logicalName) then yield $"Logical Name: `{logicalName.Trim()}`"
20-
if not (IsNullOrWhiteSpace setName) then yield $"Set Name: `{setName.Trim()}`"
18+
[
2119
if defaultArg isIntersect false then yield "Intersect Table"
2220
match intersectEntities with
2321
| e1 :: e2 :: _ -> yield $"Intersects: {e1.DisplayName} (`{e1.LogicalName}`) ⟷ {e2.DisplayName} (`{e2.LogicalName}`)"
24-
| _ -> () ]
22+
| _ -> ()
23+
if not (IsNullOrWhiteSpace displayName) then yield $"**{displayName.Trim()}**"
24+
if not (IsNullOrWhiteSpace logicalName) then yield $"Logical Name: `{logicalName.Trim()}`"
25+
if not (IsNullOrWhiteSpace setName) then yield $"Set Name: `{setName.Trim()}`"
26+
]
2527
|> Comment.Wrap
2628

2729
static member Attribute(displayName, ?colType, ?tes, ?link, ?label, ?isPrimaryId, ?logicalName) =

0 commit comments

Comments
 (0)