Expand description
This module contains all abstract syntax tree (AST) types. All of them implement the AstNode trait.
Some of them come with extra utility methods, to quickly access some data (e.g. TwigBlock::name).
An overview of the syntax tree concept can be found at the crate level documentation.
Modules§
Structs§
- AstChildren
- Body
- Error
- Html
Attribute - Html
Attribute List - Html
Comment - Html
Doctype - Html
Ending Tag - Html
RawText - Html
Starting Tag - Html
String - Html
String Inner - HtmlTag
- Html
Text - Ludtwig
Directive File Ignore - Ludtwig
Directive Ignore - Ludtwig
Directive Rule List - Root
- Shopware
Icon - Shopware
Icon Style - Shopware
Return - Shopware
Silent Feature Call - Shopware
Silent Feature Call Ending Block - Shopware
Silent Feature Call Starting Block - Shopware
Thumbnails - Shopware
Thumbnails With - Shopware
Twig Extends - Shopware
Twig Include - Twig
Accessor - Twig
Apply - Twig
Apply Ending Block - Twig
Apply Starting Block - Twig
Arguments - Twig
Arrow Function - Twig
Assignment - Twig
Autoescape - Twig
Autoescape Ending Block - Twig
Autoescape Starting Block - Twig
Binary Expression - Twig
Block - Twig
Cache - Twig
Cache Ending Block - Twig
Cache Starting Block - Twig
CacheTTL - Twig
Cache Tags - Twig
Comment - Twig
Component - Twig
Component Ending Block - Twig
Component Starting Block - Twig
Conditional Expression - Twig
Deprecated - TwigDo
- Twig
Else Block - Twig
Else IfBlock - Twig
Embed - Twig
Embed Ending Block - Twig
Embed Starting Block - Twig
EndFor Block - Twig
EndIf Block - Twig
EndSet Block - Twig
Ending Block - Twig
Expression - Twig
Extends - Twig
Filter - Twig
Flush - TwigFor
- Twig
ForBlock - Twig
ForElse Block - Twig
From - Twig
Function Call - TwigIf
- Twig
IfBlock - Twig
Import - Twig
Include - Twig
Include With - Twig
Index - Twig
Index Lookup - Twig
Index Range - Twig
Literal Array - Twig
Literal Array Inner - Twig
Literal Boolean - Twig
Literal Hash - Twig
Literal Hash Items - Twig
Literal Hash Key - Twig
Literal Hash Pair - Twig
Literal Hash Value - Twig
Literal Name - Twig
Literal Null - Twig
Literal Number - Twig
Literal String - Twig
Literal String Inner - Twig
Literal String Interpolation - Twig
Macro - Twig
Macro Ending Block - Twig
Macro Starting Block - Twig
Named Argument - Twig
Operand - Twig
Override - Twig
Parentheses Expression - Twig
Prop Declaration - Twig
Props - Twig
Sandbox - Twig
Sandbox Ending Block - Twig
Sandbox Starting Block - TwigSet
- Twig
SetBlock - Twig
Starting Block - Twig
Trans - Twig
Trans Ending Block - Twig
Trans Starting Block - Twig
Unary Expression - TwigUse
- TwigVar
- Twig
Verbatim - Twig
Verbatim Ending Block - Twig
Verbatim Starting Block - Twig
With - Twig
With Ending Block - Twig
With Starting Block
Traits§
- AstNode
- The main trait to go from untyped
SyntaxNode
to a typed AST. The conversion itself has zero runtime cost: AST and syntax nodes have exactly the same representation: a pointer to the tree root and a pointer to the node itself.