aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/syntax_kinds
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/syntax_kinds')
-rw-r--r--crates/ra_syntax/src/syntax_kinds/generated.rs10
-rw-r--r--crates/ra_syntax/src/syntax_kinds/generated.rs.tera9
2 files changed, 0 insertions, 19 deletions
diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs b/crates/ra_syntax/src/syntax_kinds/generated.rs
index aa1ab3326..06faf7557 100644
--- a/crates/ra_syntax/src/syntax_kinds/generated.rs
+++ b/crates/ra_syntax/src/syntax_kinds/generated.rs
@@ -105,7 +105,6 @@ pub enum SyntaxKind {
105 UNION_KW, 105 UNION_KW,
106 ERROR, 106 ERROR,
107 IDENT, 107 IDENT,
108 RAW_IDENT,
109 UNDERSCORE, 108 UNDERSCORE,
110 WHITESPACE, 109 WHITESPACE,
111 INT_NUMBER, 110 INT_NUMBER,
@@ -369,7 +368,6 @@ impl SyntaxKind {
369 UNION_KW => &SyntaxInfo { name: "UNION_KW" }, 368 UNION_KW => &SyntaxInfo { name: "UNION_KW" },
370 ERROR => &SyntaxInfo { name: "ERROR" }, 369 ERROR => &SyntaxInfo { name: "ERROR" },
371 IDENT => &SyntaxInfo { name: "IDENT" }, 370 IDENT => &SyntaxInfo { name: "IDENT" },
372 RAW_IDENT => &SyntaxInfo { name: "RAW_IDENT" },
373 UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" }, 371 UNDERSCORE => &SyntaxInfo { name: "UNDERSCORE" },
374 WHITESPACE => &SyntaxInfo { name: "WHITESPACE" }, 372 WHITESPACE => &SyntaxInfo { name: "WHITESPACE" },
375 INT_NUMBER => &SyntaxInfo { name: "INT_NUMBER" }, 373 INT_NUMBER => &SyntaxInfo { name: "INT_NUMBER" },
@@ -565,12 +563,4 @@ impl SyntaxKind {
565 }; 563 };
566 Some(tok) 564 Some(tok)
567 } 565 }
568
569 pub(crate) fn is_ident(&self) -> bool {
570 match self {
571 | IDENT
572 | RAW_IDENT => true,
573 _ => false,
574 }
575 }
576} 566}
diff --git a/crates/ra_syntax/src/syntax_kinds/generated.rs.tera b/crates/ra_syntax/src/syntax_kinds/generated.rs.tera
index 83787f820..21f9444b1 100644
--- a/crates/ra_syntax/src/syntax_kinds/generated.rs.tera
+++ b/crates/ra_syntax/src/syntax_kinds/generated.rs.tera
@@ -74,13 +74,4 @@ impl SyntaxKind {
74 }; 74 };
75 Some(tok) 75 Some(tok)
76 } 76 }
77
78 pub(crate) fn is_ident(&self) -> bool {
79 match self {
80{%- for kind in ident_tokens %}
81 | {{kind}}
82{%- endfor %} => true,
83 _ => false,
84 }
85 }
86} 77}