Back to the room

Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works

Code Observatory / function

_js_variable_function

codeintel.parsers.treesitter_parser._js_variable_function

PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.

PHAROS at 975a38dMIT license

Around this symbol

Search all symbols

Loading

Calls (1)
SymbolFileResolved by
_field_texttreesitter_parser.pysame file
Inside (1)
SymbolFileResolved by
treesitter_parsertreesitter_parser.pysame file
codeintel.parsers.treesitter_parser._js_variable_functionbackend/app/codeintel/parsers/treesitter_parser.py, lines 143–148Open source
def _js_variable_function(node, src):    """``const handler = () => {}`` at module or class level."""    value = node.child_by_field_name("value")    if value is None or value.type not in _FUNCTION_VALUE_TYPES:        return None    return _field_text("name")(node, src)

What the index recorded

Signature
def _js_variable_function(node, src):
File
backend/app/codeintel/parsers/treesitter_parser.py
Lines
143–148
Parser
python-ast
Git blob
bf0c9a8044cadd3452ebf5ffa82b866ae00395a9
Call sites
2 named, 1 resolved, 1 left unlinked

Read it on GitHub at this commit