findfile 0.2.8

An ergonomic way to search for files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::ast::{Block, Expression};

#[derive(Debug, Clone, PartialEq)]
pub struct AstContext {
	before: Vec<Block>,
	after: Vec<Block>,
	conditions: Vec<Expression>,
}

impl AstContext {
	pub fn add_before(&mut self, block: Block) {
		self.before.push(block);
	}

	pub fn add_after(&mut self, block: Block) {
		self.after.push(block);
	}
}