Skip to main content

Module context

Module context 

Source
Expand description

Context Detection for Structural Search

Detects whether a line of code is primarily:

  • Code (executable logic)
  • Comments (documentation, inline notes)
  • Strings (literal text values)

This enables --only-code, --only-comments, and --only-strings filters.

Enums§

LineContext
Possible contexts for a line of source code

Functions§

classify_line
Classify the context of a single line.
should_include
Determine whether a search result should be included based on context filter.