pub struct Kotlin {
pub class_query: Query,
pub function_declaration_query: Query,
pub field_query: Query,
}Fields§
§class_query: Query§function_declaration_query: Query§field_query: QueryImplementations§
Source§impl Kotlin
impl Kotlin
pub const NAME: &'static str = "kotlin"
pub const THIS: &'static str = "this"
pub const THIS_EXPRESSION: &'static str = "this_expression"
pub const IF: &'static str = "if_expression"
pub const SOURCE_FILE: &'static str = "source_file"
pub const WHEN: &'static str = "when_expression"
pub const FOR: &'static str = "for_statement"
pub const WHILE: &'static str = "while_statement"
pub const DO_WHILE: &'static str = "do_while_statement"
pub const JUMP: &'static str = "jump_expression"
pub const SIMPLE_IDENTIFIER: &'static str = "simple_identifier"
pub const NAVIGATION_EXPRESSION: &'static str = "navigation_expression"
pub const CONJUNCTION_EXPRESSION: &'static str = "conjunction_expression"
pub const DISJUNCTION_EXPRESSION: &'static str = "disjunction_expression"
pub const CALL_EXPRESSION: &'static str = "call_expression"
pub const WHEN_ENTRY: &'static str = "when_entry"
pub const LAMBDA_LITERAL: &'static str = "lambda_literal"
pub const LINE_COMMENT: &'static str = "line_comment"
pub const MULTILINE_COMMENT: &'static str = "multiline_comment"
pub const STRING_LITERAL: &'static str = "string_literal"
pub const FUNCTION_DECLARATION: &'static str = "function_declaration"
pub const CATCH_BLOCK: &'static str = "catch_block"
pub const TRY_EXPRESSION: &'static str = "try_expression"
pub const PRIMARY_CONSTRUCTOR: &'static str = "primary_constructor"
pub const SECONDARY_CONSTRUCTOR: &'static str = "secondary_constructor"
pub const AND: &'static str = "&&"
pub const OR: &'static str = "||"
Trait Implementations§
Source§impl Language for Kotlin
impl Language for Kotlin
fn name(&self) -> &str
fn self_keyword(&self) -> Option<&str>
fn binary_nodes(&self) -> Vec<&str>
fn boolean_operator_nodes(&self) -> Vec<&str>
fn call_nodes(&self) -> Vec<&str>
fn case_nodes(&self) -> Vec<&str>
fn closure_nodes(&self) -> Vec<&str>
fn comment_nodes(&self) -> Vec<&str>
fn conditional_assignment_nodes(&self) -> Vec<&str>
fn else_nodes(&self) -> Vec<&str>
fn except_nodes(&self) -> Vec<&str>
fn field_nodes(&self) -> Vec<&str>
fn function_nodes(&self) -> Vec<&str>
fn if_nodes(&self) -> Vec<&str>
fn invisible_container_nodes(&self) -> Vec<&str>
fn jump_nodes(&self) -> Vec<&str>
fn loop_nodes(&self) -> Vec<&str>
fn return_nodes(&self) -> Vec<&str>
fn string_nodes(&self) -> Vec<&str>
fn switch_nodes(&self) -> Vec<&str>
fn ternary_nodes(&self) -> Vec<&str>
fn try_expression_nodes(&self) -> Vec<&str>
fn constructor_names(&self) -> Vec<&str>
fn class_query(&self) -> &Query
fn function_declaration_query(&self) -> &Query
fn field_query(&self) -> &Query
fn iterator_method_identifiers(&self) -> Vec<&str>
fn call_identifiers( &self, source_file: &File, node: &Node<'_>, ) -> (Option<String>, String)
fn field_identifiers( &self, source_file: &File, node: &Node<'_>, ) -> (String, String)
fn tree_sitter_language(&self) -> Language
fn has_field_names(&self) -> bool
fn sanitize_parameter_name(&self, parameter_name: String) -> Option<String>
fn function_name_node<'a>(&'a self, node: &'a Node<'_>) -> Node<'a>
fn elsif_nodes(&self) -> Vec<&str>
fn block_nodes(&self) -> Vec<&str>
fn destructor_names(&self) -> Vec<&str>
fn is_decorator_function(&self, _node: &Node<'_>) -> bool
fn is_instance_method(&self, _file: &File, _node: &Node<'_>) -> bool
fn is_jump_label(&self, _node: &Node<'_>) -> bool
fn all_operators(&self) -> Vec<&str>
fn all_operands(&self) -> Vec<&str>
fn implementation_query(&self) -> Option<&Query>
fn has_labeled_jumps(&self) -> bool
fn query(&self, query_source: &str) -> Query
fn parser(&self) -> Parser
fn get_parameter_names( &self, parameters_node: Node<'_>, source_file: &Arc<File>, ) -> Vec<String>
Auto Trait Implementations§
impl Freeze for Kotlin
impl RefUnwindSafe for Kotlin
impl Send for Kotlin
impl Sync for Kotlin
impl Unpin for Kotlin
impl UnwindSafe for Kotlin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more