---
name: ast-visitor-pattern
description: Use the frozen-class/visitor pattern for discriminated unions that have multiple dispatch sites. Use when creating a new set of variants (commands, IR nodes, factory calls) that will be switched over in 2+ places, or when refactoring an existing union type that has grown multiple switch sites.
ast-visitor-pattern
PRprisma/orm48k近 7 天新增 101 个 star+101