Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add higher-order-function-based API for working with untyped AST #16462

Merged
merged 42 commits into from
Jan 19, 2024

Commits on Dec 21, 2023

  1. Configuration menu
    Copy the full SHA
    523fcac View commit details
    Browse the repository at this point in the history
  2. Fantomas

    brianrourkeboll committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    39cfde9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d8f2e0a View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. Configuration menu
    Copy the full SHA
    4fb19c0 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2023

  1. Don't need that

    brianrourkeboll committed Dec 23, 2023
    Configuration menu
    Copy the full SHA
    db6154e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3f462a View commit details
    Browse the repository at this point in the history
  3. Update comment

    brianrourkeboll committed Dec 23, 2023
    Configuration menu
    Copy the full SHA
    923f9ba View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2024

  1. Simplify

    * Expose `Ast.fold` and `Ast.tryPick`.
    * Expose `SyntaxNode.(|Attributes|)`.
    * Ensure a few more syntax node cases get hit.
    brianrourkeboll committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    17b3b63 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3acf07c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d22fa83 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2024

  1. Update surface area

    brianrourkeboll committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    408b883 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. Add back foldWhile; add exists, tryNode

    * Put `Ast.foldWhile` back in.
    
    * Add `Ast.exists`.
    
    * Add `Ast.tryNode`.
    brianrourkeboll committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    3978e57 View commit details
    Browse the repository at this point in the history
  2. SyntaxTraversal.TraverseAst.tryPick

    * Replace uses of `SyntaxTraversal.Traverse` in `FSharpParseFileResults`
      with the appropriate function from the `Ast` module: `exists`,
      `tryPick`, `tryNode`.
    brianrourkeboll committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    d5b93f6 View commit details
    Browse the repository at this point in the history
  3. Update surface area

    brianrourkeboll committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    1363592 View commit details
    Browse the repository at this point in the history
  4. Merge main

    brianrourkeboll committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    a9f100d View commit details
    Browse the repository at this point in the history
  5. Need that

    brianrourkeboll committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    f43ef52 View commit details
    Browse the repository at this point in the history
  6. Just to be safe

    brianrourkeboll committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    c65804b View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2024

  1. Add Ast.tryPickLast

    brianrourkeboll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    aa4d236 View commit details
    Browse the repository at this point in the history
  2. Handle multiple args mid-pipeline

    * Before, no signature help was offered in a case like this:
    
      ```fsharp
      [1..10]
      |> List.fold (fun acc _ -> acc) ‸
      |> List.filter (fun x -> x > 3)
      ```
    
      The service will now offer help for the `state` parameter when the
      cursor ‸ is in that location.
    brianrourkeboll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    199cc8a View commit details
    Browse the repository at this point in the history
  3. * instead of error

    * `FSharpParseFileResults.TryRangeOfFunctionOrMethodBeingApplied` was
      previously returning the range of the (zero-width)
      `SynExpr.ArbitraryAfterError`. It now returns the range of the `*`
      (`op_Multiply`) instead.
    brianrourkeboll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    f77b03f View commit details
    Browse the repository at this point in the history
  4. Merge main

    brianrourkeboll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    2a9c0e9 View commit details
    Browse the repository at this point in the history
  5. Update surface area

    brianrourkeboll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    81214f6 View commit details
    Browse the repository at this point in the history
  6. Fmt

    brianrourkeboll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    266558d View commit details
    Browse the repository at this point in the history
  7. Missed in merge

    brianrourkeboll committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    00bedc9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f0b13a8 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2024

  1. Configuration menu
    Copy the full SHA
    321606e View commit details
    Browse the repository at this point in the history
  2. # → ###

    brianrourkeboll committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    c789342 View commit details
    Browse the repository at this point in the history
  3. Add ryPick tests

    brianrourkeboll committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    61c26c2 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

  1. Add a few more tests

    brianrourkeboll committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    a600242 View commit details
    Browse the repository at this point in the history
  2. \n

    brianrourkeboll committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    d4be7a6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f167e4a View commit details
    Browse the repository at this point in the history
  4. Bump release notes

    brianrourkeboll committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    8989388 View commit details
    Browse the repository at this point in the history
  5. Fmt

    brianrourkeboll committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    83effc6 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2024

  1. Configuration menu
    Copy the full SHA
    dd96419 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2024

  1. AstParsedInput

    * Use `ParsedInput` as the main AST type.
    
    * Move the `position` parameter rightward.
    brianrourkeboll committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    3eca20e View commit details
    Browse the repository at this point in the history
  2. Merge main

    brianrourkeboll committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    9dff5e0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddae52b View commit details
    Browse the repository at this point in the history
  4. Update surface area

    brianrourkeboll committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    d1e4bd1 View commit details
    Browse the repository at this point in the history
  5. Less function

    brianrourkeboll committed Jan 18, 2024
    Configuration menu
    Copy the full SHA
    12ae786 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2024

  1. Update untyped AST docs

    * Add basic examples for `ParsedInput` module functions.
    
    * Merge the existing `SyntaxVisitorBase` docs into the new file.
    brianrourkeboll committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    b428bb1 View commit details
    Browse the repository at this point in the history
  2. Clean up doc comments

    brianrourkeboll committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    4436151 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c1e612 View commit details
    Browse the repository at this point in the history