pm_alias_method_node_t

Type Alias pm_alias_method_node_t 

Source
pub type pm_alias_method_node_t = pm_alias_method_node;
Expand description

AliasMethodNode

Represents the use of the alias keyword to alias a method.

 alias foo bar
 ^^^^^^^^^^^^^

Type: ::PM_ALIAS_METHOD_NODE

@extends pm_node_t

Aliased Type§

#[repr(C)]
pub struct pm_alias_method_node_t { pub base: pm_node, pub new_name: *mut pm_node, pub old_name: *mut pm_node, pub keyword_loc: pm_location_t, }

Fields§

§base: pm_node

The embedded base node.

§new_name: *mut pm_node

AliasMethodNode#new_name

Represents the new name of the method that will be aliased.

 alias foo bar
       ^^^
 alias :foo :bar
       ^^^^
 alias :"#{foo}" :"#{bar}"
       ^^^^^^^^^
§old_name: *mut pm_node

AliasMethodNode#old_name

Represents the old name of the method that will be aliased.

 alias foo bar
           ^^^
 alias :foo :bar
            ^^^^
 alias :"#{foo}" :"#{bar}"
                 ^^^^^^^^^
§keyword_loc: pm_location_t

AliasMethodNode#keyword_loc

Represents the location of the alias keyword.

 alias foo bar
 ^^^^^