Skip to main content

Module ast

Module ast 

Source
Expand description

Typed views over the syntax tree.

Each type wraps a SyntaxNode of one kind. Accessors return None when the source is incomplete, so they work on trees with errors too.

Structs§

Alias
as name
ArgumentList
ConceptMap
conceptmap "url" { … }
ConceptMapCode
s:male
ConceptMapEntry
s:male - t:M
ConceptMapPrefix
prefix s = "url"
ConceptMapUnmapped
unmapped for s = provided
ConstantDeclaration
let name = expression;
DefaultClause
default (expression), or the legacy default "value".
DependentClause
then Group(a, b) { … }
Expr
Any FHIRPath expression node.
Group
group Name(…) extends Base <<types>> { … }
ImportsDeclaration
imports "url"
Invocation
name(arguments): a transform or a group call.
Literal
A literal token: string, number, boolean, date or time.
MapDeclaration
map "url" = "name"
Metadata
/// key = value
Parameter
source src : Type
ParameterList
QualifiedName
a.b.c
Rule
sources -> targets then … "name";
RuleBlock
{ rule; … }
Source
One source of a rule.
SourceFile
A whole FML document.
Target
One target of a rule.
TypeAnnotation
: Type
UsesDeclaration
uses "url" alias Name as source

Enums§

GroupTypeMode
The type mode of a group: whether it is the default mapping for its types.
ListMode
A source or target list mode.
ModelMode
How a map uses a structure.
ParameterMode
Whether a group parameter is an input or an output.
TransformValue
The value a target is set to.

Traits§

AstNode
A typed view of a syntax node.

Functions§

name_text
The name a token spells: the identifier, or the content of a `delimited` identifier.
unescape
Removes the quotes from a string or delimited identifier and resolves escape sequences.