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
- Exported
Name - Exports
- List
View Info - Popup
Window - Property
Analysis - Property
Declaration - Qualified
Type Name - Repeated
Element Info - If the parent element is a repeated element, this has information about the models
- State
- Transition
- Transition
Property Animation - Used
SubTypes - Used sub types for a root component
Enums§
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.