Ast.ScopeDefSourceInside a scope, a definition can refer to a variable (possibly an intermediate state thereof) or an input of a subscope.
type kind = | Var of Shared_ast.StateName.t option| SubScopeInput of {name : Shared_ast.ScopeName.t;var_within_origin_scope : Shared_ast.ScopeVar.t;}