Convert
Convert is a glorified partial function to scan through the AST for the purpose of substituting the matching term with something else.
This is driven by calling transformWrappers(...) method. The filtering is limited to the shape of code matched using appTransformer
, which is a generic function with a single type param and a single term param like X.wrapInit[A](...)
.
Attributes
- Graph
-
- Supertypes
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- ContextUtil
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ContextUtil
- Supertypes
-
class Objecttrait Matchableclass Any
Represents an output expression via Def.declareOutput
Represents an output expression via Def.declareOutput
Attributes
- Inherited from:
- ContextUtil
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ContextUtil
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Substitutes wrappers in tree t
with the result of subWrapper
. A wrapper is a Tree of the form f[T](v)
for which isWrapper(f
is a
Select
or
Ident
. The wrapper is replaced with the result of
subWrapper(<Type of T>, <Tree of v>, <wrapper Tree>)
Substitutes wrappers in tree t
with the result of subWrapper
. A wrapper is a Tree of the form f[T](v)
for which isWrapper(f
is a
Select
or
Ident
. The wrapper is replaced with the result of
subWrapper(<Type of T>, <Tree of v>, <wrapper Tree>)
Attributes
Inherited methods
Attributes
- Inherited from:
- ContextUtil
Attributes
- Inherited from:
- ContextUtil
Attributes
- Inherited from:
- ContextUtil
Attributes
- Inherited from:
- ContextUtil
Attributes
- Inherited from:
- ContextUtil
Attributes
- Inherited from:
- ContextUtil
Attributes
- Inherited from:
- ContextUtil
Attributes
- Inherited from:
- ContextUtil
Givens
Inherited givens
Attributes
- Inherited from:
- ContextUtil