CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Member predicate InterpolatedStringExpr::getText

Gets the text element at index i in this interpolated string, if any. For example, the text element at index i = 2 is "!" in $"Hello, {name}!". Note that there is no text element at index i = 1, but instead an insert (getInsert(1) gets the insert).

StringLiteral getText(int i)