Skip to content

resolveSuccessfulSymbols

Resolves symbols for the given KtResolvable.

Returns all resolved KaSymbols if successful; otherwise, an empty list. Might contain multiple symbols for a compound case

In contract to resolveSuccessfulCall, it could represent any KaSymbol, not only KaCallableSymbol.

In most cases, a not-null result of resolveSuccessfulCall will represent the same symbol. The only exceptions are:

For which the behavior could be different depending on the context.

The main idea is that resolveSuccessfulSymbols could represent more cases, so it prefers exactly the referenced symbol and not the parent call. For more details, see the mentioned elements.

See also