chunked build: detect check (F.detect on common headers loads the Detect chunk only, Detect under 160 KB); sniff extraction skips table and type keys (Aac.adts no longer pulls core/Bits into Detect); guide: chunk layout
This commit is contained in:
1 parent
62fcfa7e93
commit
45f6cbc7a8
11 files changed
+1610
-1571
No files matched your search
@@ -85,7 +85,9 @@ def statements(text):
|
||||
|
||||
|
||||
def free_names(code):
|
||||
"""identifiers read by code that are not field / method names (an over-approximation: locals are included)"""
|
||||
"""identifiers read by code that are not field / method names or table / type keys ({ name = ..., name: T }; an
|
||||
over-approximation: locals are included)"""
|
||||
code = re.sub(r"([{,]\s*)" + NAME + r"(\s*(=(?!=)|:\s))", r"\1\2", code)
|
||||
return {m.group(1) for m in re.finditer(r"(?<![.:\w])\s*(" + NAME + r")", code)} - KEYWORDS
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user