Module object_tree

Source
Expand description

This module contains the intermediate representation of the code in the form of an object tree

Structs§

Component
A component is a type in the language which can be instantiated, Or is materialized for repeated expression.
Document
The full document (a complete file)
Element
An Element is an instantiation of a Component
ExportedName
Exports
ListViewInfo
PopupWindow
PropertyAnalysis
PropertyDeclaration
QualifiedTypeName
RepeatedElementInfo
If the parent element is a repeated element, this has information about the models
State
Transition
TransitionPropertyAnimation
UsedSubTypes
Used sub types for a root component

Enums§

PropertyAnimation

Functions§

find_parent_element
Find the parent element to a given element. (since there is no parent mapping we need to fo an exhaustive search)
inject_element_as_repeated_element
This function replace the root element of a repeated element. the previous root becomes the only child of the new root element. Note that no reference to the base component must exist outside of repeated_element.base_type
pretty_print
recurse_elem
Call the visitor for each children of the element recursively, starting with the element itself
recurse_elem_including_sub_components
Same as recurse_elem but include the elements form sub_components
recurse_elem_including_sub_components_no_borrow
Same as recurse_elem but include the elements form sub_components
recurse_elem_no_borrow
Same as recurse_elem, but will take the children from the element as to not keep the element borrow
type_from_node
Create a Type for this node
type_struct_from_node
Create a Type::Object from a syntax_nodes::ObjectType
visit_all_expressions
Visit all expression in this component and sub components
visit_all_named_references
Visit all named reference in this component and sub component
visit_all_named_references_in_element
Visit all the named reference in an element But does not recurse in sub-elements. (unlike visit_all_named_references which recurse)
visit_element_expressions
This visit the binding attached to this element, but does not recurse in children elements Also does not recurse within the expressions.

Type Aliases§

BindingsMap
ElementRc