MIGRATION NOTE: The new model distinguishes between declarations, references and descriptions.
Replace code that relies on this broad guard with explicit handling of these separate interfaces
(e.g. VariableDeclaration, VariableReference, VariableDescription).
There is no direct one-to-one API replacement for this guard.
Legacy variable symbol guard.
MIGRATION NOTE: The new model distinguishes between declarations, references and descriptions. Replace code that relies on this broad guard with explicit handling of these separate interfaces (e.g. VariableDeclaration, VariableReference, VariableDescription). There is no direct one-to-one API replacement for this guard.