Resolves a symbol by name to an EnvirResolution when the symbol holds a tracked
environment. Handles multiple reaching definitions (e.g. from if/else branches) by
merging their envStates - see resolveDefsToEnvirResolution.
Returns undefined when the name cannot be resolved or none of its definitions carry an envState.
Resolves a symbol by name to an EnvirResolution when the symbol holds a tracked environment. Handles multiple reaching definitions (e.g. from if/else branches) by merging their envStates - see resolveDefsToEnvirResolution. Returns
undefinedwhen the name cannot be resolved or none of its definitions carry an envState.