From fb7481829d225d52fb09000df0a056376a520969 Mon Sep 17 00:00:00 2001 From: nojaf Date: Tue, 7 Nov 2023 18:35:27 +0100 Subject: [PATCH 1/2] Walk over the union case in SynModuleDecl.Exception. --- src/FSharp.Analyzers.SDK/ASTCollecting.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FSharp.Analyzers.SDK/ASTCollecting.fs b/src/FSharp.Analyzers.SDK/ASTCollecting.fs index 72baed3..552af4c 100644 --- a/src/FSharp.Analyzers.SDK/ASTCollecting.fs +++ b/src/FSharp.Analyzers.SDK/ASTCollecting.fs @@ -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) -> () From fb881687d56fd4b221cda58e9ccd83bc784b2591 Mon Sep 17 00:00:00 2001 From: nojaf Date: Tue, 7 Nov 2023 18:36:42 +0100 Subject: [PATCH 2/2] Add changelog entry. --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e41b4e..578fb01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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