Skip to content

Commit

Permalink
fix: prevent throw throw being generated. (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyMakkison committed May 9, 2023
1 parent 78b2736 commit 3c41c84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override IEnumerable<StatementSyntax> BuildBody(TypeMappingBuildContext c
{
if (_delegateMapping == null)
{
return new[] { ThrowStatement(ThrowNotImplementedException()).WithLeadingTrivia(TriviaList(Comment(NoMappingComment))), };
return new[] { ExpressionStatement(ThrowNotImplementedException()).WithLeadingTrivia(TriviaList(Comment(NoMappingComment))), };
}

// if reference handling is enabled and no reference handler parameter is declared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public partial class Mapper
private partial global::A Map(global::System.Collections.Generic.IDictionary<string, int> source)
{
// Could not generate mapping
throw throw new System.NotImplementedException();
throw new System.NotImplementedException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public partial class Mapper
private partial global::B Map(global::A source)
{
// Could not generate mapping
throw throw new System.NotImplementedException();
throw new System.NotImplementedException();
}
}

0 comments on commit 3c41c84

Please sign in to comment.