luaur_ast/records/
ast_class_method.rs1use crate::records::ast_expr_function::AstExprFunction;
2use crate::records::ast_name::AstName;
3use crate::records::location::Location;
4
5#[derive(Debug, Clone)]
6pub struct AstClassMethod {
7 pub qualifier_location: Option<Location>,
8 pub keyword_location: Location,
9 pub function_name: AstName,
10 pub name_location: Location,
11 pub function: *mut AstExprFunction,
12}
13
14#[allow(non_snake_case)]
15impl AstClassMethod {
16 pub const fn qualifier_location(&self) -> Option<Location> {
17 self.qualifier_location
18 }
19
20 pub const fn keyword_location(&self) -> Location {
21 self.keyword_location
22 }
23
24 pub const fn function_name(&self) -> AstName {
25 self.function_name
26 }
27
28 pub const fn name_location(&self) -> Location {
29 self.name_location
30 }
31}