sniff/
language_adapter.rs1#[derive(Debug, Clone)]
2pub struct LanguageAdapter {
3 pub name: String,
4 pub grammar_package: String,
5 pub extensions: Vec<String>,
6 pub function_node_types: Vec<String>,
7 pub excluded_parent_types: Vec<String>,
8 pub name_field: String,
9 pub params_field: String,
10 pub param_node_types: Vec<String>,
11 pub nesting_node_types: Vec<String>,
12 pub export_detection: ExportDetection,
13 pub generic_names: Vec<String>,
14 pub allowed_names: Vec<String>,
15}
16
17#[derive(Debug, Clone, PartialEq)]
18pub enum ExportDetection {
19 Keyword,
20 Convention,
21 None,
22}