refactor to use semanticRun in enum

No behavior changes - just a refactoring to harmonize code with the rest of dmd.