Skip to main content

Module resolving

Module resolving 

Source
Expand description

This module is responsible for resolving paths within rules.

StructsΒ§

ResolutionScope πŸ”’
ResolvedPath πŸ”’
ResolvedPattern πŸ”’
ResolvedRule πŸ”’
Resolver πŸ”’
UfcsCallInfo πŸ”’

FunctionsΒ§

is_self πŸ”’
path_contains_type_arguments πŸ”’
Returns whether path or any of its qualifiers contains type arguments.
pick_node_for_resolution πŸ”’
Returns a suitable node for resolving paths in the current scope. If we create a scope based on a statement node, then we can’t resolve local variables that were defined in the current scope (only in parent scopes). So we find another node, ideally a child of the statement where local variable resolution is permitted.