calculate_index_of_start_and_stop_lines: Calculate the index of lines where functions start and stop.

View source: R/functional-structure.R

calculate_index_of_start_and_stop_linesR Documentation

Calculate the index of lines where functions start and stop.

Description

Calculate the index of lines where functions start and stop.

Usage

calculate_index_of_start_and_stop_lines(lines, n_level = 0L)

Arguments

lines

An array of characters, representing the lines of code

n_level

An integer, 0 if a definition of a function inside a function is forbidden.

Value

A list, the start and stop indicies


ims-fhs/badhacker documentation built on March 21, 2022, 7:50 a.m.