Fantomas is not able to parse some (very dynamic!) code in Feliz.AgGrid:
static member inline onRangeSelectionChanged callback = agGridProp<'row>("onRangeSelectionChanged", fun x ->
let selectedRange = x?api?getCellRanges()?at(0)
let startRow = selectedRange?startRow?rowIndex
let startColumn = selectedRange?columns?at(0)?colId
let endRow = selectedRange?endRow?rowIndex
let endColumn = selectedRange?columns?at(selectedRange?columns?length-1)?colId
callback startRow startColumn endRow endColumn)
I reproduced the error using https://fsprojects.github.io/fantomas-tools/#/fantomas/preview, but got an error from GitHub about the URL being too long when using the
create issue
link at the bottom. Hence a manual bug report.Fantomas is not able to parse some (very dynamic!) code in Feliz.AgGrid:
https://github.com/CompositionalIT/feliz-ag-grid/blob/3127eec7a815eb3abf8750b87ba48e8c9f6ed273/src/AgGrid.fs#L171-L178
This results in the following error from Fantomas (v6.3.4):