MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / at_case_region_width

Function at_case_region_width

codegraph-kernel/grammars/scala/scanner.c:257–259  ·  view source on GitHub ↗

Does a line at `width` sit exactly at the width of a flagged same-width case region `prev`? Shared by every close site of such regions.

Source from the content-addressed store, hash-verified

255// Does a line at `width` sit exactly at the width of a flagged same-width
256// case region `prev`? Shared by every close site of such regions.
257static inline bool at_case_region_width(int16_t prev, int16_t width) {
258 return prev != -1 && (prev & CASE_INDENT_FLAG) && width == indent_width(prev);
259}
260
261// ASCII opchars, deliberately without `/`, which could open a comment. An
262// operator starting with `/` or a Unicode opchar never takes the external

Callers 1

scan_implFunction · 0.85

Calls 1

indent_widthFunction · 0.85

Tested by

no test coverage detected