diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-01 15:03:37 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-01 15:03:37 +0200 |
| commit | 7fcad452b87c8bd31a9b7dfba78c1b1a92d33dd9 (patch) | |
| tree | c1e82792456be54fd41e7b143be302dcd874e30b /src/lib.rs | |
| parent | aafd3c95cacd829b647cfab1533de5d4833b9a04 (diff) | |
Reorganize ast types 🏕
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -50,7 +50,7 @@ use crate::diagnostic::Diagnostic; use crate::font::SharedFontLoader; use crate::layout::{Commands, MultiLayout}; use crate::style::{LayoutStyle, PageStyle, TextStyle}; -use crate::syntax::{Decoration, Offset, Pos, SpanVec, SyntaxTree}; +use crate::syntax::{Decoration, Offset, Pos, SpanVec, SynTree}; /// Transforms source code into typesetted layouts. /// @@ -85,12 +85,12 @@ impl Typesetter { } /// Parse source code into a syntax tree. - pub fn parse(&self, src: &str) -> Pass<SyntaxTree> { + pub fn parse(&self, src: &str) -> Pass<SynTree> { parse::parse(src) } /// Layout a syntax tree and return the produced layout. - pub async fn layout(&self, tree: &SyntaxTree) -> Pass<MultiLayout> { + pub async fn layout(&self, tree: &SynTree) -> Pass<MultiLayout> { use crate::layout::prelude::*; let margins = self.style.page.margins(); |
