inGetterContext abstract method

bool inGetterContext()

Whether this expression is computing a right-hand value.

Note that inGetterContext and inSetterContext aren't opposites, nor are they mutually exclusive. In other words, it's possible for both methods to return true when invoked on the same node.

Implementation

// TODO(brianwilkerson): Convert this to a getter.
bool inGetterContext();