fantomas
fantomas copied to clipboard
Unable to format Fable line (cannot determine if Expr Paren Fantomas.Core.SyntaxOak+ExprParenNode is uppercase or lowercase)
Issue created from fantomas-online
Code
let statusBarHeight = (window?getComputedStyle document.documentElement)?getPropertyValue "--statusBarHeight"
Problem description
This valid line of Fable code throws:
System.Exception: cannot determine if Expr Paren Fantomas.Core.SyntaxOak+ExprParenNode is uppercase or lowercase
The issue is present in both 6.2.3
and 6.3.0-alpha-003
.
Workaround
let statusBarHeight =
let docStyle = (window?getComputedStyle document.documentElement)
docStyle?getPropertyValue "--statusBarHeight"
This minor refactor is no problem for Fantomas.
Hey @cr3wdayt5p , thanks for raising the issue. If you want to work on this yourself, I think a good starting poing is here
Looks like the function that @dawedawe mentioned doesn't seem to explicitly know how to handle the )?
. Do we not include dynamic expressions in chains?