Structure
ATLHelperWrapper
Type-erased wrapper for ATL helpers to enable parser instantiation.
struct ATLHelperWrapper
Overview
This wrapper allows the parser to create helpers without specifying concrete expression types, while maintaining ATL compliance and type safety at runtime.
Topics
Operators
?
Initializers
?
init(name:contextType:returnType:parameters:body:)
Creates a type-erased helper wrapper.
Instance Properties
V
bodyExpression
The body expression (stored as any ATLExpression).
V
contextType
The optional context type for contextual helpers.
V
name
The name of the helper function.
V
parameters
The parameters accepted by the helper function.
V
returnType
The return type of the helper function.
Instance Methods
F
hashValue()
Get hash value for the helper’s identifying properties
F
isEqual(to:)
Check if two helpers are equal for their identifying properties
F
toECoreExpression()
Convert ATL helper body to ECore expression.