Skip to content

Commit 929a818

Browse files
authored
Fix condition to process fields (#28)
***NO_CI***
1 parent fcd8c9d commit 929a818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/MetadataProcessor.Core/nanoSkeletonGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private void GenerateAssemblyHeader()
176176

177177
// static fields
178178
int fieldCount = 0;
179-
var staticFields = c.Fields.Where(f => f.IsStatic && !f.HasConstant);
179+
var staticFields = c.Fields.Where(f => f.IsStatic && !f.IsLiteral);
180180

181181
foreach (var f in staticFields)
182182
{
@@ -197,7 +197,7 @@ private void GenerateAssemblyHeader()
197197

198198
// instance fields
199199
fieldCount = 0;
200-
foreach (var f in c.Fields.Where(f => !f.IsStatic))
200+
foreach (var f in c.Fields.Where(f => !f.IsStatic && !f.IsLiteral))
201201
{
202202
// sanity check for field name
203203
// like auto-vars and such

0 commit comments

Comments
 (0)