dotnet: emit namespace/class features for type references (#1242)

* dotnet: emit namespace/class features for type references

* dotnet: pre-compute .NET token caches
This commit is contained in:
Mike Hunhoff
2022-12-21 15:59:29 -07:00
committed by GitHub
parent 50490e6a93
commit b68be0c2ce
6 changed files with 206 additions and 156 deletions

View File

@@ -760,6 +760,12 @@ FEATURE_PRESENCE_TESTS_DOTNET = sorted(
("_1c444", "function=0x1F68", capa.features.insn.Number(0x0), True),
("_1c444", "function=0x1F68", capa.features.insn.Number(0x1), False),
("_692f", "token=0x6000004", capa.features.insn.API("System.Linq.Enumerable::First"), True), # generic method
(
"_692f",
"token=0x6000004",
capa.features.insn.Property("System.Linq.Enumerable::First"),
False,
), # generic method
("_692f", "token=0x6000004", capa.features.common.Namespace("System.Linq"), True), # generic method
("_692f", "token=0x6000004", capa.features.common.Class("System.Linq.Enumerable"), True), # generic method
("_1c444", "token=0x6000020", capa.features.common.Namespace("Reqss"), True), # ldftn