visitInterpolation method

  1. @protected
Interpolation visitInterpolation(
  1. Interpolation interpolation
)

Replaces each expression in an interpolation.

The default implementation of the visit methods call this to visit any interpolation in an expression.

Implementation

@protected
Interpolation visitInterpolation(Interpolation interpolation) =>
    Interpolation(
        interpolation.contents
            .map((node) => node is Expression ? node.accept(this) : node),
        interpolation.span);