BoundValueConverter.forDirective constructor
BoundValueConverter.forDirective(
- CompileDirectiveMetadata? metadata,
- Expression implicitReceiver,
- NameResolver nameResolver
Creates a bound value converter for a directive change detector.
The implicitReceiver is the receiver on which bound expressions are
implicitly invoked. For example, if implicitReceiver is the variable
ctx, the expression foo(bar) is rewritten as ctx.foo(ctx.bar).
The nameResolver is used to uniquely name any variables created during
the process of converting bound values to expressions.
Implementation
factory BoundValueConverter.forDirective(
CompileDirectiveMetadata? metadata,
o.Expression implicitReceiver,
NameResolver nameResolver,
) = _DirectiveBoundValueConverter;