getInspectorExpression

Given a line of text and a cursor position in that line, return the
expression suitable for the debugger inspector. Inspector expressions
are different from tooltip expressions, since tooltip expressions typically
don't include method calls, while inspector expressions do.