mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Rename Full -> FullAst
This commit is contained in:
parent
3f7f1891f3
commit
0abea91796
9 changed files with 17 additions and 17 deletions
|
@ -15,7 +15,7 @@ use roc_module::ident::QualifiedModuleName;
|
|||
use roc_region::all::{Loc, Position, Region};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Full<'a> {
|
||||
pub struct FullAst<'a> {
|
||||
pub header: SpacesBefore<'a, Header<'a>>,
|
||||
pub defs: Defs<'a>,
|
||||
}
|
||||
|
@ -2436,7 +2436,7 @@ pub trait Malformed {
|
|||
fn is_malformed(&self) -> bool;
|
||||
}
|
||||
|
||||
impl<'a> Malformed for Full<'a> {
|
||||
impl<'a> Malformed for FullAst<'a> {
|
||||
fn is_malformed(&self) -> bool {
|
||||
self.header.item.is_malformed() || self.defs.is_malformed()
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ use roc_region::all::{Loc, Position, Region};
|
|||
|
||||
use crate::{
|
||||
ast::{
|
||||
AbilityImpls, AbilityMember, AssignedField, Collection, Defs, Expr, Full, Header,
|
||||
AbilityImpls, AbilityMember, AssignedField, Collection, Defs, Expr, FullAst, Header,
|
||||
Implements, ImplementsAbilities, ImplementsAbility, ImplementsClause, ImportAlias,
|
||||
ImportAsKeyword, ImportExposingKeyword, ImportedModuleName, IngestedFileAnnotation,
|
||||
IngestedFileImport, ModuleImport, ModuleImportParams, OldRecordBuilderField, Pattern,
|
||||
|
@ -111,9 +111,9 @@ impl<'a, V: RemoveSpaces<'a>> RemoveSpaces<'a> for SpacesBefore<'a, V> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> RemoveSpaces<'a> for Full<'a> {
|
||||
impl<'a> RemoveSpaces<'a> for FullAst<'a> {
|
||||
fn remove_spaces(&self, arena: &'a Bump) -> Self {
|
||||
Full {
|
||||
FullAst {
|
||||
header: self.header.remove_spaces(arena),
|
||||
defs: self.defs.remove_spaces(arena),
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use bumpalo::Bump;
|
||||
use roc_fmt::{annotation::Formattable, header::fmt_header};
|
||||
use roc_parse::{
|
||||
ast::{Defs, Expr, Full, Header, Malformed, SpacesBefore},
|
||||
ast::{Defs, Expr, FullAst, Header, Malformed, SpacesBefore},
|
||||
header::parse_module_defs,
|
||||
parser::{Parser, SyntaxError},
|
||||
remove_spaces::RemoveSpaces,
|
||||
|
@ -76,7 +76,7 @@ pub enum Output<'a> {
|
|||
|
||||
Expr(Expr<'a>),
|
||||
|
||||
Full(Full<'a>),
|
||||
Full(FullAst<'a>),
|
||||
}
|
||||
|
||||
impl<'a> Output<'a> {
|
||||
|
@ -182,7 +182,7 @@ impl<'a> Input<'a> {
|
|||
|
||||
let defs = parse_module_defs(arena, state, defs)?;
|
||||
|
||||
Ok(Output::Full(Full { header, defs }))
|
||||
Ok(Output::Full(FullAst { header, defs }))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Full(
|
||||
Full {
|
||||
FullAst {
|
||||
header: SpacesBefore {
|
||||
before: [],
|
||||
item: App(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Full(
|
||||
Full {
|
||||
FullAst {
|
||||
header: SpacesBefore {
|
||||
before: [],
|
||||
item: App(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Full(
|
||||
Full {
|
||||
FullAst {
|
||||
header: SpacesBefore {
|
||||
before: [],
|
||||
item: App(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Full(
|
||||
Full {
|
||||
FullAst {
|
||||
header: SpacesBefore {
|
||||
before: [],
|
||||
item: App(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Full(
|
||||
Full {
|
||||
FullAst {
|
||||
header: SpacesBefore {
|
||||
before: [],
|
||||
item: App(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue