We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcd8c9d commit 929a818Copy full SHA for 929a818
source/MetadataProcessor.Core/nanoSkeletonGenerator.cs
@@ -176,7 +176,7 @@ private void GenerateAssemblyHeader()
176
177
// static fields
178
int fieldCount = 0;
179
- var staticFields = c.Fields.Where(f => f.IsStatic && !f.HasConstant);
+ var staticFields = c.Fields.Where(f => f.IsStatic && !f.IsLiteral);
180
181
foreach (var f in staticFields)
182
{
@@ -197,7 +197,7 @@ private void GenerateAssemblyHeader()
197
198
// instance fields
199
fieldCount = 0;
200
- foreach (var f in c.Fields.Where(f => !f.IsStatic))
+ foreach (var f in c.Fields.Where(f => !f.IsStatic && !f.IsLiteral))
201
202
// sanity check for field name
203
// like auto-vars and such
0 commit comments