[WIP] Static analysis of XML constructors

This commit is contained in:
Yoshi Askharoun
2025-07-16 23:00:49 -05:00
parent 8e922468c5
commit 2f09fbf67c
4 changed files with 91 additions and 28 deletions
+2 -2
View File
@@ -314,7 +314,7 @@ public class Disassembler
}
}
private static IEnumerable<RawConstantInfo> EnumerateConstantInfo(MarkupLoadResult loadResult)
public static IEnumerable<RawConstantInfo> EnumerateConstantInfo(MarkupLoadResult loadResult)
{
var constantsTable = loadResult.ConstantsTable;
bool hasPersistList = constantsTable.PersistList is not null;
@@ -419,7 +419,7 @@ public class Disassembler
throw new NotSupportedException($"Unable to encode constant value '{constantValue}' of type '{qualifiedTypeName}'");
}
private record RawConstantInfo(int Index, TypeSchema Type, object Value)
public record RawConstantInfo(int Index, TypeSchema Type, object Value)
{
public string GenerateDefaultName() => $"const{Index:D}";
}