Skip to content

Commit a4b98f0

Browse files
yavari-alirezaAlireza YavariReubenBond
authored
CodeGenerator - Add the 'ExcludeFromCodeCoverageAttribute' to generat… (#9415)
* CodeGenerator - Add the 'ExcludeFromCodeCoverageAttribute' to generated code to disable code coverage --------- Co-authored-by: Alireza Yavari <[email protected]> Co-authored-by: Reuben Bond <[email protected]>
1 parent cc5b0d9 commit a4b98f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Orleans.CodeGenerator/CodeGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ private CompoundTypeAliasComponent[] GetCompoundTypeAlias(ISymbol symbol)
600600
AttributeArgument(typeof(CodeGenerator).Assembly.GetName().Version.ToString().GetLiteralExpression())),
601601
Attribute(ParseName("global::System.ComponentModel.EditorBrowsableAttribute"))
602602
.AddArgumentListArguments(
603-
AttributeArgument(ParseName("global::System.ComponentModel.EditorBrowsableState").Member("Never")))
603+
AttributeArgument(ParseName("global::System.ComponentModel.EditorBrowsableState").Member("Never"))),
604+
Attribute(ParseName("global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute"))
604605
);
605606

606607
internal static AttributeSyntax GetMethodImplAttributeSyntax() => MethodImplAttributeSyntax;

0 commit comments

Comments
 (0)