From 08475a690ccc26ab5fd5e809a8cd3a19fcf5aff4 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Aug 2018 02:26:22 +0300 Subject: Simplify string optimizations --- src/syntax_kinds/generated.rs.tera | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/syntax_kinds/generated.rs.tera') diff --git a/src/syntax_kinds/generated.rs.tera b/src/syntax_kinds/generated.rs.tera index 197f720e1..90618721a 100644 --- a/src/syntax_kinds/generated.rs.tera +++ b/src/syntax_kinds/generated.rs.tera @@ -64,19 +64,6 @@ impl SyntaxKind { let tok = match c { {%- for t in single_byte_tokens %} '{{t.0}}' => {{t.1}}, -{%- endfor %} - _ => return None, - }; - Some(tok) - } - - pub(crate) fn static_text(self) -> Option<&'static str> { - let tok = match self { -{%- for t in concat(a=single_byte_tokens, b=multi_byte_tokens) %} - {{t.1}} => "{{t.0}}", -{%- endfor %} -{% for kw in concat(a=keywords, b=contextual_keywords) %} - {{kw | upper}}_KW => "{{kw}}", {%- endfor %} _ => return None, }; -- cgit v1.2.3