mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
AliasHeader -> TypeHeader
This commit is contained in:
parent
1b664741db
commit
8ce81e4607
13 changed files with 31 additions and 31 deletions
|
@ -227,12 +227,12 @@ pub struct PrecedenceConflict<'a> {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct AliasHeader<'a> {
|
||||
pub struct TypeHeader<'a> {
|
||||
pub name: Loc<&'a str>,
|
||||
pub vars: &'a [Loc<Pattern<'a>>],
|
||||
}
|
||||
|
||||
impl<'a> AliasHeader<'a> {
|
||||
impl<'a> TypeHeader<'a> {
|
||||
pub fn region(&self) -> Region {
|
||||
Region::across_all(
|
||||
[self.name.region]
|
||||
|
@ -253,7 +253,7 @@ pub enum Def<'a> {
|
|||
///
|
||||
/// Foo : Bar Baz
|
||||
Alias {
|
||||
header: AliasHeader<'a>,
|
||||
header: TypeHeader<'a>,
|
||||
ann: Loc<TypeAnnotation<'a>>,
|
||||
},
|
||||
|
||||
|
@ -307,7 +307,7 @@ pub enum TypeAnnotation<'a> {
|
|||
As(
|
||||
&'a Loc<TypeAnnotation<'a>>,
|
||||
&'a [CommentOrNewline<'a>],
|
||||
AliasHeader<'a>,
|
||||
TypeHeader<'a>,
|
||||
),
|
||||
|
||||
Record {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue