pub struct Php {
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 Php
impl Php
pub const NAME: &'static str = "php"
pub const THIS: &'static str = "$this"
pub const BINARY_EXPRESSION: &'static str = "binary_expression"
pub const BOOLEAN_OPERATOR: &'static str = "boolean_operator"
pub const CALL_EXPRESSION: &'static str = "function_call_expression"
pub const CASE_STATEMENT: &'static str = "case_statement"
pub const ARROW_FUNCTION: &'static str = "arrow_function"
pub const ANONYMOUS_FUNCTION: &'static str = "anonymous_function_creation_expression"
pub const COMMENT: &'static str = "comment"
pub const CONDITIONAL_ASSIGNMENT: &'static str = "conditional_assignment"
pub const CATCH_CLAUSE: &'static str = "catch_clause"
pub const ELSE_CLAUSE: &'static str = "else_clause"
pub const ELSE_IF_CLAUSE: &'static str = "else_if_clause"
pub const FUNCTION_DEFINITION: &'static str = "function_definition"
pub const METHOD_DECLARATION: &'static str = "method_declaration"
pub const IF_STATEMENT: &'static str = "if_statement"
pub const IDENTIFIER: &'static str = "identifier"
pub const WHILE_STATEMENT: &'static str = "while_statement"
pub const FOR_STATEMENT: &'static str = "for_statement"
pub const FOREACH_STATEMENT: &'static str = "foreach_statement"
pub const DO_WHILE_STATEMENT: &'static str = "do_statement"
pub const SWITCH_STATEMENT: &'static str = "switch_statement"
pub const RETURN_STATEMENT: &'static str = "return_statement"
pub const BREAK_STATEMENT: &'static str = "break_statement"
pub const CONTINUE_STATEMENT: &'static str = "continue_statement"
pub const TERNARY_EXPRESSION: &'static str = "conditional_assignment"
pub const TRY_STATEMENT: &'static str = "try_statement"
pub const STRING: &'static str = "string"
pub const ENCASPED_STRING: &'static str = "encapsed_string"
pub const PROGRAM: &'static str = "program"
pub const AND: &'static str = "&&"
pub const OR: &'static str = "||"
pub const CONSTRUCTOR_NAME: &'static str = "__construct"
pub const MEMBER_CALL_EXPRESSION: &'static str = "member_call_expression"
pub const MEMBER_ACCESS_EXPRESSION: &'static str = "member_access_expression"
Trait Implementations§
Source§impl Language for Php
impl Language for Php
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 elsif_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 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 class_query(&self) -> &Query
fn function_declaration_query(&self) -> &Query
fn field_query(&self) -> &Query
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 iterator_method_identifiers(&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 has_field_names(&self) -> bool
fn sanitize_parameter_name(&self, parameter_name: String) -> Option<String>
fn get_parameter_names( &self, parameters_node: Node<'_>, source_file: &Arc<File>, ) -> Vec<String>
fn function_name_node<'a>(&'a self, node: &'a Node<'_>) -> Node<'a>
Auto Trait Implementations§
impl Freeze for Php
impl RefUnwindSafe for Php
impl Send for Php
impl Sync for Php
impl Unpin for Php
impl UnwindSafe for Php
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