Skip to content

Commit

Permalink
Merge pull request #147 from nojaf/walk-exception
Browse files Browse the repository at this point in the history
Walk over the union case in SynModuleDecl.Exception.
  • Loading branch information
nojaf authored Nov 7, 2023
2 parents 5e78325 + fb88168 commit f31b7dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ 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]
## [0.19.0] - 2023-11-08

### Changed
* [API change in TASTCollecting](https://github.com/ionide/FSharp.Analyzers.SDK/pull/145) (thanks @dawedawe!)

### Fixed
* [Walk over the union case in SynModuleDecl.Exception](https://github.com/ionide/FSharp.Analyzers.SDK/pull/147) (thanks @nojaf!)

## [0.18.0] - 2023-11-03

### Added
Expand Down
3 changes: 2 additions & 1 deletion src/FSharp.Analyzers.SDK/ASTCollecting.fs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,8 @@ module ASTCollecting =
| SynModuleDecl.Types(types, r) -> List.iter walkTypeDefn types
| SynModuleDecl.Attributes(attributes = AllAttrs attrs; range = r) -> List.iter walkAttribute attrs
| SynModuleDecl.ModuleAbbrev(ident, longId, r) -> ()
| SynModuleDecl.Exception(range = r) -> ()
| SynModuleDecl.Exception(exnDefn = SynExceptionDefn(exnRepr = SynExceptionDefnRepr(caseName = unionCase))) ->
walkUnionCase unionCase
| SynModuleDecl.Open(longDotId, r) -> ()
| SynModuleDecl.HashDirective(range = r) -> ()

Expand Down

0 comments on commit f31b7dc

Please sign in to comment.