You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List.tryFind(fun{ Type = t; Range = r } ->match t with| MainNode SynMemberDefn_Member
| MainNode SynMemberSig_Member ->// trying to get AST trivia
RangeHelpers.``range contains`` r rangeOfBindingAndRhs
| Token(MEMBER,_)->// trying to get token trivia
r.StartLine = rangeOfBindingAndRhs.StartLine
|_->false)
Result
List.tryFind (fun{ Type = t; Range = r } ->// trying to get AST triviamatch t with| MainNode SynMemberDefn_Member
| MainNode SynMemberSig_Member ->// trying to get AST trivia
RangeHelpers.``range contains`` r rangeOfBindingAndRhs
| Token (MEMBER,_)->// trying to get token trivia
r.StartLine = rangeOfBindingAndRhs.StartLine
|_->false)
Problem description
Trivia bug: the range of the first arrow should be limited instead of the entire lambda body.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Issue created from fantomas-online
Code
Result
Problem description
Trivia bug: the range of the first arrow should be limited instead of the entire lambda body.
Extra information
Options
Fantomas Master at 09/03/2020 19:59:28 - 573b009
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: