CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1 (changelog, source)
Search

Member predicate Line::getIndentChar

Gets the indentation character used by this line.

The indentation character of a line is defined to be the whitespace character c such that the line starts with one or more instances of c, followed by a non-whitespace character.

If the line does not start with a whitespace character, or with a mixture of different whitespace characters, its indentation character is undefined.

string getIndentChar()