Skip to content

Commit

Permalink
Merge pull request #171 from nojaf/add-path-to-ast-collecting
Browse files Browse the repository at this point in the history
Add path to ast collecting
  • Loading branch information
nojaf authored Nov 24, 2023
2 parents 17d4eb3 + 38e115a commit 253a526
Show file tree
Hide file tree
Showing 4 changed files with 563 additions and 527 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed
* [Add path to ASTCollecting](https://github.com/ionide/FSharp.Analyzers.SDK/pull/171) (thanks @nojaf!)

## [0.21.0] - 2023-11-22

### Changed
Expand Down
4 changes: 2 additions & 2 deletions docs/content/Dual Analyzer.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ let private topologicallySortedOpenStatementsAnalyzer

let walker =
{ new SyntaxCollectorBase() with
override _.WalkSynModuleSigDecl(decl: SynModuleSigDecl) =
override _.WalkSynModuleSigDecl(_, decl: SynModuleSigDecl) =
match decl with
| SynModuleSigDecl.Open(
target = SynOpenDeclTarget.ModuleOrNamespace(longId = LongIdentAsString value; range = mOpen)) ->
allOpenStatements.Add(value, mOpen)
| _ -> ()

override _.WalkSynModuleDecl(decl: SynModuleDecl) =
override _.WalkSynModuleDecl(_, decl: SynModuleDecl) =
match decl with
| SynModuleDecl.Open(
target = SynOpenDeclTarget.ModuleOrNamespace(longId = LongIdentAsString value; range = mOpen)) ->
Expand Down
Loading

0 comments on commit 253a526

Please sign in to comment.