Skip to main content

oak_graphql/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2
3/// GraphQL 语言实现
4#[derive(Debug, Clone)]
5pub struct GraphQLLanguage {}
6
7impl Language for GraphQLLanguage {
8    const NAME: &'static str = "graphql";
9    const CATEGORY: LanguageCategory = LanguageCategory::Dsl;
10
11    type TokenType = crate::kind::GraphQLSyntaxKind;
12    type ElementType = crate::kind::GraphQLSyntaxKind;
13    type TypedRoot = ();
14}