Home
last modified time | relevance | path

Searched defs:SyntaxKind (Results 1 – 25 of 39) sorted by relevance

12

/third_party/typescript/src/compiler/transformers/declarations/
Ddiagnostics.ts592 [SyntaxKind.FunctionExpression]: Diagnostics.Add_a_return_type_to_the_function_expression, constant
593 [SyntaxKind.MethodDeclaration]: Diagnostics.Add_a_return_type_to_the_method, constant
594 [SyntaxKind.GetAccessor]: Diagnostics.Add_a_return_type_to_the_get_accessor_declaration, constant
595 … [SyntaxKind.SetAccessor]: Diagnostics.Add_a_type_to_parameter_of_the_set_accessor_declaration, constant
596 [SyntaxKind.FunctionDeclaration]: Diagnostics.Add_a_return_type_to_the_function_declaration, constant
597 [SyntaxKind.ConstructSignature]: Diagnostics.Add_a_return_type_to_the_function_declaration, constant
598 [SyntaxKind.Parameter]: Diagnostics.Add_a_type_annotation_to_the_parameter_0, constant
599 [SyntaxKind.VariableDeclaration]: Diagnostics.Add_a_type_annotation_to_the_variable_0, constant
600 [SyntaxKind.PropertyDeclaration]: Diagnostics.Add_a_type_annotation_to_the_property_0, constant
601 [SyntaxKind.PropertySignature]: Diagnostics.Add_a_type_annotation_to_the_property_0, constant
[all …]
/third_party/typescript/src/services/formatting/
Drules.ts36 …const binaryKeywordOperators = [SyntaxKind.InKeyword, SyntaxKind.InstanceOfKeyword, SyntaxKind.OfK… constant
37 …const unaryPrefixOperators = [SyntaxKind.PlusPlusToken, SyntaxKind.MinusMinusToken, SyntaxKind.Til… constant
39SyntaxKind.NumericLiteral, SyntaxKind.BigIntLiteral, SyntaxKind.Identifier, SyntaxKind.OpenParenTo… constant
40SyntaxKind.OpenBracketToken, SyntaxKind.OpenBraceToken, SyntaxKind.ThisKeyword, SyntaxKind.NewKeyw… constant
41 …const unaryPreincrementExpressions = [SyntaxKind.Identifier, SyntaxKind.OpenParenToken, SyntaxKind… constant
42 …const unaryPostincrementExpressions = [SyntaxKind.Identifier, SyntaxKind.CloseParenToken, SyntaxKi… constant
43 …const unaryPredecrementExpressions = [SyntaxKind.Identifier, SyntaxKind.OpenParenToken, SyntaxKind… constant
44 …const unaryPostdecrementExpressions = [SyntaxKind.Identifier, SyntaxKind.CloseParenToken, SyntaxKi… constant
45 const comments = [SyntaxKind.SingleLineCommentTrivia, SyntaxKind.MultiLineCommentTrivia]; constant
DsmartIndenter.ts108 …const useTheSameBaseIndentation = [SyntaxKind.FunctionExpression, SyntaxKind.ArrowFunction].indexO… constant
/third_party/rust/rust/src/tools/rust-analyzer/crates/parser/src/
Dsyntax_kind.rs9 impl From<u16> for SyntaxKind { implementation
11 fn from(d: u16) -> SyntaxKind { in from()
24 impl SyntaxKind { impl
Dinput.rs25 pub fn push(&mut self, kind: SyntaxKind) { in push()
29 pub fn push_ident(&mut self, contextual_kind: SyntaxKind) { in push_ident()
55 fn push_impl(&mut self, kind: SyntaxKind, contextual_kind: SyntaxKind) { in push_impl()
67 pub(crate) fn kind(&self, idx: usize) -> SyntaxKind { in kind()
70 pub(crate) fn contextual_kind(&self, idx: usize) -> SyntaxKind { in contextual_kind()
Dparser.rs45 pub(crate) fn current(&self) -> SyntaxKind { in current()
51 pub(crate) fn nth(&self, n: usize) -> SyntaxKind { in nth()
132 fn at_composite2(&self, n: usize, k1: SyntaxKind, k2: SyntaxKind) -> bool { in at_composite2()
138 fn at_composite3(&self, n: usize, k1: SyntaxKind, k2: SyntaxKind, k3: SyntaxKind) -> bool { in at_composite3()
171 pub(crate) fn bump(&mut self, kind: SyntaxKind) { in bump()
219 pub(crate) fn bump_remap(&mut self, kind: SyntaxKind) { in bump_remap()
272 fn do_bump(&mut self, kind: SyntaxKind, n_raw_tokens: u8) { in do_bump()
372 pub(crate) fn kind(&self) -> SyntaxKind { in kind()
Dgrammar.rs172 node: SyntaxKind, in reparser()
173 first_child: Option<SyntaxKind>, in reparser()
174 parent: Option<SyntaxKind>, in reparser()
363 bra: SyntaxKind, in delimited()
364 ket: SyntaxKind, in delimited()
365 delim: SyntaxKind, in delimited()
Dshortcuts.rs112 fn token(&mut self, kind: SyntaxKind, n_tokens: u8) { in token()
132 fn enter(&mut self, kind: SyntaxKind) { in enter()
182 fn do_token(&mut self, kind: SyntaxKind, n_tokens: usize) { in do_token()
221 kind: SyntaxKind, in n_attached_trivias()
Dlib.rs169 node: SyntaxKind, in for_node()
170 first_child: Option<SyntaxKind>, in for_node()
171 parent: Option<SyntaxKind>, in for_node()
Dlexed_str.rs47 pub fn single_token(text: &'a str) -> Option<(SyntaxKind, Option<String>)> { in single_token()
77 pub fn kind(&self, i: usize) -> SyntaxKind { in kind()
120 fn push(&mut self, kind: SyntaxKind, offset: usize) { in push()
144 fn push(&mut self, kind: SyntaxKind, len: usize, err: Option<&str>) { in push()
Doutput.rs80 pub(crate) fn token(&mut self, kind: SyntaxKind, n_tokens: u8) { in token()
94 pub(crate) fn enter_node(&mut self, kind: SyntaxKind) { in enter_node()
/third_party/typescript/tests/baselines/reference/
Denums.js37 var SyntaxKind; variable
38 (function (SyntaxKind) { argument
/third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/
Dsyntax_node.rs20 fn kind_from_raw(raw: rowan::SyntaxKind) -> SyntaxKind { in kind_from_raw()
24 fn kind_to_raw(kind: SyntaxKind) -> rowan::SyntaxKind { in kind_to_raw()
59 pub fn token(&mut self, kind: SyntaxKind, text: &str) { in token()
64 pub fn start_node(&mut self, kind: SyntaxKind) { in start_node()
/third_party/typescript/src/services/
Dutilities.ts1999 export const typeKeywords: readonly SyntaxKind[] = [ constant
2001 SyntaxKind.AssertsKeyword, constant
2002 SyntaxKind.BigIntKeyword, constant
2003 SyntaxKind.BooleanKeyword, constant
2004 SyntaxKind.FalseKeyword, constant
2005 SyntaxKind.InferKeyword, constant
2006 SyntaxKind.KeyOfKeyword, constant
2007 SyntaxKind.NeverKeyword, constant
2008 SyntaxKind.NullKeyword, constant
2009 SyntaxKind.NumberKeyword, constant
[all …]
/third_party/typescript/tests/cases/conformance/externalModules/typeOnly/
Denums.ts2 enum SyntaxKind { enum
/third_party/rust/rust/src/tools/rust-analyzer/crates/mbe/src/
Dtoken_map.rs55 kind: SyntaxKind, in ranges_by_token()
70 kind: SyntaxKind, in first_range_by_token()
Dsyntax_bridge.rs487 fn kind(&self, ctx: &Ctx) -> SyntaxKind; in kind()
513 fn kind(&self, ctx: &RawConverter<'a>) -> SyntaxKind { in kind()
649 fn kind(&self, ctx: &Converter) -> SyntaxKind { in kind()
841 fn token(&mut self, kind: SyntaxKind, mut n_tokens: u8) { in token()
933 fn start_node(&mut self, kind: SyntaxKind) { in start_node()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/
Dexpand_macro.rs143 fn format(db: &RootDatabase, kind: SyntaxKind, file_id: FileId, expanded: SyntaxNode) -> String { in format()
152 _kind: SyntaxKind, in _format()
164 kind: SyntaxKind, in _format()
Dextend_selection.rs262 delimiter_kind: SyntaxKind, in extend_list_item()
Djoin_lines.rs281 fn compute_ws(left: SyntaxKind, right: SyntaxKind) -> &'static str { in compute_ws()
/third_party/typescript/src/services/codefixes/
DfixAwaitInSyncFunction.ts62 …const kind = containingFunction.typeParameters ? SyntaxKind.LessThanToken : SyntaxKind.OpenParenTo… constant
DfixInvalidImportSyntax.ts48 …agnostics.This_expression_is_not_callable.code === context.errorCode ? SyntaxKind.CallExpression :… constant
/third_party/rust/rust/src/tools/rust-analyzer/crates/parser/src/syntax_kind/
Dgenerated.rs7 pub enum SyntaxKind { enum
269 impl SyntaxKind { impl
385 pub fn from_keyword(ident: &str) -> Option<SyntaxKind> { in from_keyword()
434 pub fn from_contextual_keyword(ident: &str) -> Option<SyntaxKind> { in from_contextual_keyword()
447 pub fn from_char(c: char) -> Option<SyntaxKind> { in from_char()
/third_party/rust/rust/src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/
Dhighlight.rs85 kind: SyntaxKind, in punctuation()
161 kind: SyntaxKind, in keyword()
/third_party/rust/rust/src/tools/rust-analyzer/crates/parser/src/grammar/
Dpatterns.rs459 fn pat_list(p: &mut Parser<'_>, ket: SyntaxKind) { in pat_list()

12