-
Notifications
You must be signed in to change notification settings - Fork 19
Code outside a named function is never scanned #138
Copy link
Copy link
Closed
Labels
area: parsertree-sitter grammars, declarations, references, and the call graphtree-sitter grammars, declarations, references, and the call grapharea: scannerSource selection, analysis, localization, and scan behaviorSource selection, analysis, localization, and scan behaviorbugSomething isn't workingSomething isn't working
Description
Activity
Metadata
Metadata
Assignees
Labels
area: parsertree-sitter grammars, declarations, references, and the call graphtree-sitter grammars, declarations, references, and the call grapharea: scannerSource selection, analysis, localization, and scan behaviorSource selection, analysis, localization, and scan behaviorbugSomething isn't workingSomething isn't working
methodsOfinsrc/analysis.jsscans only declarations whosenameis not<anonymous>. An exported arrow named by its assignment hasname: <anonymous>andqualified_name: module.exports.validateInputand is skipped (#125). Anonymous callbacks (#123), a module whose export is an expression (#129) and a file whose functions come from a macro invocation (#130) have no named declaration and get no reading at all.Scan by
qualified_namewhen an assignment names an anonymous function. Give each file one unit for its top-level code so a file with no named function is still read.