Skip to content

Unable to format Fable line (cannot determine if Expr Paren Fantomas.Core.SyntaxOak+ExprParenNode is uppercase or lowercase) #2998

@cr3wdayt5p

Description

@cr3wdayt5p

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions