feat: allow ifchains and for loops

This commit is contained in:
Jonathan Kelley committed 2023-01-13 10:51:12 -08:00
1 parent 2dd2d7fe66
commit 6cd87796f2
6 files changed
+82 -29

No files matched your search

+3 -3
View File
@@ -1,16 +1,16 @@
//! pretty printer for rsx!
use std::fmt::{Result, Write};
use proc_macro2::Span;
use crate::Writer;
impl Writer {
pub fn write_raw_expr(&mut self, exp: &syn::Expr) -> Result {
pub fn write_raw_expr(&mut self, placement: Span) -> Result {
/*
We want to normalize the expr to the appropriate indent level.
*/
use syn::spanned::Spanned;
let placement = exp.span();
let start = placement.start();
let end = placement.end();