Skip to main content

oak_solidity/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize)]
5pub struct SolidityLanguage {}
6
7impl SolidityLanguage {
8    pub fn new() -> Self {
9        Self {}
10    }
11}
12
13impl Language for SolidityLanguage {
14    const NAME: &'static str = "solidity";
15    const CATEGORY: LanguageCategory = LanguageCategory::Programming;
16
17    type TokenType = crate::kind::SoliditySyntaxKind;
18    type ElementType = crate::kind::SoliditySyntaxKind;
19    type TypedRoot = ();
20}