Skip to content

Most performant way of getting typed AST of single file edited after full parsing #796

@alfonsogarciacaro

Description

@alfonsogarciacaro

One of the selling points of Fable is it works very well in watch mode as frontend developers are used to work. However, I still don't know what's the best way to get the typed AST of a single file edited after fully parsing a project. Right now I'm using ParseAndCheckProject for both cases (first project load and file edits after that), the only difference is I reuse the ProjectOptions for watch compilations.

Is there a better way to do this? I've seen there're some methods like ParseFileInProject but it doesn't give the FSharpImplementationFileContents. Also, should I set LoadTime in ProjectOptions to any specific value?

Thanks! (Pinging @dsyme for help 😄 )

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