Skip to content

Keep track of verbatim string in Untyped Syntax Tree. #10209

@nojaf

Description

@nojaf

Is your feature request related to a problem? Please describe.
Related to Fantomas bug fsprojects/fantomas#560.
In short, the AST does not keep track of the @ character before a string.

let s = @"\"

Creates

SynConst.String("\", tmp.fsx (1,8--1,12) IsSynthetic=false), tmp.fsx (1,8--1,12) IsSynthetic=false)

Describe the solution you'd like
Can we extend SynConst.String to indicate the leading @ was present?

Describe alternatives you've considered
In Fantomas, we currently detect the @ via the tokens.

Additional context
If approved, I'm willing to try and implement this myself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions