getDeclaration

Get the declaration associated with the Symbol.

Return

an Optional with a present value if the symbol is solved, otherwise an empty Optional.