Skip to content

Commit

Permalink
Merge pull request #435 from StefanMaron/development
Browse files Browse the repository at this point in the history
Resolve 'System.InvalidCastException' exception on LC0044
  • Loading branch information
Arthurvdv authored Dec 14, 2023
2 parents 0ef74c1 + 8896c11 commit e42f2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Design/Rule0044AnalyzeTransferField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public void PopulateFields(IApplicationObjectTypeSymbol table)

public void PopulateFields(FieldExtensionListSyntax fieldList)
{
foreach (FieldSyntax field in fieldList.Fields)
foreach (FieldSyntax field in fieldList.Fields.Where(fld => fld.IsKind(SyntaxKind.Field)))
{
if (!FieldIsObsolete(field))
Fields.Add(new Field((int)field.No.Value, field.Name.Identifier.ToString().Replace("\"", ""), field.Type.ToString(), field.GetLocation(), this));
Expand Down

0 comments on commit e42f2af

Please sign in to comment.