package pyre-ast
Module Concrete.PatternSource
See TaglessFinal.Pattern.
Source
type t = private | MatchValue of {location : Location.t;value : Expression.t;
}| MatchSingleton of {location : Location.t;value : Constant.t;
}| MatchSequence of {location : Location.t;patterns : t list;
}| MatchMapping of {location : Location.t;keys : Expression.t list;patterns : t list;rest : Identifier.t option;
}| MatchClass of {location : Location.t;cls : Expression.t;patterns : t list;kwd_attrs : Identifier.t list;kwd_patterns : t list;
}| MatchStar of {location : Location.t;name : Identifier.t option;
}| MatchAs of {location : Location.t;pattern : t option;name : Identifier.t option;
}| MatchOr of {location : Location.t;patterns : t list;
}
Source
val make_matchmapping_of_t :
location:Location.t ->
?keys:Expression.t list ->
?patterns:t list ->
?rest:Identifier.t ->
unit ->
tSource
val make_matchclass_of_t :
location:Location.t ->
cls:Expression.t ->
?patterns:t list ->
?kwd_attrs:Identifier.t list ->
?kwd_patterns:t list ->
unit ->
t