oak-swift 0.0.11

High-performance incremental Swift parser for the oak ecosystem with flexible configuration, supporting iOS/macOS development and modern language features.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![doc = include_str!("readme.md")]
use crate::language::SwiftLanguage;
use oak_core::RedNode;

pub struct SwiftFormatter<'config> {
    config: &'config SwiftLanguage,
}

impl<'config> SwiftFormatter<'config> {
    pub fn new(config: &'config SwiftLanguage) -> Self {
        Self { config }
    }

    pub fn format(&self, _root: &RedNode<SwiftLanguage>) -> String {
        String::new()
    }
}