mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-04 00:55:00 +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),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue